After making the POST request, handle the response from the server:
201 Created: The transaction has been successfully created. You will receive a response with the payment_id.
payment_id
400 Bad Request: Check if all fields are correctly provided and the user exists.
401 Unauthorised: Ensure your API key is correct and has permission to access this endpoint.
500 Internal Server Error: Something went wrong on the server side.
Example Successful Response:
{ "payment_id": "tx_123456789" }
Last updated 1 year ago