Skip to main content

Create Payment Request

Name: Create Payment Request (With Token)

Method : POST

Url : {{base_url}}/api/v1/payment/request

Description : Use the customer token from step 1 to initiate a payment. This returns a secure payment URL for the user to complete the payment.

Username : App Key

Password : Secret Key

{
"customerToken": "56f74d8274c1cb387e1ad24895905c18",
"reference": "1XYOCJXEBFQ9",
"merchantAccountId": "{{your_account_no}}",
"currency": "USD",
"amount": "50",
"webhookUrl": "https://webhook.site/b4d48b6d-f965-4bf8-b1bd-180248c6922e"
}
{
"success": true,
"message": "Payment Request Accepted",
"data": {
"payment_url": "https://sgw.paymid.com/secure-checkout/ef65e8ff-4768-4fc5-bd34-c549d9414222",
"reference": "1XYOCJXEBFQ9",
"session_id": "ef65e8ff-4768-4fc5-bd34-c549d9414222"
}
}