cURL
curl --request POST \ --url https://sandbox-api.payfonte.com/payments/v1/checkouts \ --header 'Content-Type: application/json' \ --header 'client-id: <api-key>' \ --header 'client-secret: <api-key>' \ --data '{ "country": "US, NG, CI, SN, CA, UK", "currency": "USD, NGN, XOF, XAF", "amount": 100000, "user": { "name": "Example User", "email": "user@example.com", "phoneNumber": "2347012345678" }, "reference": "<string>", "redirectURL": "https://example.com/redirect/success", "cancelURL": "https://example.com/redirect/cancel", "webhook": "https://example.com/webhook" }'
{ "data": { "url": "https://checkout-staging.payfonte.com/payfusion/66579afe04916ddcfcf73e7b", "shortURL": "https://l.6bd.co/XXXXX", "reference": "<string>", "amount": 100000, "currency": "USD, NGN, XOF, XAF" } }
Generate a Payment Checkout URL for customers to make payment
Generate A Payment Checkout URL
The body is of type object.
object
Checkout URL Successfully Generated
The response is of type object.