Welcome to PayEasy BD's Developer Portal. Use our secure API and plugins to integrate payment processing easily.
$_GET['transactionId']
$_GET['paymentAmount']
$_GET['paymentFee']
$_GET['success']
(0/1)$_GET['p_type']
Note: Your public IP must be registered at PayEasy BD Live System.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay.payeasybd.com/request/payment/create',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array(
'cus_name' => 'demo',
'cus_email' => '[email protected]',
'amount' => '10',
'success_url' => 'success.php',
'cancel_url' => 'cancel.php'
),
CURLOPT_HTTPHEADER => array(
'app-key: #########',
'secret-key: ######',
'host-name: ######',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
Success URL:
success.php?transactionId=...&paid_by=...&paymentAmount=...&paymentFee=...&success=1&p_type=...
Cancel URL:
cancel.php?transactionId=...&paymentAmount=...&paymentFee=...&success=0
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://pay.payeasybd.com/request/payment/verify',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('transaction_id' => 'JJTG987652'),
CURLOPT_HTTPHEADER => array(
'app-key: ##########',
'secret-key: #####',
'host-name: ###',
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?>
{
"cus_name": "y8vf",
"cus_email": "[email protected]",
"amount": "10",
"transaction_id": "JJTG987652",
"status": "1",
"message": "success"
}
Install the PayEasy BD Android app for quick access and management on the go.
Download Android App