Hosted checkout
Every payment has a hosted checkout page at https://fastaar.com/pay/{reference}
(returned as checkout_url when you create the payment). The page walks your
customer through the payment in Bangla and English:
- The customer picks a provider (bKash/Nagad) from your active MFS accounts.
- They see your number, the exact amount, and step-by-step Send Money instructions.
- After sending the money, they enter the TrxID from their confirmation SMS and the number they sent from.
- The page polls while Fastaar matches the SMS forwarded by your paired phone — usually under a minute — then shows the result.
Integration tips
- Redirect to
checkout_urlright after creating the payment; the link is single-use and expires. - Pass
success_urlandcancel_urlto send the customer back to your site when they finish or cancel. Fastaar appendspayment_id(andinvoice_id, if set) to the URL. - Pass your order reference as
invoice_id— it is echoed back in the API response, webhooks, and the success redirect. Usemetadatafor any extra key/values. invoice_idis idempotent: retrying a create with the sameinvoice_idreturns the existing payment (HTTP 200) instead of creating a duplicate, so a dropped connection never double-charges. Look one up later withGET https://fastaar.com/api/v1/payments?invoice_id=….- Add per-account instructions (e.g. "Use reference: shop") under MFS Accounts — they appear on the page.
- The success redirect is for UX only — confirm orders from the
payment.completedwebhook, which is the source of truth.