Payment Gateway Testing Checklist: 40 Checks for Indian Apps
A payment gateway testing checklist with 40 checks in eight groups, covering cards, UPI, late confirmations, double charges, webhooks, refunds, saved cards and real phones.
In this article
- What a payment gateway testing checklist has to cover
- Set up: test mode, test data and three places to look
- Happy paths: one check per payment method
- Declines, cancels and wrong inputs
- Pending and late payments: when the answer comes after the app gave up
- One order, one charge: double taps, retries and second attempts
- Webhooks: when the server hears before the app, or not at all
- Refunds and reconciliation
- Saved cards and card data
- Payment gateway testing on real phones: what an emulator skips
- The payment gateway testing checklist on one page
- Frequently asked questions
On a Saturday evening in Coimbatore, Kavitha buys a ₹2,349 mixer grinder in a kitchenware store's app on her Vivo Y28. She types her debit card details, the bank's OTP page opens and the SMS takes 40 seconds to arrive on Airtel. She enters the six digits, the page turns white, and after a few seconds of nothing she presses Back.
The app says "Payment failed". Her bank's SMS says ₹2,349 has been debited. She pays again by UPI, and that works. On Monday the card payment turns up as successful too. The store is now holding ₹4,698 for one mixer, and nobody there knows until she phones.
No part of the payment system broke. The bank answered late, and the app had already made up its mind. A payment gateway testing checklist exists to catch that kind of bug before a customer does. This one has 40 checks in eight groups, with test values, expected results and a note on which checks need real phones.
What a payment gateway testing checklist has to cover
A gateway payment is a relay between systems, and you own only some of them.
| Leg | Who runs it | What you are testing |
|---|---|---|
| App to gateway checkout | You | The right amount, order number and payment methods reach the checkout |
| Gateway to the bank or UPI app | The gateway and the bank | Nothing inside it, only that your app survives the wait |
| Bank back to the gateway | The bank | What your app does when the answer is slow, late or missing |
| Gateway to your server | The gateway and you | The message arrives, is checked and is applied once |
| Server back to the app | You | The customer sees the true state of the order |
The gateway and the banks test their own legs. Your bugs sit in the handoffs: what you send, what you do while waiting and what you do with each answer. In our India App Quality Report, 42 of the 317 malfunction reviews describe a failed, stuck or double-debited payment.
Everything below is functional testing: does the app do the right thing with every answer it can get? Load tests and security audits are separate, specialist jobs.
Set up: test mode, test data and three places to look
Most of the checklist runs on a staging build with the gateway's test keys, where no money moves. The gateway's documentation lists the test data. Razorpay's, for example, gives two test UPI IDs: success@razorpay simulates a successful payment and failure@razorpay a failed one. The same page admits a limit. In test mode a cancelled UPI payment still ends as successful, so cancellation has to be tested in live mode.
Test mode proves that your code handles the answers a simulator can produce. It has no real bank, UPI app or SMS, so plan four or five small live payments before release and refund them.
Prepare three order amounts, ₹1, ₹999.50 and ₹1,00,000, to cover the minimum, paise and lakh grouping. Get logins to the gateway dashboard and to your own order admin screen, because every test ends in both.
Practical rule: every payment test ends in three places: the customer's screen, your order record and the gateway dashboard. It passes only when all three say the same thing.

