CholtiPay is a simple and secure payment automation tool designed to use your personal account as a payment gateway. Accept payments seamlessly from your customers through your website. Here you will find a complete overview of how CholtiPay works and how you can integrate the API into your application.
API Introduction
The CholtiPay Payment Gateway enables Merchants to receive money by temporarily redirecting customers to our secure portal. After the payment is complete, the customer is returned to the merchant's site, and the Merchant receives a server-to-server notification containing the transaction details.
API Endpoints
REST APIs are supported in two environments. Use the Sandbox environment for testing purposes, then move to the live environment for production processing. Your server must support cURL.
POSThttps://pay.choltipay.top/api/payment/create
POSThttps://pay.choltipay.top/api/payment/verify
Parameters & Headers
The following JSON variables need to be POSTed to initialize the payment process in the gateway URL.
Parameter
Description
Required
Example
cus_name
Customer Full Name
YES
John Doe
cus_email
Email address of the customer
YES
john@example.com
amount
Total amount payable (e.g., 10 or 10.50).
YES
10.50
success_url
URL to redirect customer upon success.
YES
https://domain.com/success
cancel_url
URL to redirect customer upon cancellation.
YES
https://domain.com/cancel
meta_data
Pass any JSON formatted custom data.
NO
{ "order_id": 123 }
Variables needed for Payment Verification Request.
Parameter
Description
Required
Example
transaction_id
Transaction ID received as a query parameter from the success URL.
YES
OVKPXW165414
Authentication Headers
Header Key
Value Description
Content-Type
application/json
API-KEY
Your App Key from API credentials
SECRET-KEY
Your Secret Key from API credentials
BRAND-KEY
Your Brand Key from Brands settings
Code Integration
Implement our payment gateway directly into your backend code. Below are the sample codes for generating a payment and verifying it.
Payment Link (where customers will complete their payment)
Error Response
status
bool
FALSE
message
String
Message associated with the error response
Completing Payment Page task you will be redirected to success or cancel page based on transaction status with the following Query Parameters:
yourdomain.com/(success/cancel)?transactionId=******&paymentMethod=***&paymentAmount=**.**&paymentFee=**.**&status=pending or success or failed