Skip to content
99tests Blog
Testing guides

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.

Hand-drawn cover for a payment gateway testing checklist: a phone showing a payment card beside a clipboard of ticked checks
In this article
  1. What a payment gateway testing checklist has to cover
  2. Set up: test mode, test data and three places to look
  3. Happy paths: one check per payment method
  4. Declines, cancels and wrong inputs
  5. Pending and late payments: when the answer comes after the app gave up
  6. One order, one charge: double taps, retries and second attempts
  7. Webhooks: when the server hears before the app, or not at all
  8. Refunds and reconciliation
  9. Saved cards and card data
  10. Payment gateway testing on real phones: what an emulator skips
  11. The payment gateway testing checklist on one page
  12. 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.

LegWho runs itWhat you are testing
App to gateway checkoutYouThe right amount, order number and payment methods reach the checkout
Gateway to the bank or UPI appThe gateway and the bankNothing inside it, only that your app survives the wait
Bank back to the gatewayThe bankWhat your app does when the answer is slow, late or missing
Gateway to your serverThe gateway and youThe message arrives, is checked and is applied once
Server back to the appYouThe 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.

One payment seen in three records: the customer's screen, the order record and the gateway dashboard disagree by ₹2,349

Happy paths: one check per payment method

Start with a clean success on each method you offer.

#CheckPass
1Pay with a new card through the bank's OTP pageOrder shows Paid with the card's last four digits, and the dashboard shows one payment
2Pay by UPI by each route you offer, such as an app switch or a QR codeThe app returns on its own and shows Paid
3Pay by net banking with a redirect to the bankThe result screen appears without help, and the receipt names the bank
4Pay by wallet, EMI or pay later, whichever you offerEMI shows the monthly amount and the total before payment. A wallet drops by the exact order total
5Pay orders of ₹1, ₹999.50 and ₹1,00,000One 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.

#CheckPass
6Enter card number 4111 1111 1111 1112, then expiry 11/26, then a two-digit CVVEach is refused on the form, with a clear message, before anything is sent
7Enter a wrong OTP, then keep going until the bank stops accepting attemptsThe bank page shows each error. The app returns to an unpaid order with a retry
8Use a test card or UPI ID that is set up to failThe reason appears in plain words, another method is offered and the order stays unpaid
9Tap Cancel on the bank's page, then repeat with the phone's Back buttonThe app asks before leaving, then shows Cancelled. Nothing is debited
10Leave the checkout idle until the session expires, then tap PayA 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.

Number line of a late payment: OTP submitted at 0 minutes, marked failed at 10 minutes, a late success possible for 3 days, and RBI's T+5 days limit for auto-reversal
#CheckPass
11Submit the OTP, then swipe the app away at once and reopen itThe order shows Paid or Pending, and the app does not ask for payment again
12Switch to flight mode straight after submitting the OTP, then reconnectThe app checks the payment's status by itself
13Ask a developer to hold back the confirmation for 15 minutesThe screen says Pending and advises against paying again. It turns to Paid with no second payment
14Let a pending payment end as failedThe order returns to unpaid and the customer is told
15Read every pending and failed messageEach 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.

#CheckPass
16Double-tap Pay on a slow connectionOne bank page, one charge and one attempt in the dashboard
17Fail with one method, then pay with anotherPaid once, with the first attempt listed as failed and not charged
18Open the same cart on a phone and a laptop and pay on bothOne order. The second payment is refused or refunded
19After a success, press Back and submit again, then refresh the result screenNo second charge and no second order
20Let the first attempt confirm late, after a second attempt has succeededThe 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.

WhenEventWhat the order should show
Saturday, 7.42 pmCard attempt, OTP submitted, Back pressedPending, with advice not to pay again
Saturday, 7.45 pmShe pays by UPI anywayPaid once, by UPI
Monday, 10.10 amThe bank confirms the card paymentStill 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.

#CheckPass
21Pay, then close the app before the result screenThe order still becomes Paid on the server, and the confirmation message goes out
22Replay one payment event twiceOne confirmation, stock reduced once, loyalty points added once
23Deliver a "failed" event after a "paid" event for the same orderThe order stays Paid
24Switch the webhook endpoint off for 30 minutes of test paymentsOrders catch up when it returns, and somebody was alerted
25Send an event with a wrong signatureIt 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.

#CheckPass
26Refund the whole order from your admin screenThe order shows Refunded, and the customer sees the amount, the date and a reference
27Refund ₹849, then ₹1,500, then try ₹1 moreThe first two succeed and the third is refused
28Refund an order that used a couponThe refund equals what was paid, not the list price
29Cancel an order while its payment is pendingThe payment is not captured later, or is refunded automatically
30Reconcile one day of orders against the gatewayCounts 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.

SourceCountTotal
Orders marked Paid in your system212₹3,84,615
Payments captured at the gateway213₹3,86,964
Difference1₹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.

#CheckPass
31Save a card while payingSaving is the customer's choice, and the bank's OTP step covers it
32Pay the next order with the saved cardNo retyping of the number. The list shows only the last four digits and the bank or network
33Delete the saved cardIt disappears from the app, and from a second device after a refresh
34Fail a payment, then reopen the card formNo number, expiry or CVV is filled in from the failed attempt
35Open recent apps while the card form is on screenCard 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.

#CheckPass
36Fill the bank OTP by auto-read and by hand, on a small screenBoth work, and the OTP field stays visible above the keyboard
37Receive the OTP on the second SIM of a dual-SIM phoneThe customer can read it and return, and the page has not reset
38Take an incoming call on the OTP page, then switch from Wi-Fi to mobile data during the redirectThe payment completes or fails cleanly, and the status is right afterwards
39Stay in the SMS app long enough for the system to close your appThe app reopens to the payment or to a truthful status
40Pay on an older Android with an outdated system WebView, and on a phone whose default browser is the phone maker's ownThe 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

GroupChecksWho is neededRerun every release?
Happy paths1 to 5TesterYes
Declines and wrong inputs6 to 10Tester6 and 9
Pending and late payments11 to 15Tester, and a developer for 13Yes
One order, one charge16 to 20Tester16, 17 and 19
Webhooks21 to 25Tester and developerWhen payment code changes
Refunds and reconciliation26 to 30Tester and someone from finance26 and 30
Saved cards31 to 35TesterWhen the card form changes
Real phones36 to 40Testers with their own phonesYes

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.