ShaPay ShaPay

System Overview & Flow

Understanding how a customer order moves from your website or app through ShaPay Hosted Checkout and back to your server.

End-to-End Lifecycle

  1. Create Payment Intent: Your backend sends a POST request to https://pay.shapay.me/api/payment/create with the order amount, customer details, success_url, cancel_url, and optional webhook_url.
  2. Customer Redirect: ShaPay responds with a unique transaction_id and hosted payment_url. Redirect the customer to that URL.
  3. Automated Receipt Matching: Customer pays via their chosen MFS or bank method. ShaPay verifies the receipt atomically and locks the TrxID against replay.
  4. Webhook & Return Verification: ShaPay dispatches your webhook and redirects the customer back. Your server calls https://pay.shapay.me/api/payment/verify to confirm COMPLETED status before fulfilling the order.

Merchant Prerequisites

  • An active ShaPay merchant account with an active plan (Client Area → Plans).
  • At least one configured Brand profile with your store name, logo, and domain.
  • For personal/agent MFS or bank SMS automation: an Android 8.0+ phone with stable internet running the ShaPay Sync APK.
Note
Official tokenized APIs (such as bKash Merchant Tokenized, Nagad Merchant, or Binance Pay) verify server-to-server directly and do not require an Android phone.