cURL
curl --request POST \ --url https://api.myxspend.com/v1/payment/process \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --header 'X-COMPANY-ID: <api-key>' \ --data '{ "firstName": "<string>", "lastName": "<string>", "customerOrderId": "<string>", "email": "<string>", "phone": "<string>", "amount": 123, "currency": "USD", "success_url": "<string>", "failure_url": "<string>" }'
{ "country": "<string>", "CreatedOn": "<string>", "currency": "<string>", "customerOrderId": "<string>", "PaymentLink": "<string>", "PaymentLinkCode": "<string>", "responseCode": "<string>", "responseMessage": "<string>" }
Process a payment transaction
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Payment details
The body is of type object.
object
Successful payment response
The response is of type object.