What BD Secure Pay is and how the redirect-based payment flow works end to end.
APIs
Two REST endpoints — create a payment link, then verify the result.
Integration
Copy-paste examples for PHP, Node, Python and Go.
Mobile App
Track live transactions on the go with the BD Secure Pay Android app.
Welcome to BD Secure Pay Docs Last updated: 2024-06-06
BD Secure Pay is a simple and secure payment automation tool which is designed to use a personal account as a payment gateway, so you can accept payments from your customers through your website. Below you'll find a complete overview of how BD Secure Pay works and how to integrate the BD Secure Pay API into your website.
API Introduction
BD Secure Pay Payment Gateway enables merchants to receive money from customers by temporarily redirecting them to www.BD Secure Pay.com. The gateway connects to multiple payment terminals including card systems, mobile financial services, and local & international wallets. After a payment completes, the customer returns to your site, and moments later you receive a notification with the transaction details.
API Operation
REST APIs are supported in two environments. Use the Sandbox environment for testing, then switch to Live for production. Your server needs cURL support; an HTML form-post method is also available if you'd rather not use cURL.
POSThttps://payment.bdpayment.online/api/payment/createcreates a payment link
POSThttps://payment.bdpayment.online/api/payment/verifyverifies a transaction
Parameter Details
Fields to POST when creating a payment
Field
Description
Required
Example
cus_name
Customer's full name
Required
John Doe
cus_email
Customer's email address
Required
john@gmail.com
amount
Total payable amount. Skip trailing zeros for whole numbers.
Required
10 or 10.50
success_url
Where the customer returns after a successful payment
Required
https://yourdomain.com/success.php
cancel_url
Where the customer returns if they cancel
Required
https://yourdomain.com/cancel.php
meta_data
Any JSON-formatted data you want echoed back
Optional
JSON formatted
Fields needed for payment verification
Field
Description
Required
Example
transaction_id
Received as a query parameter on your success URL
Required
OVKPXW165414
Headers
Header
Value
Content-Type
application/json
API-KEY
Your app key, from API credentials
Integration
Integrate BD Secure Pay into your PHP, Laravel, WordPress or WooCommerce site in three steps.
Redirect your customer to the returned payment_url to complete payment.
2
Redirect & Wait for Completion
Once redirected, the customer completes payment on BD Secure Pay's hosted checkout page. They are then sent back to your success_url or cancel_url with a transactionId query parameter attached.