Integrate our payment verification system into your application
Both APIs are full-featured — they support the same parameters (products, discount, charge, etc). The difference is only which payment page URL the customer sees:
Both APIs support the FULL feature set: products, discount, charge, currency, currency_rate, customer info, references, etc. The only difference is the endpoint and the resulting payment URL. The visual design the customer sees is controlled by the store's theme_1 / theme_2 settings.
Full-featured — generates payment URL at /pay/{order_id}
Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
store_key | Required | Your store key | C9065B5327F0 |
amount | Required | Payment amount | 100.00 |
success_url | Required | Success URL | https://site.com/success |
error_url | Required | Error URL | https://site.com/error |
products | Optional | JSON array of products | [{"name":"VIP","price":250,"quantity":1,"icon":"fa-gem"}] |
discount | Optional | Discount amount | 50.00 |
charge | Optional | Extra charge | 10.00 |
currency | Optional | BDT / USD / USDT | USD |
currency_rate | Conditional | Required for USD/USDT | 130 |
reference | Optional | Store reference | Order #123 |
reference_id | Optional | Your internal order ID | ORD-2026-001 |
cancel_url | Optional | Cancel URL | https://site.com/cancel |
customer_name | Optional | Customer name | John Doe |
customer_email | Optional | Customer email | john@example.com |
customer_phone | Optional | Customer phone | 01712345678 |
Example cURL
✅ Theme 1 Success Response:
{
"status": "success",
"payment_url": "https://epay.corp.com.bd/pay/EBPAY7XK9M2Q",
"order_id": "EBPAY7XK9M2Q",
"reference_id": "ORD-2026-001",
"amount": 610.00,
"discount": 50.00,
"charge": 10.00,
"products": [...],
"store_name": "My Store",
"currency": "BDT"
}
Full-featured — generates payment URL at /payment/{order_id}
🌟 Theme 2 API - Parameters (SAME as Theme 1)
| Parameter | Required | Description | Example |
|---|---|---|---|
store_key | Required | Your store key | C9065B5327F0 |
amount | Required | Payment amount | 100.00 |
success_url | Required | Success URL | https://site.com/success |
error_url | Required | Error URL | https://site.com/error |
products | Optional | JSON array of products | [{"name":"VIP","price":250,"quantity":1,"icon":"fa-gem"}] |
discount | Optional | Discount amount | 50.00 |
charge | Optional | Extra charge | 10.00 |
currency | Optional | BDT / USD / USDT | USD |
currency_rate | Conditional | Required for USD/USDT | 130 |
reference | Optional | Store reference | Order #123 |
reference_id | Optional | Your internal ID | ORD-2026-001 |
cancel_url | Optional | Cancel URL | https://site.com/cancel |
customer_name | Optional | Customer name | John Doe |
customer_email | Optional | Customer email | john@example.com |
customer_phone | Optional | Customer phone | 01712345678 |
📦 Product Fields
name *Required
Product name
"VIP Membership"price *Required
Product price
250.00quantity Optional
Quantity (default: 1)
2icon Optional
FA icon or URL
"fa-gem" or "https://site.com/logo.png"Example cURL
🌟 Theme 2 Success Response:
{
"status": "success",
"payment_url": "https://epay.corp.com.bd/payment/EBPAY7XK9M2Q",
"order_id": "EBPAY7XK9M2Q",
"reference_id": "ORD-2026-001",
"amount": 610.00,
"discount": 50.00,
"charge": 10.00,
"products": [...],
"store_name": "My Store",
"currency": "BDT"
}
✅ Paid Response:
{
"status": "success",
"order_id": "EBPAY7XK9M2Q",
"reference_id": "ORD-2026-001",
"amount": 100.00,
"order_status": "paid",
"trxid": "DG340IXYFY",
"paid": true,
"message": "Payment verified successfully"
}
Verify payments using API key + MFS + amount + trxid.
| Parameter | Required | Description | Example |
|---|---|---|---|
api_key | Required | Your API key | a1b2c3d4... |
mfs | Required | Gateway keyword | bkash |
bdt | Required | Amount in BDT | 100.00 |
trxid | Required | Transaction ID | DG340IXYFY |
type | Optional | sendmoney/payment/cashout | sendmoney |
reference_id | Optional | Your internal order ID | ORD-2026-001 |
| Gateway | mfs | Types |
|---|---|---|
| bKash MFS | bkash |
sendmoney payment cashout |
| BkashBQR BanglaQR | bkashbqr |
(auto-detected) |
| DGePay BanglaQR BanglaQR | dgepay |
(auto-detected) |
| InternationalCard MFS | ecard |
sendmoney payment cashout |
| MTB Bank BanglaQR | mtb |
(auto-detected) |
| Nagad MFS | nagad |
sendmoney payment cashout |
| PathaoPay BanglaQR | pathaopay |
(auto-detected) |
| Paystation MFS | paystation |
sendmoney payment cashout |
| Pubali Bank BanglaQR | pubalibank |
(auto-detected) |
| Rocket MFS | rocket |
sendmoney payment cashout |
| TallyPay BanglaQR | tallypay |
(auto-detected) |
| Upay MFS | upay |
sendmoney payment cashout |
Secured by Payment Gateway System • Powered by EcomBangla
API Version 2.0 • Last Updated: October 11, 2026