Happy paths: one check per payment method
Start with a clean success on each method you offer.
| # | Check | Pass |
|---|---|---|
| 1 | Pay with a new card through the bank's OTP page | Order shows Paid with the card's last four digits, and the dashboard shows one payment |
| 2 | Pay by UPI by each route you offer, such as an app switch or a QR code | The app returns on its own and shows Paid |
| 3 | Pay by net banking with a redirect to the bank | The result screen appears without help, and the receipt names the bank |
| 4 | Pay by wallet, EMI or pay later, whichever you offer | EMI shows the monthly amount and the total before payment. A wallet drops by the exact order total |
| 5 | Pay orders of ₹1, ₹999.50 and ₹1,00,000 | One figure on the cart, the bank page, the receipt, the SMS and the invoice |
UPI deserves more than one row, and our guide on how to test a UPI payment flow covers intent, pending states and refunds. Subscriptions are a separate flow, covered in testing UPI AutoPay mandates.
Check 5 looks trivial and is not. If your gateway's API takes amounts in paise, ₹999.50 travels as 99950, and a rounding slip turns it into 99900 or 100000. ₹1,00,000 checks the commas: lakh grouping on your screens and the same value on the bank's page.
Declines, cancels and wrong inputs
Most payment attempts that fail do so for ordinary reasons, and each needs a plain message and a way forward.
| # | Check | Pass |
|---|---|---|
| 6 | Enter card number 4111 1111 1111 1112, then expiry 11/26, then a two-digit CVV | Each is refused on the form, with a clear message, before anything is sent |
| 7 | Enter a wrong OTP, then keep going until the bank stops accepting attempts | The bank page shows each error. The app returns to an unpaid order with a retry |
| 8 | Use a test card or UPI ID that is set up to fail | The reason appears in plain words, another method is offered and the order stays unpaid |
| 9 | Tap Cancel on the bank's page, then repeat with the phone's Back button | The app asks before leaving, then shows Cancelled. Nothing is debited |
| 10 | Leave the checkout idle until the session expires, then tap Pay | A fresh session or a clear message, never an endless spinner |
The card number 4111 1111 1111 1111 passes the check-digit sum that card forms run, and changing the last digit to 2 breaks it. In December 2026 an expiry of 12/26 is still valid and 11/26 is not, so test both sides of the month. Our guide to positive and negative testing shows how to pick such values for any field.
Pending and late payments: when the answer comes after the app gave up
This is Kavitha's bug, and gateways document it. Razorpay's page on late authorisation describes the sequence. If the bank has not answered in 10 minutes, the payment is marked as failed. The gateway then keeps asking the bank for 3 days, and if the bank reports success in that time the payment becomes authorised after all. The page puts this at under 0.5% of payments on average and lists a customer pressing Back after submitting the OTP among the causes.
Under 0.5% sounds small. At 2,000 payments a day it is up to 10 customers a day, each of whom was told the payment failed and may have paid again.
The money has its own deadline. RBI's 2019 circular on turnaround time for failed transactions covers an account that is debited when the merchant's system gets no confirmation. For an online card payment or a UPI payment to a merchant, the debit has to be auto-reversed within T+5 days, where T is the transaction date, with ₹100 a day in compensation after that.

