Payment Verify API Documentation
Client website এই endpoint call করবে। Matching transaction থাকলে success হবে এবং সেই TrxID সাথে সাথে used হয়ে যাবে। একই TrxID দ্বিতীয়বার success হবে না।
Client Verify Endpoint
/api/verify.php?key=YOUR_API_KEY&trx=TRX123456&amount=100&method=bkash
Success Response
{
"success": true,
"status": "verified",
"message": "Payment verified successfully"
}
Used Transaction Response
{
"success": false,
"status": "used_transaction",
"message": "This transaction ID is already used"
}
Order Status API
/api/order-status.php?key=YOUR_API_KEY&order_id=123
Android App Report Endpoint
/api/app-report.php
Android app uses X-App-Secret header. Secret admin settings থেকে নিতে হবে।
Auto Pending Order Process / Cron
/api/auto-process.php?secret=APP_SECRET
Cron hit করলে pending payment order transaction table এর সাথে match করে auto complete এবং API delivery করবে।