Services · Payments & APIs

Payment Gateway & API Integration

I'm Arsalan Usman, a full-stack developer with 12+ years of experience, based in Karachi and working remote only. I connect web apps and online stores to payment providers and third-party APIs: checkout, callbacks, reconciliation and clean handover.

Payment integrations rarely fail on the happy path. They fail on timeouts, duplicate callbacks, partial refunds, and orders that say "paid" when the provider says otherwise. My background includes fintech and payments-adjacent backend work, such as bSecure backend integrations and the TrySecurePay Shopify payment mediation app, plus local Pakistani gateways and unified-checkout style flows. Each integration is scoped to the provider's current documentation.

What an integration usually covers

  • Checkout flow: hosted or redirect checkout, or API-based payment initiation, depending on what the provider supports and what fits your compliance scope.
  • Callbacks and webhooks: signature or hash verification, idempotent handlers so a retried notification never marks an order twice, and clear order states (pending, paid, failed, refunded).
  • Reconciliation: a scheduled job that compares your orders with the provider's transaction records and flags mismatches for a person to review.
  • Refunds and subscriptions: where the provider supports them, implemented with audit logs.
  • Other APIs: courier booking and tracking, ERP or accounting sync, and messaging notifications, using the same verified-webhook and retry patterns.

Security approach

Card data should stay with the payment provider whenever possible, because hosted fields or redirects keep your servers out of most card-handling scope. Credentials live in environment variables or encrypted storage, never in front-end code. I'm familiar with PCI DSS requirements and design to reduce scope, but compliance certification is a process between your business, your provider and an assessor, not something a developer can grant.

Testing and handover

  • Sandbox testing of success, failure, cancellation, timeout and duplicate-callback cases before going live.
  • A go-live checklist: production keys, callback URLs, logging and alerting.
  • Documentation of the flow, the order states and how to rotate keys, plus the repository and credentials at handover.

Related: MERN apps and APIs, Shopify custom apps, WooCommerce, and the MERN API security checklist. Send the platform, the provider you want to use and a short brief. You get a fixed-scope quote within 24 hours.