Welcome To SecureNexPay Docs Last updated: 2024-06-06
SecureNexPay is a premium payment automation tool. Use your personal account as a secure payment gateway and accept customer payments directly through your website. Below is a complete guide to our API and integrations.
API Documentation
Our API allows merchants to accept payments from customers by redirecting them to our secure payment gateway. We support card systems, mobile financial services (MFS), and both local and international wallets. Once the transaction is complete, the user is returned to your site with a verification status.
API Operation
We support both Sandbox for testing and Live for production. Use your respective credentials to generate payment URLs via our REST endpoints.
Live API Endpoint (Create Payment):
https://pay.cartthree.com/api/payment/create
Payment Verification API:
https://pay.cartthree.com/api/payment/verify
Parameter Details
POST Request Variables
Field Name
Description
Required
Example Values
cus_name
Customer's full name
Yes
John Doe
cus_email
Valid email address
Yes
john@gmail.com
amount
Total payable amount (avoid trailing zeros)
Yes
10.50
success_url
URL to return after successful payment
Yes
https://site.com/success
cancel_url
URL to return if user cancels
Yes
https://site.com/cancel
meta_data
Custom data in JSON format
No
{"plan_id": 5}
Header Requirements:
Header Key
Value
Content-Type
application/json
API-KEY
Your App key
SECRET-KEY
Your Secret key
BRAND-KEY
Your Brand key
Technical Integration
Follow our sample code to integrate the gateway into your PHP, Laravel, or WordPress projects.
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