Pay with mobile money

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

POST /v1/payment/pay/:payment_reference

Params

Name
Type
Description

payment_reference

string

The payment reference that was generated when initializing payment

Headers

Name
Type
Description

public-key

string

Your Alexpay public key

secret-key

string

Your Alexpay secret key

Request body

  • email (string): The email address of the customer.

  • customer_first_name (string): The first name of the customer.

  • customer_last_name (string): The last name of the customer.

  • account_number (string): The customer's account number.

  • phone_number (string): The phone number of the customer.

  • method (string): The payment method, in this case "mobilemoney".

Request

For example, you can make a post request to the endpoint above and pass in the raw json data below to pay with mobile money.

//mobile money

{
    "account_number":"2336*********",
    "customer_first_name":"Greg",
    "customer_last_name": "Greg",
    "phone_number":"2336*********",
    "email":"[email protected]",
    "method":"mobilemoney"

}

The response will be in JSON format and will have the following schema:

Last updated