POST
/
payments
/
v1
/
checkouts
Generate A Payment Checkout URL
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"
  }
}

Authorizations

client-id
string
header
required
client-secret
string
header
required

Body

application/json

Generate A Payment Checkout URL

The body is of type object.

Response

201 - application/json

Checkout URL Successfully Generated

The response is of type object.