Pay with mobile money
The endpoint {{redstone-api}}/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
payment_reference
String
The payment reference that was generated when initializing payment
Headers
secret-key
string
Your Redstone secret key
public-key
String
Your Redstone public key
Request body
amount (number): The amount of the payment.
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
{
"amount":6,
"email":"",
"customer_first_name":"segun",
"customer_last_name":"ige",
"account_number":"****",
"phone_number":"***",
"method":"mobilemoney"
}Response
{
"status": "success",
"code": 200,
"message": "success",
"data": "payment sent for processing"
}Last updated