Production API

EverSafePay Payment Gateway

Accept payments, UPI QR transactions, and process secure payouts using a unified API platform.

Base URL: https://eversafepay.com/v1

Create Order API

POST /create_order
ParameterDescription
client_idMerchant Client ID
secret_keyMerchant Secret Key
amountTransaction Amount
companyMerchant Name
descriptionOrder Description
first_nameCustomer First Name
last_nameCustomer Last Name
emailCustomer Email
phoneCustomer Phone
{
 "isError": false,
 "data": {
   "order_id": "ORD123",
   "payment_url": "https://gateway.com/pay"
 }
}

UPI Intent / QR Payment

POST /create_upi
ParameterDescription
client_idMerchant Client ID
secret_keyMerchant Secret Key
amountTransaction Amount
first_nameCustomer First Name
last_nameCustomer Last Name
emailCustomer Email
phoneCustomer Phone
companyMerchant Name
descriptionOrder Description
{
 "status": "success",
 "order_id": "ORD456",
 "qr_code": "data:image/png;base64,...",
 "payment_url": "upi://pay?pa=merchant@upi"
}

Display the QR code on your custom payment page and poll the status API.

Order Status API

POST /status
{
 "status": "success",
 "data": {
   "order_id": "ORD456",
   "amount": "100",
   "status": "success"
 }
}
  • success – Payment completed
  • failed – Payment failed
  • others – Pending

Payout API

POST /payout
{
 "success": true,
 "data": {
   "order_id": "PO123",
   "status": "QUEUED"
 }
}

Callbacks (Common)

{
 "order_id": "ORD123",
 "amount": 100,
 "status": "SUCCESS"
}

Security Best Practices

  • Never expose secret keys on frontend
  • Validate all callbacks
  • Use HTTPS only
  • IP whitelist callback endpoints
  • Maintain transaction logs

Support

Email: [email protected]