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": {
"phoneNumber": "2347012345678",
"name": "Example User",
"email": "user@example.com"
},
"reference": "<string>",
"redirectURL": "https://example.com/redirect/success",
"cancelURL": "https://example.com/redirect/cancel",
"webhook": "https://example.com/webhook",
"metadata": {
"merchantName": "Karis Clothing",
"trafficType": "ECOMMERCE"
}
}
'{
"data": {
"url": "<string>",
"shortURL": "<string>",
"reference": "<string>",
"amount": 100000,
"currency": "USD, NGN, XOF, XAF"
}
}Generate a Payment Checkout URL for customers to make payment
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": {
"phoneNumber": "2347012345678",
"name": "Example User",
"email": "user@example.com"
},
"reference": "<string>",
"redirectURL": "https://example.com/redirect/success",
"cancelURL": "https://example.com/redirect/cancel",
"webhook": "https://example.com/webhook",
"metadata": {
"merchantName": "Karis Clothing",
"trafficType": "ECOMMERCE"
}
}
'{
"data": {
"url": "<string>",
"shortURL": "<string>",
"reference": "<string>",
"amount": 100000,
"currency": "USD, NGN, XOF, XAF"
}
}Generate A Payment Checkout URL
2 character country code
"NG"
This is the base currency to be charged in.
"NGN"
This is the amount to charge the customer. Amount should be sent in the lowest denomination e.g for 100 USD you should send 100 * 100 = 10000
10000
Show child attributes
A reference code you'll generate to identify this transaction. This must be unique for every transaction. If you don't pass one, we will generate one for you.
Fully qualified URL to which the customer should be redirected after the payment is completed
"https://example.com/redirect/success"
Fully qualified URL to which the customer should be redirected if the cancel the payment session
"https://example.com/redirect/cancel"
Show child attributes
Checkout URL Successfully Generated
Show child attributes