payment.bondhonpay.com Developer Docs

Welcome to payment.bondhonpay.com Docs

Complete guide to integrate payment.bondhonpay.com Payment Gateway into any website/app. Create payment URL, redirect customer, then verify transaction status.

Base: https://payment.bondhonpay.com/ Last updated: 2026-05-30

Introduction

payment.bondhonpay.com enables merchants to receive money from customers using a hosted payment page. After payment completes, your system should verify status using the Verify API.

Important: Always confirm payment using Verify API. Redirect/webhook is helpful, but final decision must be based on verify.

APIs

All requests must include header API-KEY and JSON body.

EndpointMethodPurpose
https://payment.bondhonpay.com/api/payment/create POST Create a payment link
https://payment.bondhonpay.com/api/payment/verify POST Verify payment status + get trx_id

API Operation

Create Payment → Redirect Customer → Return to success/cancel URL → Verify using transaction_id.

Tip: Always save two IDs in your database:
1) transaction_id = System Invoice ID (BondhonPay generates)
2) trx_id = Real Gateway Transaction ID (bKash/Nagad/Rocket/etc)
Security: Never trust redirect status alone—Verify is required.

Parameter Details

Create Payment (JSON)

FieldRequiredDescriptionExample
amountYesNumeric amount (max 1,000,000)10 / 10.50
success_urlYesRedirect URL after paymenthttps://yourdomain.com/success
cancel_urlYesRedirect URL on cancel/failhttps://yourdomain.com/cancel
cus_nameNoCustomer nameJohn Doe
cus_emailNoCustomer emailjohn@gmail.com
metadataNoJSON object (not string){"order_id":"ORD-1001"}
webhook_urlNoWebhook receiver URLhttps://yourdomain.com/webhook

Verify Payment (JSON)

FieldRequiredDescriptionExample
transaction_idYesSystem Invoice ID (from redirect/create)OVKPXW165414

Verify Response Fields

FieldDescriptionExample
transaction_idSystem invoice ID (BondhonPay generated)OVKPXW165414
trx_idReal gateway transaction ID (save this)DA230YGMJZ
statusCOMPLETED / PENDING / ERRORCOMPLETED
payment_methodPayment method namebkash
amountPayment amount100
metadataMetadata JSON (may be string or object){"order_id":"ORD-1001"}
Note: metadata may arrive as a JSON string. If string, do JSON decode.

Redirect Params (Success / Cancel URL)

After payment, BondhonPay will redirect the customer to your success_url or cancel_url with these query parameters.

ParamDescriptionExample
transactionIdSystem Invoice ID (use this for verify)OVKPXW165414
trxIdReal gateway trx id (may be empty for pending/cancel)DA230YGMJZ
paymentMethodMethod namebkash
paymentAmountAmount100
paymentFeeFee2
statuscompleted / pending / failedcompleted
Security: Redirect status can be faked. Always call Verify API using transactionId.

Webhook

If you provide webhook_url in Create API, BondhonPay will POST JSON to your webhook. Webhook payload contains both transactionId and trxId.

Webhook Payload (JSON)

{ "paymentMethod": "bkash", "transactionId": "OVKPXW165414", "trxId": "DA230YGMJZ", "paymentAmount": 100, "paymentFee": 2, "status": "completed"}
Note: Even if webhook says completed, you should still verify using Verify API for 100% confirmation.

Sample Request (Create Payment)

Copycurl -X POST "https://payment.bondhonpay.com/api/payment/create" \ -H "Content-Type: application/json" \ -H "API-KEY: YOUR_API_KEY" \ -d '{ "amount": 100, "success_url": "https://yourdomain.com/success", "cancel_url": "https://yourdomain.com/cancel", "cus_name": "John Doe", "cus_email": "john@gmail.com", "webhook_url": "https://yourdomain.com/webhook/bondhonpay", "metadata": { "order_id": "ORD-1001" } }'

Verify Request

Copycurl -X POST "https://payment.bondhonpay.com/api/payment/verify" \ -H "Content-Type: application/json" \ -H "API-KEY: YOUR_API_KEY" \ -d '{ "transaction_id": "OVKPXW165414" }'

Sample Verify Response

{ "cus_name": "John Doe", "cus_email": "john@gmail.com", "amount": 100, "transaction_id": "OVKPXW165414", "trx_id": "DA230YGMJZ", "payment_method": "bkash", "status": "COMPLETED", "metadata": { "order_id": "ORD-1001" }}
Status (Verify API): COMPLETED = success, PENDING = processing, ERROR = failed.
Note: Always store trx_id from verify response to keep the real gateway transaction reference.

Modules & Downloads

WordPress / WooCommerce

Ready plugin for WordPress & WooCommerce.

Download WP Plugin

WHMCS Module

WHMCS integration module (ZIP).

Download WHMCS Module

SMM Panel Module

SMM panel payment module (ZIP).

Download SMM Module

Mobile App (Android)

Official Android APK.

Download APK