Sends payment parameters (like amount, country, and currency) together with other required input details collected from the shopper. To know more about required parameters for specific payment methods, refer to our payment method guides. The response depends on the payment flow:
For a direct flow, the response includes a pspReference and a resultCode with the payment result, for example Authorised or Refused.
For a redirect or additional action, the response contains an action object.
Request
Header Params
Body Params application/json
Examples
Responses
🟢200OK - the request has succeeded.
application/json
Body
🟠400Bad Request - a problem reading or understanding the request.
🟠401Unauthorized - authentication required.
🟠403Forbidden - insufficient permissions to process the request.
🟠422Unprocessable Entity - a request validation error.
🔴500Internal Server Error - the server could not process the request.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST '/payments' \
--header'Content-Type: application/json' \
--data-raw''