Create Charge
Create a new charge on a customer's debit card
Body Parameters
amount
number
The amount to charge
200
Yes
currency
string
The currency of the payment. This can be NGN
or USD
"NGN"
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
deviceIp
string
IP address of the customer's device or your device
"192.168.206.32"
Yes
card
object
The card object that holds card details
{...}
Yes
card.number
string
Debit card number
"539983446085..."
Yes
card.expiryMonth
string
Debit card expiry month
"03"
Yes
card.expiryYear
string
Debit card expiry year
"26"
Yes
card.cvv
string
Debit card security number ( CVV )
"111"
Yes
card.name
string
Debit card holder name
"Terraswitch Limited"
Yes
customer
object
The customer object that holds customer details
{...}
customer.firstName
string
Customer first name
"John"
customer.lastName
string
Customer last name
"Doe"
customer.phoneNumber
string
Customer phone number without country code
"08137031202"
customer.phoneCode
string
Country code for customer's phone number.
"+234"
metadata
Array of objects
[ {...}, {...} ]
No
Charge authorization types
For each charge created, you will be required to authorize the charge depending on the type ( i.e. brand ) of the card you are using. Below are the authorization types based on debit card brands.
Verve
Yes
Yes
No
Mastercard
No
No
Yes
Redirect customer to url provided
VISA
No
No
Yes
Redirect customer to url provided
Last updated