Initiate payment

The endpoint /v1/payment/init is a POST request that initiates a payment. The request body should be in raw format and include the following parameters:

POST /v1/payment/init

Headers

Name
Type
Description

secret-key

string

Your Alexpay secret key

public-key

string

Your Alexpay public-key

Request body

  • currency (string): The currency for the payment

  • country (string): The country for the payment.

  • narration (string): Description or reason for the payment.

  • method (string): The payment method to be used.

  • amount (number): The amount of the payment.

  • reference (string, optional): A unique reference for the transaction. If not provided, the system will generate a unique reference value.

  • webhook_url (string): A URL where notifications about the payment status will be sent.

  • redirect_url (sting):

Request

For example, you can make a post request to the endpoint above and pass in the raw json data below to create a one-off transaction.

Response

Last updated