How it works

From "Send Money" to a paid order, without anyone watching

A mobile-banking payment leaves a trail that only your phone can see: the "You have received" SMS. The gateway turns that SMS into a confirmed order, safely and without anyone watching.

  1. API · plugin · link · invoice

    Your website asks for a payment

    Your shop calls the API (or the WooCommerce / WHMCS plugin does it), or you share a payment link or an invoice. The customer lands on your own checkout page, in Bangla or English.

    Payments can also be created by hand in the admin panel, and test keys give you a "Simulate a successful payment" button.

  2. Checkout page

    The customer pays from their own app

    They pick bKash, Nagad, Rocket, Upay or Bangla QR. Your number appears only now, as a picture with a Copy button. They send the money and type the TrxID from their confirmation SMS.

    If the customer chose Bangla QR, the QR already has the amount inside, with a few paisa that make it unique, so a bank SMS without a TrxID still finds the right payment.

  3. Android · Pay Sync

    Your phone forwards the SMS

    Pay Sync, the Android app on the phone with your SIM, sends the "You have received" message to your server in a signed request. OTP and PIN messages never leave the phone.

    If the phone was offline, the SMS waits in the app's queue and is sent the moment the internet is back. The payment simply waits in "processing" until then.

  4. Server · webhook

    The order is paid

    The server checks the TrxID, the amount, the time and the receiving number. When everything fits, the payment completes, your website gets a signed webhook and the customer goes back to your site.

    A late SMS still completes a waiting payment. After the timeout (30 minutes by default) the payment stays open for you, and you can approve it by hand as a last resort.

02The SMS, explained

One SMS, read the way your accountant would

This is a real "money received" message from bKash. Five things in it decide whether an order is paid.

bbKashText message · now

You have received Tk 500.001 from 017123456782. Ref 1001. Fee Tk 0.00. Balance Tk 1,500.003. TrxID 9KD7A1B2C34 at 16/11/2026 10:155

The SMS rules can be edited in the admin panel when a provider changes its wording, with a live test box.
  1. 1
    Amount

    Must cover the payment. A short amount never completes it; an over-payment is accepted and noted.

  2. 2
    Sender number

    An extra check, and the way to match a payment when the customer lost the TrxID (only if you switch it on).

  3. 3
    Balance

    Read by the fake-SMS shield: the previous balance plus this amount must equal the new balance.

  4. 4
    TrxID

    The customer types it at checkout. One TrxID pays one payment, once.

  5. 5
    Time

    An SMS older than the payment is never used for it.

03Payment states

What your website sees

Every payment moves through a few plain states. Your webhook is told about each final one.

  1. pending

    Pending

    The payment exists and the checkout page is open. Nothing has been paid yet.

  2. processing

    Processing

    The customer typed a TrxID. The server waits for the matching SMS and the page keeps checking by itself.

  3. completed

    Completed

    The SMS matched. The webhook goes to your website and the customer returns to your success page.

  4. expired

    Expired / failed

    Nobody paid in time (60 minutes by default), or the amount was short. The customer can start again.

04Set up once

Five things, about an hour

  1. 1
    Install the server

    Upload the ZIP to cPanel, open /install/ and follow three steps.

  2. 2
    Add the cron job

    One line, every minute. The panel shows the exact command.

  3. 3
    Pair the phone

    Install Pay Sync and scan the QR from Admin → Phones.

  4. 4
    Add your numbers

    bKash, Nagad, Rocket, Upay or Bangla QR, with limits.

  5. 5
    Connect your website

    Copy the API key, or install the WooCommerce / WHMCS plugin.

Download the Android app

Pay Sync status screen: online, forwarding service running
Pay Sync log with bKash, Nagad, Rocket and Upay messages

05Fake-SMS shield

A fake "You have received" SMS will not pass.

Every real bKash and Nagad SMS carries your new balance. AIOePay checks that the previous balance plus this amount equals the new balance, and which SMS centre the message came through. When something does not add up, the SMS is held for you to approve — an order is never paid by a forged message.

Balance chain
Previous balance + amount = new balance. A typed or forwarded fake breaks the chain.
SMS centre
The server learns which SMS centres a wallet normally uses; an unknown one is a warning sign.
Four modes
Off, warn, hold (the default) or strict, set in Settings → Checkout.
You decide
Held messages wait in the SMS inbox with Approve and Reject. The customer sees "being checked".
SMS inbox: a payment SMS held because it came from an unusual SMS centre

Held, not paid

06Questions

Questions people ask before they start

Do I need a bKash or Nagad merchant account?

No. Personal, agent and merchant numbers all work. The customer uses Send Money, Cash Out or Payment as your number type needs, and the phone forwards the SMS that your number receives.

Where does the money go?

Straight into your own wallet or bank account. AIO ePay only reads the confirmation SMS; it never touches, holds or settles your money.

What happens if the phone is offline?

Payments wait in "processing". The app keeps every SMS in a queue and sends it as soon as the phone is back online, and waiting payments then complete on their own. You also get an alert when a phone goes offline.

Can a customer cheat with a fake SMS or an old TrxID?

An SMS can pay only one payment, SMS older than the payment are not used, short amounts do not complete, and the fake-SMS shield checks the balance chain and the SMS centre before anything is paid.

What hosting do I need?

Ordinary cPanel hosting with PHP 8, MySQL, HTTPS and a one-minute cron job. It installs in the main domain, a sub-domain or a sub-folder.

Does it work with my website?

Yes: a REST API with signed webhooks, a ready WooCommerce plugin, a WHMCS module and a one-file PHP client. Without a website you can still sell with payment links and invoices.

See it confirm a real payment

Tell us about your shop or website. We will show you a live payment going from the customer's phone to a paid order.