Asif Ali Web & Digital Growth

E-commerce · Delhi NCR & remote

A payment that works is not the hard part.

Anyone can make a test transaction succeed. The work is in what happens when it does not: the timeout, the double charge, the refund, and the order that was paid for but never created.

Short answer

Payment gateway integration connects your site to a provider such as Razorpay, PayU, CCAvenue or Stripe so customers can pay. Doing it safely means verifying every payment server-side through webhooks rather than trusting the browser, handling failures and duplicates, and making refunds and reconciliation possible without manual repair.

Server-side verification Razorpay, PayU, CCAvenue, Stripe Refunds and reconciliation UPI, cards, net banking
Free integration review

Get a free quote

Four details. A real reply the same day, from me.

Same-day reply No obligation Details stay private

Orders paid but not recorded? Get a Free Quote

01 The premise

The mistake that costs real money.

The commonest payment bug I am called in to fix is the same one every time: the site marks an order as paid because the customer’s browser returned to a success page. That is trusting the least trustworthy participant in the transaction. A customer can reach that URL directly. A network can drop between the payment and the redirect. A browser can be closed at exactly the wrong moment.

The correct pattern is that the gateway tells your server, directly, through a signed webhook, and your server verifies the signature and the amount before recording anything. The browser redirect is a courtesy to the customer, not a source of truth. This is not exotic — every gateway documents it — and it is skipped constantly because the happy path works without it.

The other half is failure. Payments time out. Webhooks arrive twice. A customer pays, the confirmation is lost, and they pay again. Each of those has a correct handling, and a store without it accumulates a slow trickle of disputes and unhappy calls that nobody traces back to the integration.

02 Comparison

The Indian gateways, compared honestly.

They are more alike than their marketing suggests. These are the differences that actually affect you.

GatewayWhat it is genuinely good for
RazorpayThe common default for Indian startups and SMEs. Good documentation, quick onboarding, strong UPI support, and a dashboard your accounts person can use.
PayULong established with wide bank coverage. Often competitive on rates at volume, and worth quoting against Razorpay rather than assuming.
CCAvenueVery widely used by older Indian businesses and a lot of enterprise integrations. More payment methods than most; a dated developer experience.
StripeThe right choice when you sell internationally or need sophisticated subscription billing. Less natural for purely domestic Indian retail.
PhonePe / PaytmStrong where UPI dominates your customer base, especially for lower-value consumer transactions.

03 Scope

What a correct integration includes.

Ask any developer quoting for this whether all six are in scope. The answer is informative.

Non-negotiable

  • Server-side verification. Every payment confirmed by a signed webhook and an amount check. The browser is never the source of truth.
  • Idempotent handling. The same webhook arriving twice must not create two orders or refund twice. Gateways retry by design.
  • Failure states designed. Timeout, decline and abandonment each land the customer somewhere sensible with their cart intact.
  • Refunds in the system. Initiated from your admin, recorded against the order, reconciled — not done in the gateway dashboard and remembered separately.
  • Reconciliation. A way to match settlements against orders, because gateways settle net of fees on their own schedule.
  • Logging. Every payment event recorded. When a customer says they paid, you need to be able to check rather than believe.

Free integration review

Is your payment flow actually safe?

One question tells me most of it: does your server confirm the payment with the gateway, or does it trust the page the customer landed on? Send me the flow and I will check.

  • Webhook verification checked specifically
  • You keep the findings either way
  • Tested with real transactions and refunds
  • Same-day reply, all 7 days
Free review

Get a free quote

Four details, and a real reply today.

Same-day reply No obligation Details stay private

04 Due diligence

Questions worth asking your provider.

These affect your cash flow and margin more than the headline percentage does.

What is the settlement cycle?
T+2 and T+7 are very different for a small business. This is often negotiable and rarely negotiated.
What is the rate, really?
Published rates are frequently a starting point. Volume, sector and a competing quote all move them.
How are chargebacks handled?
Who bears them, what evidence is needed, and how long you have. Worth knowing before the first one.
Is UPI included at the same rate?
UPI economics differ from cards. If most of your customers use UPI, this materially changes the true cost.
What happens to failed settlements?
How you are told, and how long resolution takes. The answer varies a lot between providers.

E-commerce

Related services.

These sit next to payment integration and are usually bought with it. Same person doing the work in each case.

E-commerce Development

Catalogue, cart, checkout.

Read more

Custom E-commerce

When the platform will not bend.

Read more

E-commerce Design

Product pages that sell.

Read more

All web design & development services

Questions

payment integration — your questions.

Straight answers, including the ones that cost me work. If yours is not here, ask it — I reply the same day.

Free consultation · No obligation

Take payments in a way you can audit later.

Tell me which gateway you use or are considering. You will get a straight answer on whether the flow is safe, what is missing, and what it costs to put right.

  • Server-side verification, always
  • Refunds and reconciliation in scope
  • Tested with real transactions
  • Fixed price agreed before work starts
Start here

Send your enquiry

Name, number, email, what you need.

Same-day reply No obligation Details stay private

Call Now