PayEasy BD Developer Portal

Build with PayEasy BD

Simple integration. Scalable platform.

Explore Modules

Getting Started

Welcome to PayEasy BD's Developer Portal. Use our secure API and plugins to integrate payment processing easily.

Payment Response Parameters

Create Payment Request

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;
?>

Gateway Redirect Response

Success URL:

success.php?transactionId=...&paid_by=...&paymentAmount=...&paymentFee=...&success=1&p_type=...

Cancel URL:

cancel.php?transactionId=...&paymentAmount=...&paymentFee=...&success=0

Verify Payment

<?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;
?>

Verify Payment Response

{
  "cus_name": "y8vf",
  "cus_email": "[email protected]",
  "amount": "10",
  "transaction_id": "JJTG987652",
  "status": "1",
  "message": "success"
}

Integration Modules

🔌
WordPress Plugin

Easy setup with WooCommerce for accepting payments instantly.

Download
⚙️
WHMCS Module

Accept payments in your hosting or domain business via WHMCS.

Download
🚧
Laravel Package

Coming soon: Native Laravel support for deeper integration.

Coming Soon

Android App

Install the PayEasy BD Android app for quick access and management on the go.

Download Android App