Card Payments
Initiate Card Payment
Postman Collection
For more header and response codes descriptions expand the link below.
Initiate Card Payment.
POST https://api.chpter.co/v1/initiate/card-payment
Send a request and get a checkout url to complete the card payment.
Headers
Api-Key*
String
Your chpter Public Key
Content-Type
String
application/json
Request Body
customer_details*
Object
Customer Details
full_name*
String
Customer Name
products*
List / Array
Product Details
location*
String
Customer Location
email*
String
Customer Email
phone_number*
String
Customer PhoneNumber
unit_price*
Float
Product Price
quantity*
Integer
Product Quantity
product_name*
String
Product Name
digital_link
String
Product Digital Link
amount*
Object
Object with Amount Details
discount_fee*
Float
Discount Fee
delivery_fee*
Float
Delivery Fee
currency*
String
Currency code (KES)
total*
Float
Total Amount to be paid
callback_details*
Object
Callback Object
transaction_reference*
String
Unique reference
callback_url*
String
Your callback URL
success_url*
String
Url to redirect on successful payment
failed_url*
String
Url to redirect on failed payment
Quick view
Sample body and the respective response code.
Webhook / Callback Responses
Here are sample webhook/callback responses.
Last updated