| # | Check | Pass |
|---|---|---|
| 11 | Submit the OTP, then swipe the app away at once and reopen it | The order shows Paid or Pending, and the app does not ask for payment again |
| 12 | Switch to flight mode straight after submitting the OTP, then reconnect | The app checks the payment's status by itself |
| 13 | Ask a developer to hold back the confirmation for 15 minutes | The screen says Pending and advises against paying again. It turns to Paid with no second payment |
| 14 | Let a pending payment end as failed | The order returns to unpaid and the customer is told |
| 15 | Read every pending and failed message | Each says what has happened to the money and what to do next, and promises nothing the app cannot deliver |
Check 15 is a reading test. "Payment failed, please try again" is wrong whenever the app does not know. "We are confirming this payment with your bank. Please do not pay again. Any debit without a confirmed order will be returned" tells the truth. Our list of 12 network conditions gives more ways to produce the missing answer.
One order, one charge: double taps, retries and second attempts
A customer who is unsure taps again. So does a retry loop in code. Stripe's API documentation on idempotent requests states the goal: a request that is retried must not carry out the same operation a second time. Your checkout needs that property at every layer.
| # | Check | Pass |
|---|---|---|
| 16 | Double-tap Pay on a slow connection | One bank page, one charge and one attempt in the dashboard |
| 17 | Fail with one method, then pay with another | Paid once, with the first attempt listed as failed and not charged |
| 18 | Open the same cart on a phone and a laptop and pay on both | One order. The second payment is refused or refunded |
| 19 | After a success, press Back and submit again, then refresh the result screen | No second charge and no second order |
| 20 | Let the first attempt confirm late, after a second attempt has succeeded | The order stays Paid once, and the extra payment is refunded without a support ticket |
Check 20 is the opening story as a test. Kavitha's order should have gone like this.
| When | Event | What the order should show |
|---|---|---|
| Saturday, 7.42 pm | Card attempt, OTP submitted, Back pressed | Pending, with advice not to pay again |
| Saturday, 7.45 pm | She pays by UPI anyway | Paid once, by UPI |
| Monday, 10.10 am | The bank confirms the card payment | Still Paid once. The ₹2,349 card payment is refunded automatically and she is told |
Webhooks: when the server hears before the app, or not at all
The result screen in the app depends on the customer's phone staying awake and online. The dependable message is the one the gateway sends to your server, the webhook. Razorpay's webhook best practices spell out what a server must put up with. Delivery is at-least-once, so the same event can arrive twice, and an x-razorpay-event-id header exists so that duplicates can be spotted. Events may arrive out of order. The server has 5 seconds to answer. Failed deliveries are retried for 24 hours, after which the webhook is disabled.
Each sentence there is a test. These five need a developer for about an hour.
| # | Check | Pass |
|---|---|---|
| 21 | Pay, then close the app before the result screen | The order still becomes Paid on the server, and the confirmation message goes out |
| 22 | Replay one payment event twice | One confirmation, stock reduced once, loyalty points added once |
| 23 | Deliver a "failed" event after a "paid" event for the same order | The order stays Paid |
| 24 | Switch the webhook endpoint off for 30 minutes of test payments | Orders catch up when it returns, and somebody was alerted |
| 25 | Send an event with a wrong signature | It is ignored and logged |
Refunds and reconciliation
Refunds are payments in reverse and get a fraction of the testing. Take a ₹2,349 order made of a ₹1,500 mixer and an ₹849 jar set.
| # | Check | Pass |
|---|---|---|
| 26 | Refund the whole order from your admin screen | The order shows Refunded, and the customer sees the amount, the date and a reference |
| 27 | Refund ₹849, then ₹1,500, then try ₹1 more | The first two succeed and the third is refused |
| 28 | Refund an order that used a coupon | The refund equals what was paid, not the list price |
| 29 | Cancel an order while its payment is pending | The payment is not captured later, or is refunded automatically |
| 30 | Reconcile one day of orders against the gateway | Counts and totals match, or every difference is explained |
Check 30 is the one that finds what the other 29 missed. At the end of a test day, compare two numbers from two systems.
| Source | Count | Total |
|---|---|---|
| Orders marked Paid in your system | 212 | ₹3,84,615 |
| Payments captured at the gateway | 213 | ₹3,86,964 |
| Difference | 1 | ₹2,349 |
One payment of ₹2,349 has no order to belong to. That is a late confirmation, a double tap or a lost webhook, and the payment's ID will say which.
Practical rule: reconcile after every test cycle, not only after launch. A difference of one payment among 200 test orders takes ten minutes to trace. The same bug in production arrives as a queue of support tickets.
Saved cards and card data
Saved cards make repeat orders quick, and RBI limits how they may work. Its circular on card-on-file tokenisation allows only card issuers and card networks to store actual card data. Everyone else may keep the last four digits and the issuer's name, for tracking and reconciliation. Saving a card as a token needs the customer's explicit consent, validated by an additional factor of authentication, and merchants must offer a way to de-register the token.
| # | Check | Pass |
|---|---|---|
| 31 | Save a card while paying | Saving is the customer's choice, and the bank's OTP step covers it |
| 32 | Pay the next order with the saved card | No retyping of the number. The list shows only the last four digits and the bank or network |
| 33 | Delete the saved card | It disappears from the app, and from a second device after a refresh |
| 34 | Fail a payment, then reopen the card form | No number, expiry or CVV is filled in from the failed attempt |
| 35 | Open recent apps while the card form is on screen | Card details are hidden in the preview |
A tester cannot see what a server stores, so add one question for the developers: search the application logs for 411111, the first six digits of the test card. The right number of results is zero.
Payment gateway testing on real phones: what an emulator skips
The bank's OTP page is the least controlled screen in your app. It is somebody else's web page, opened inside your app, waiting for an SMS, on a phone that is busy with other things. An emulator has no SIM, no bank SMS and no phone maker's battery manager, which is why emulators miss a class of bugs.
| # | Check | Pass |
|---|---|---|
| 36 | Fill the bank OTP by auto-read and by hand, on a small screen | Both work, and the OTP field stays visible above the keyboard |
| 37 | Receive the OTP on the second SIM of a dual-SIM phone | The customer can read it and return, and the page has not reset |
| 38 | Take an incoming call on the OTP page, then switch from Wi-Fi to mobile data during the redirect | The payment completes or fails cleanly, and the status is right afterwards |
| 39 | Stay in the SMS app long enough for the system to close your app | The app reopens to the payment or to a truthful status |
| 40 | Pay on an older Android with an outdated system WebView, and on a phone whose default browser is the phone maker's own | The bank page loads and the return to the app works |
Checks 36 and 37 build on the reasons OTP autofill fails for real users. Check 39 depends on how hard each phone maker's software shuts background apps, which our guide to Android background restrictions compares for HyperOS, ColorOS and One UI. Spread these five across at least one Redmi or Realme, one Galaxy, one Vivo and one iPhone, and across Jio, Airtel and Vi SIMs.
The payment gateway testing checklist on one page
| Group | Checks | Who is needed | Rerun every release? |
|---|---|---|---|
| Happy paths | 1 to 5 | Tester | Yes |
| Declines and wrong inputs | 6 to 10 | Tester | 6 and 9 |
| Pending and late payments | 11 to 15 | Tester, and a developer for 13 | Yes |
| One order, one charge | 16 to 20 | Tester | 16, 17 and 19 |
| Webhooks | 21 to 25 | Tester and developer | When payment code changes |
| Refunds and reconciliation | 26 to 30 | Tester and someone from finance | 26 and 30 |
| Saved cards | 31 to 35 | Tester | When the card form changes |
| Real phones | 36 to 40 | Testers with their own phones | Yes |
A first full pass takes one tester about two days, plus an hour of a developer's time. Later releases need half a day for the rows marked Yes. When a check fails, the bug report needs four things beyond the usual: the order number, the gateway's payment ID, the amount and the time to the minute. Our guide to steps to reproduce a bug has the rest of the format.
Frequently asked questions
What is a payment gateway testing checklist? It is a list of checks that confirm an app or website handles every outcome of a payment correctly: success, decline, cancel, pending, late confirmation, duplicate and refund.
Can payment gateway testing be done entirely in test mode? No. Test mode covers simulated answers only. Real banks, UPI apps, SMS delivery and some cancel flows behave differently, so finish with a few small live payments.
How many test cases does a payment gateway need? The 40 checks here are a floor for an app with cards, UPI, net banking and refunds. Each expands into several cases once you multiply by payment methods and phones. Our free payment gateway test cases page has 39 ready-to-run cases, 11 of them marked as needing a real phone.
What should the app say when money is debited but the order fails? That the payment is being confirmed, that the customer should not pay again, and that a debit without a confirmed order goes back to the account. RBI's outer limit for that auto-reversal is T+5 days for online card payments and UPI payments to merchants.
Is this checklist a security audit? No. It checks behaviour. PCI DSS assessments and penetration tests need specialists, and 99tests does not do security testing or VAPT.
A payment flow is tested when the customer's screen, your order record and the gateway dashboard agree after every outcome, including the late and the duplicated ones. If you lack the phones, the SIMs or the two days, 99tests runs your test cases on tester-owned Redmi, Realme, Galaxy, Vivo and iPhone handsets, on Jio, Airtel and Vi. A reviewer verifies every finding before it reaches you, and each one carries steps, expected and actual results, environment details and a screenshot or recording. Packages are fixed-price, and you can send your own cases to 99tests.