JhaPay API

Payments platform API. Create payment sessions from your server with a secret API key; collect on the device with a short-lived client secret. Amounts are integer minor units (cents).

API Reference → OpenAPI spec Health npm: @jhax/jhapay
# Install the server SDK
npm install @jhax/jhapay

// Create a payment session
import { JhaPay } from "@jhax/jhapay";
const jhapay = new JhaPay(process.env.JHAPAY_SECRET_KEY);
const session = await jhapay.paymentSessions.create({ amount: 2500 });