Pay with Opay
Create a new charge on a customer's debit card
Body Parameters
amount
number
The amount to charge
200
Yes
reference
string
Your unique reference for the transaction
"23456789876CBD"
No
redirectUrl
string
Url you want to redirect to after successful or failed payment
"https://...."
NO
description
string
Description of the transaction
"Payment for card"
No
customer
object
The customer object that holds customer details
{...}
customer.firstName
string
Customer first name
"John"
NO
customer.lastName
string
Customer last name
"Doe"
NO
customer.phoneNumber
string
Customer phone number without country code
"08137031202"
NO
customer.accountNo
string
"Opay" account number for customer. This must be Opay account number
"8036366334"
YES
customer.email
string
Customer emaill address
"emmabidem@gmail.com"
YES
metadata
Array of objects
[ {...}, {...} ]
No
Last updated