APIV2
Create a payment session for a gateway
Initialize a payment session to collect payment details using a gateway provider
AuthorizationBearer <token>
Merchant JWT bearer token
In: header
Scope: payments.create
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/payments/create-session" \ -H "Content-Type: application/json" \ -d '{ "amountMoney": { "amount": 100, "currency": "AED" }, "gatewayId": "string", "idempotencyKey": "string" }'{
"gatewayId": "string",
"gatewayName": "square",
"sessionUrl": "string"
}