Welcome To DurontoPayBD Docs (Last updated: 2024-06-06)
DurontoPayBD is a simple and Secure payment automation tool which is designed to use personal account as a payment gateway so that you can accept payments from your customer through your website where you will find a complete overview on how DurontoPayBD works and how you can integrate DurontoPayBD API in your website.
API Introduction
DurontoPayBD Payment Gateway enables Merchants to receive money from their customers by temporarily redirecting them to www.durontopaybd.cyou. The gateway is connecting multiple payment terminals including card systems, mobile financial systems, local and International wallets. After the payment is complete, the customer is returned to the merchant's site and seconds later the Merchant receives notification about the payment along with the details of the transaction. Working knowledge of HTML forms or cURL is required.
API Operation
REST APIs are supported in two environments. Use the Sandbox environment for testing purposes, then move to the live environment for production processing. When testing, generate an order url with your test credentials to make calls to the Sandbox URIs.
Live API End Point (For Create Payment URL):
https://pay.durontopaybd.cyou/api/payment/create
Payment Verify API:
https://pay.durontopaybd.cyou/api/payment/verify
Parameter Details
Variables Need to POST to Initialize Payment Process in gateway URL
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
DurontoPayBD's official Android companion app (com.durontopaybd.app) connects via HTTPS using two-way hashed device keys and periodic heartbeats — never direct database connections.
POST /api/v1/device/auth — Authenticate with email/password or Firebase ID token to obtain a short-lived user bearer token.
POST /api/v1/device/pair — Pair device using authenticated bearer token + one-time Device Key generated in Android App → Manage Device Keys. Returns revocable device_session_token.
POST /api/v1/device/heartbeat — Send periodic 30-second authenticated heartbeat with X-Device-ID header to report real-time Online/Offline status and permission health.
POST /api/v1/device/payment-event — Submit normalized bKash, Nagad, Rocket, or Upay payment notification events with idempotency keys (OTPs/personal SMS rejected; wallets are credited only after independent server verification).
POST /api/v1/device/disconnect — Disconnect device cleanly and invalidate its session credential.