টাকা এলো

Search the docs

Pages, sections and error codes

Guides

Testing

A complete sandbox: test keys, one-click payments, real webhooks — no phone, no money.

Test mode is a full copy of TakaElo with its own payments, keys and webhook deliveries. Switch the dashboard between Live and Test at the top; everything you see follows the switch.

What's different in test mode

TestLive
Keyssk_test_…sk_live_…
Paying a checkoutSimulate payment button on the checkout pageReal money into your wallet number
Your phoneNot neededConnected, with the TakaElo app
Return URLsYour websites, or http://localhost (any port)https on your websites only
Plan limitsNone, everYour plan's
WebhooksSent to your Test endpoint, with livemode: falseSent to your Live endpoint, with livemode: true
Webhook secretThe Test endpoint's own whsec_…The Live endpoint's own whsec_…

Pay a test checkout

  1. Create a checkout with your sk_test_ key and open its url.
  2. Pick any wallet and type any number (e.g. 01711223344).
  3. Press Simulate payment. The payment completes with a TEST… TrxID, the webhook fires, and the page returns to your success_url.

Developers › Sandbox in the dashboard can also make and pay a test payment in one step, and choose the wallet, amount and sender — handy for trying your webhook handler with different values. Paying part of an open test checkout (an amount below what's due) gives you a short payment and payment.partially_paid; paying again with no amount sends the rest.

Pay from your code

Your tests, or your AI coding assistant, can do the whole thing without a person: create a checkout with your sk_test_ key, pay it with POST /v1/test_helpers/payments/{id}/pay, then read the payment's webhook log to see what TakaElo sent to your server and what it answered. Above ৳20,000 a test payment waits for review, as real money would.

Things worth testing

CaseHowExpect
Happy pathSimulate paymentpayment.completed; order fulfilled once.
Duplicate deliveryRe-send the same delivery from Developers › WebhooksYour handler replies 200 and does nothing new.
Customer gives upPress "Cancel and go back to the shop"payment.failed with cancelled; you land on cancel_url.
Time runs outLeave a checkout open past its timepayment.failed with expired.
Bad signatureChange one byte of a signed request (cURL tab on Webhooks)Your endpoint answers 400.
Timeout and retryRetry a POST with the same Idempotency-KeyThe same payment comes back, Idempotent-Replayed: true.
RefundRecord a refund on a completed test paymentpayment.refunded.
Short paymentSandbox: pay ৳500 of a ৳1,250 checkout, then the restpayment.partially_paid, then payment.completed (if you ticked them).
Customer reportReport a problem from a test checkout's help link, answer it, settle itdispute.opened → dispute.updated → dispute.closed.

Webhooks to your laptop

TakaElo can't reach localhost. Start a tunnel (ngrok http 3000), switch the dashboard to Test, set the https address it prints as your Test endpoint, and use Send test event or Simulate payment. Your Live endpoint stays as it is. Or skip TakaElo entirely: the cURL tab on Webhooks signs a request to your local server with your secret.