Hosted Payments

Here we have the API to enable you carry out hosted payment.

The Process for carrying out this payment will include the following:

  1. A payment request will be initiated by you, with a callback URL as part of the request payload.

  2. We would respond with a URL where the user will be redirected to make the payment.

  3. Upon success of the process by the user, we would call the URL you provided to us at stage one, with query parameters added to it.

Initiate Payment

This is used to initiate the request for hosted payment.

URL
{baseUrl}/developer/hostedpayment
REQUEST BODY SAMPLE
{
  "amount": 0,
  "currency": "string",
  "reference": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "callBackURL": "string",
  "allowPaymentMethods": [
    "string"
  ]
}

Note: allowPaymentMethods is optional and can be any of the following:
      card, 
      applepay, 
      googlepay

Callback

The endpoint you provided at initiation will be called here with a query parameter to notify you of the transaction status.

Last updated