Service overview
About Payment Gateway Integration
Understand the business value, delivery considerations and technical decisions involved in planning this service.
Payment gateway integration connects a merchant's checkout and business systems to a selected provider so customers can attempt supported payments and the merchant can manage authorization, capture, refund, dispute, settlement and reconciliation. The work is a financial state integration, not simply adding a “Pay” button.
Skillonit can design and implement the merchant-side application, provider API and SDK integration, secure payment-data boundary, webhook processing, order coordination, operational tools, testing and migration. The gateway, acquiring and issuing parties control many payment decisions outside the merchant application.
This service does not guarantee merchant onboarding, payment approval, authentication outcome, fraud prevention, conversion, settlement timing, provider availability, lowest fees, PCI DSS compliance, regulatory compliance or revenue.
Direct answer
Payment Gateway Integration services connect checkout or billing journeys to a gateway through supported hosted pages, payment elements, mobile SDKs or server APIs. Delivery includes payment-state design, tokenization, authorization and capture behavior, authentication, webhooks, idempotency, refunds, disputes, settlement reconciliation, security, observability and operational handover.
A reliable integration answers: Which order and payment attempt does this provider object represent? What amount and currency were authorized and captured? Did the customer complete required authentication? Is the result final or pending? Can the call be retried safely? Which webhook changed state? Was a refund accepted or completed? Which settlement and fee contain the transaction? What action can support staff take without accessing card data?
The buyer outcome is an explainable payment lifecycle in which the customer receives an accurate status, the order changes only on authoritative evidence, retries do not multiply charges, sensitive data is minimized, and finance can reconcile the gateway to internal records.
Buyer problems, suitability and boundaries
Payment projects fail when checkout success is treated as one synchronous API response. Customers close redirects, issuers challenge authentication, alternative methods remain pending, webhooks arrive late or twice, captures fail after authorization, refunds process asynchronously, and settlement values differ from gross sales because of fees, currency or adjustments.
Integration fits when a business has an approved merchant and payment-provider strategy, defined products and fulfillment, supported markets, accountable finance and support owners, and a clear reason to accept a payment method. Provider due diligence and legal agreements precede code.
It is a poor fit when the merchant's business or products are unsupported, merchant onboarding is unresolved, pricing and refund policy are undefined, the buyer expects the integrator to hold funds without an appropriate product, or a hosted commerce solution already meets the need safely.
This service integrates an existing provider. API Development Services builds provider-side contracts, while API Integration Services covers broader system connectivity. Payment gateway development or aggregation is a substantially different regulated product boundary.
Payment gateway, processor, acquirer, wallet and payment-method terms are sometimes used loosely. Architecture names the contractual entities and data path for the selected provider. A gateway may bundle several roles, but the integration should not assume every vendor controls the same decisions.
Skillonit provides software engineering, not acquiring, payment processing, banking, tax, legal, fraud, audit or Qualified Security Assessor services. Qualified specialists determine applicable obligations and validation.
Hypothetical payment integration use cases
These are hypothetical patterns, not customer case studies or outcome claims.
An ecommerce store could use provider-hosted payment elements to collect card details, create a server-side payment attempt for the order amount, handle authentication, and fulfill only after authoritative success. A duplicate browser submission would resolve to the same business attempt.
A marketplace could collect payment for an order and use provider-supported connected-account or transfer capabilities under an approved legal and commercial model. Seller onboarding, funds flow, reserves and liability would require specialist review; ordinary merchant checkout code does not create a compliant marketplace.
A software subscription product could tokenize an approved payment method during signup and use it for later merchant-initiated billing under provider and network rules. Failed renewals would enter a governed retry and customer-notification process, not repeated rapid charging.
A hotel could authorize an amount, capture after confirmation and process partial refund after an approved change. The integration would model authorization expiry and increment rules based on provider support rather than assume funds are permanently reserved.
A ticketing service could accept a delayed bank payment, hold inventory for a defined period and confirm only when provider status is authoritative. An expired reservation and a late payment would enter exception handling instead of silently overselling.
A mobile application could use the provider's supported iOS or Android SDK and wallets while keeping order and fulfillment authority on the backend. Store-platform and regional rules would be checked separately.
A multinational merchant could route customers to payment methods available for the merchant entity, country, currency and product. It would not display a method merely because the provider's global marketing page mentions it.
Capabilities, deliverables and exclusions
Possible deliverables include payment discovery, provider and method matrix, funds-flow diagram, threat and PCI scope workshop, payment domain model, checkout integration, backend service, webhook receiver, refund and support tools, settlement import, reconciliation report, test suite, deployment automation, monitoring, runbooks and migration plan.
Integration patterns include hosted checkout redirects, hosted or embedded provider fields, tokenized client components, native mobile SDKs, server-to-server APIs, asynchronous methods, wallets, bank methods and provider webhooks. Selection balances experience, control, provider support and payment-data scope.
An initial release may support one merchant entity, currency and card flow with provider-hosted collection, explicit authorization or automatic capture, authentication, durable webhooks, full and partial refund, support lookup and daily reconciliation. More methods and entities follow after the base is proven.
Acceptance can demonstrate: the amount is calculated on the server; the same checkout submission cannot duplicate a charge; a payment pending authentication does not fulfill; a forged webhook is rejected; a delayed success updates the correct order; a capture cannot exceed allowed authority; a refund links to its capture; and settlement totals reconcile to internal records or a visible exception.
Explicit exclusions may include provider selection as regulated advice, merchant underwriting, acquiring, holding funds, fraud guarantees, chargeback representation, tax calculation, card-data storage, unsupported screen automation, certified PCI assessment and legal interpretation unless separately performed by qualified parties.
Third-party provider pricing, availability, method coverage, onboarding, limits and API behavior can change. The implementation records reviewed assumptions and isolates provider-specific logic but cannot promise future terms or acceptance.
Payment integration architecture
The core components are checkout client, merchant backend, payment orchestration or adapter, gateway, webhook ingress, order service, finance ledger or reporting integration, support tools and observability. Trust boundaries show exactly where payment data travels.
The merchant backend creates the business order and calculates amount from authoritative product, pricing, tax, shipping and discount sources. A client-supplied total is never trusted merely because it matches the displayed page.
The payment service creates one or more payment attempts for an order. It stores internal attempt ID, provider object, amount, currency, method, state, idempotency key, relevant authentication context and timestamps. It does not store sensitive authentication data.
The client collects payment details through the selected provider pattern. Hosted pages and provider-controlled fields can reduce direct exposure, but actual PCI scope depends on the complete environment and current eligibility criteria. Scope reduction is not the same as automatic compliance.
Provider requests use a server credential in controlled backend code. Publishable or client identifiers are treated according to provider purpose. Secrets never appear in mobile packages, browser source, URLs, analytics or logs.
Webhook ingress verifies authenticity with the provider's current scheme, parses a bounded payload, records the event and queues processing. It responds after durable acceptance rather than waiting for order fulfillment.
Order logic consumes normalized payment events. It authorizes fulfillment only on the approved state for that product and method. A browser return page is customer experience evidence, not the sole payment authority.
Finance integration imports settlements, payouts, fees, refunds, disputes and adjustments, then reconciles provider and internal records. Payment success and money received in a bank account are related but distinct lifecycle facts.
Payment, order and money state models
Order state and payment state are separate. An order can be awaiting payment while one attempt failed and another is pending. A payment can succeed after an inventory reservation expires. The workflow defines how these combinations resolve.
Money uses integer minor units or a decimal type with explicit currency rules. Floating-point arithmetic is not used for financial amount. Currency metadata determines display and provider representation; not every currency uses the same minor units.
A payment attempt can move through created, requires method, requires customer action, processing, authorized, captured, failed, canceled, partially refunded, refunded or disputed states as supported by the provider. The internal model maps provider states without erasing important differences.
Transitions are monotonic unless the business lifecycle supports another change. A late “processing” event should not overwrite a later “captured” fact. Provider event time, receipt time and object version help resolve order.
Authorization reserves or approves the ability to capture under network and issuer rules; it is not settlement. Capture requests transfer the authorized amount toward clearing and settlement. Authorization expiry, incremental authority and partial capture are provider- and method-dependent.
Automatic capture suits immediate fulfillment. Separate authorization and capture can suit delayed or uncertain fulfillment, but introduces expiry, partial and reversal complexity. The choice follows business need rather than an assumption that two-step payment is safer.
Void or cancellation can release an uncaptured authorization where supported. Refund applies after capture and can remain pending or fail. The user interface does not label both as the same reversal when their customer and accounting effects differ.
Disputes and chargebacks have evidence, deadline, status and financial consequences controlled by networks and providers. The integration can ingest and route them but cannot guarantee a successful defense.
Checkout, tokenization and payment methods
Hosted checkout redirects the customer to a provider-controlled page and returns to an approved URL. It can simplify payment-method support and data handling, while brand control and redirect continuity are limited. The return includes a safe reference; authoritative status is queried or received by webhook.
Hosted fields or payment elements render provider-controlled input inside merchant checkout. They can offer a more integrated experience but require careful script, content-security, domain and change controls. The merchant page around them remains security-relevant.
Direct card collection gives the merchant more data exposure and assurance obligations and is avoided unless the business has a justified and qualified design. Card numbers and sensitive authentication data do not enter ordinary application logs, analytics or support tools.
Tokenization replaces a payment credential with a provider token under a defined domain. A token is still sensitive and authorization-scoped; it is not universally portable, harmless or proof that a customer authorized future charges.
Saved payment methods require customer notice, approved terms, provider support, lifecycle handling and a clear deletion route. The application stores a provider reference, brand and masked display data where allowed—not card-verification values.
The PCI Security Standards Council states that card verification codes are sensitive authentication data and cannot be stored after authorization, even when encrypted. That rule applies to debugging, retries, recurring payment and audio or text capture; application design prevents collection from leaking into logs or records.
Wallets can use device or network tokens and authentication controlled by their ecosystems. Merchant and domain registration, certificates, supported browsers or devices, and provider setup are verified for each wallet.
Bank transfers, direct debit and regional methods can be asynchronous and subject to mandate, return, refund or settlement rules. The integration does not treat API acceptance as irrevocable payment.
Buy-now-pay-later and regulated methods introduce consumer, product, country and provider eligibility. They require qualified business and legal review; code alone does not make the offering lawful or suitable.
Authentication, authorization and fraud boundaries
Payment authentication verifies the payer under a payment-method and issuer process. Merchant login, payment authentication and gateway API authentication are separate concerns. A logged-in customer may still need issuer authentication, and successful issuer authentication does not authorize access to another customer's order.
EMV 3-D Secure defines protocols for card-not-present authentication. The applicable specification, gateway implementation, network rules and regional requirements are verified for the target flow. The integration handles frictionless, challenge, failed, unavailable and abandoned outcomes without assuming authentication always produces approval.
Strong customer authentication or similar regulatory requirements vary by market, transaction, exemption and payment method. The gateway can expose capabilities, but qualified payment and legal stakeholders define the merchant strategy. The software does not decide an exemption simply to remove friction.
Merchant-side fraud controls can combine velocity, device, account, order, address and provider signals under approved policy. Provider risk scores are recommendations or decisions within that product, not proof of fraud. Manual review avoids presenting a model flag as an accusation.
High-risk business actions include changing a refund destination, overriding capture, creating a manual payment, exporting data and changing gateway credentials. These require role, scope, amount authority, multi-factor controls where appropriate and audit.
Bot and scripted abuse can test stolen credentials, enumerate gift cards, reserve scarce inventory or trigger provider fees. Rate limits, device and account signals, business-flow controls, step-up and monitoring are applied proportionately. No control guarantees fraud prevention.
Decline messages balance customer usefulness with security and provider rules. The checkout offers a safe retry or alternative without exposing issuer-only detail or blaming the customer. Repeated retries are bounded.
Idempotency, webhooks and asynchronous truth
Every payment action has a merchant business identifier independent of browser session and provider object. Creating an attempt, capturing, refunding and canceling each have a distinct idempotency scope because they represent different effects.
The backend creates the idempotency key and binds it to merchant, operation, amount, currency and normalized request. Reuse with different inputs fails visibly. Keys have retention aligned with provider behavior and business risk.
A client timeout produces an unknown result, not an automatic failure. The application checks the stored attempt and queries or waits for authoritative status before retry. This prevents a poor network from producing two charges.
Webhooks are processed as duplicate and out-of-order events. The receiver verifies current signatures or authenticity controls using the raw payload when the provider requires it, applies timestamp or replay checks, stores event identity, and acknowledges only after durable capture.
Business processing is asynchronous. One worker loads the relevant payment state, verifies that the transition is still applicable, updates atomically and emits an internal event through a durable pattern. Another worker coordinates order or notification effects.
Webhook source IP allowlists can supplement but should not replace provider authenticity because addresses can change and network identity alone may be insufficient. Current official documentation governs the exact verification mechanism.
Reconciliation covers missed webhooks. Scheduled queries or settlement data compare provider objects with internal attempts. Webhook delivery is a timely signal, not the sole ledger of truth.
Browser return handling displays “processing” when final status is not known. It does not mark paid based only on a query parameter. Refreshing the result page is safe and retrieves state from the backend.
Refunds, disputes, settlement and reconciliation
Refund capability validates captured amount, prior refunds, currency, order policy, provider rules and operator authority. Full and partial refunds receive separate internal objects and idempotency keys. Support staff never type a card number to issue a refund.
Refund acceptance by the provider can precede final customer credit. Status and expected wording come from the provider and payment method. The merchant does not promise an exact bank posting date it cannot control.
A payment can have several captures and refunds when supported. The balance equation tracks authorized, captured, voided, refunded and disputed values without mixing gross and net. Every amount retains the source event and provider ID.
Dispute integration ingests creation, evidence deadline, reason, amount, status and outcome. Cases route to accountable operations with order and delivery evidence. Provider portals may remain authoritative for submission even if the internal tool prepares a package.
Settlement or payout files contain transactions, refunds, disputes, fees, taxes, currency conversion and adjustments under provider semantics. The importer validates file identity, merchant account, currency, row count and checksum where available.
Reconciliation compares internal captured and refunded actions with gateway transaction reports, then connects them to settlement and bank records. Timing differences, reserves and rolling adjustments remain explicit rather than forced to zero.
Exception classes include missing internal attempt, missing provider transaction, duplicate mapping, amount mismatch, currency mismatch, unlinked fee, delayed settlement and unexplained adjustment. Each has owner, aging and resolution evidence.
Finance posting depends on approved accounting policy. The integration can generate governed entries or exports but does not determine revenue, fee, tax, foreign-exchange or dispute accounting.
Integrations and data flows
Checkout receives products and prices from authoritative catalogue and promotion systems. The server recalculates the order and locks or versions the commercial terms before creating a payment attempt. A stale browser cannot set a lower amount.
Inventory and fulfillment integration uses an explicit reservation. Payment and inventory have different failure domains, so the workflow defines whether to reserve before payment, for how long, and what happens when a late success arrives.
Order management consumes normalized payment states and returns fulfillment state. It does not depend on raw gateway error codes. Cancellation after payment can initiate an approved refund or queue rather than delete the order.
Subscription billing integration stores provider customer and payment-method references, mandate or consent evidence, schedule, pricing version and retry state. The billing product owns invoice and subscription rules; the gateway adapter performs supported payment actions.
Finance and ERP integration receives controlled transactions, settlement batches, fees and exceptions. Control totals and correlation IDs preserve completeness. A dashboard built from webhooks is not a substitute for settlement reconciliation.
Customer-service tools show order, masked method description, payment state, provider reference, allowed actions and event timeline. They do not display full primary account number, security code or secret credentials.
Risk and fraud services receive only the data justified for their role. Responses are stored with version and reason where permitted. A decline or review result is separated from final issuer authorization.
Analytics captures checkout viewed, method selected, attempt created, authentication required, success, failure and abandonment under approved privacy controls. Analytics cannot be the payment authority and must not receive cardholder data.
Email, SMS or messaging integrations send receipts and status after authoritative state. A notification failure does not roll back payment. Message content avoids complete financial identifiers and uses safe order links.
Provider APIs are treated as external dependencies. Timeouts, schema changes, rate limits and partial outages have bounded handling. A provider dashboard may be required during contingency, and that operational dependency is documented.
Security, PCI DSS and privacy boundaries
Payment security starts with a data-flow and scope inventory: browser or mobile application, merchant backend, gateway scripts or SDKs, support tools, logs, analytics, hosting, administrators and third parties. Each place that can affect payment-page security or handle account data requires qualified evaluation.
PCI DSS v4.0.1 is a payment-card data security standard published by the PCI Security Standards Council. Which requirements and validation method apply depends on merchant environment, channels, contracts and acquiring parties. Skillonit does not issue a PCI attestation or “compliance certificate.”
Hosted pages or provider fields can reduce card-data handling, but merchant scripts, page integrity, redirects, server configuration and operational controls remain relevant. The buyer consults its acquirer, payment brands and qualified assessor to confirm scope and evidence.
Primary account numbers, if present at all, are protected and minimized. Sensitive authentication data such as card-verification values is not stored after authorization even when encrypted, consistent with PCI SSC guidance. It is excluded from logs, traces, queues, crash reports, chat and analytics.
Gateway credentials reside in managed secret storage. Production and test credentials are separate. Keys are scoped when supported, rotated, monitored and revoked on compromise. Mobile or browser clients receive only identifiers intended by the provider for client exposure.
Webhook endpoints verify the exact provider mechanism, enforce transport, body limits and replay controls, and avoid detailed errors. A valid webhook still undergoes object ownership and state validation before it affects an order.
Hosted script and SDK supply-chain risk is managed through provider-approved loading, Content Security Policy where compatible, change monitoring and inventory. Pinning or self-hosting is used only if the provider supports it; copying a provider script can break security and update expectations.
Object-level authorization prevents a customer or support agent from retrieving another payment by guessing an ID. Refund and manual capture authorization is enforced on the server and checked against current merchant, account and order scope.
Encryption in transit and at rest follows the architecture and current requirements. It complements, not replaces, minimization and access control. Backups and replicas receive the same data classification.
Privacy design limits customer, device and transaction data to the purpose and retention approved by stakeholders. Fraud analysis, analytics, support and dispute evidence may have different needs. Applicable privacy law requires qualified review.
Incident response addresses credential compromise, card-data exposure, payment-page tampering, forged webhook, duplicate capture and unauthorized refund. Notification obligations are determined by authorized parties; software controls cannot guarantee zero breach.
User experience, accessibility and international operation
Checkout presents merchant identity, item, amount, currency and terms before payment. The primary action states the effect, such as “Pay 42.00 EUR,” rather than a vague “Continue.” Fees are not hidden in a later step.
Payment method fields have programmatic labels, clear instructions, mobile input modes and error association. Provider-hosted controls are tested with keyboard, screen reader, zoom and representative devices because inclusion of a provider component does not prove the complete checkout is accessible.
Errors distinguish correctable input, authentication action, temporary service issue, declined payment and order conflict without exposing sensitive reason. The customer can return from an issuer challenge, retry safely, choose another eligible method or contact support.
Focus moves predictably after validation and redirect return. Loading indicators have text and do not leave the user unsure whether payment occurred. A slow response does not invite repeated clicks; the backend remains idempotent regardless.
Wallet and payment-method logos include accessible names and are not the sole information. Color does not carry success or failure. Receipts are readable and include a non-visual order reference and support route.
W3C WCAG 2.2 informs checkout, result, support and finance interfaces. An agreed conformance target requires testing of the full application, selected payment components and supported assistive technologies.
International operation models merchant entity, acquiring account, country, currency, language, timezone, minor units, decimal display, address, tax presentation and payment-method availability. One global gateway credential may not be the correct architecture for every legal entity.
Authentication, stored credentials, refunds, disclosures and restricted products vary by region. The platform and qualified counsel determine applicable rules. A country field does not authorize a payment method or establish local service delivery.
Performance and Core Web Vitals
Checkout performance matters, but correctness and security remain primary. Budgets distinguish merchant page render, gateway component load, payment-attempt creation, authentication, provider response and status confirmation.
The public checkout can set Core Web Vitals budgets for Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift. Field data is segmented by device, connection and geography where sufficient observations exist. Laboratory results support diagnosis but do not promise customer experience.
Gateway JavaScript, wallets, analytics and fraud services are third-party dependencies. They load only when required, and nonessential tags do not block the payment form. Resource hints and lazy loading follow provider requirements and are tested.
Layout reserves space for hosted fields, authentication and error messages so late content does not shift the pay button. Interaction handlers avoid long main-thread work. Network timeouts lead to safe status recovery.
Backend latency budgets allocate order validation, risk, payment provider and persistence. Payment creation avoids unnecessary synchronous calls. A slow optional service cannot cause an unknown charge state.
Capacity tests cover normal checkout, campaign burst, retries, webhook burst, reconciliation and refund operations. Provider sandbox limits are not assumed to equal production limits. Backpressure protects provider quotas.
No checkout speed, approval, conversion, throughput or availability metric is promised without measured traffic and provider boundaries.
Technical SEO
Checkout, payment-result and account routes need intentional indexing. Customer-specific order, payment, authentication-return and tokenized support URLs should not be indexed or placed in XML sitemaps. Robots directives do not replace authentication and short-lived secure references.
This authority page uses /services/payment-gateway-integration/ as its canonical path and remains noindex,follow with sitemapEligible: false during editorial review. Release requires a verified HTTP 200, meaningful rendered HTML, consistent canonical, crawlable internal links, accessible mobile layout and approved claims.
Metadata, H1, breadcrumb and Open Graph data consistently identify integration rather than gateway development or financial services. Image alt text can describe a checkout-to-gateway-to-settlement data flow based on the visible diagram, not repeat keywords.
Organization, WebSite, BreadcrumbList and Service are the supported schema candidates; FAQPage applies only while the visible questions and answers remain. Markup must not add prices, ratings, reviews, gateway partnerships, certifications, offices, customers or results without evidence.
Payment query parameters and return states should not create duplicate indexable pages. Canonical and error behavior prevent soft 404s, while open redirect controls protect return URLs. Receipt and failure copy remains useful without exposing customer data.
No unreviewed translation receives hreflang. Reciprocal annotations connect only real editorially reviewed equivalents, with x-default where appropriate. Sitemaps contain canonical, approved and indexable successful routes with truthful lastmod.
Location routes start noindex and need verified service delivery, merchant and payment-method context, currency, language, regulation, industries, unique FAQs, internal links, similarity approval and human editorial review. No local office or payment-provider relationship is implied.
No ranking, traffic, AI citation, conversion or lead outcome is guaranteed.
Discovery-to-launch delivery process
1. Commercial and funds-flow discovery
Stakeholders define merchant entities, products, countries, currencies, checkout channels, methods, fulfillment, refunds, subscriptions, disputes, settlement, support and finance. Provider agreements, account readiness and restricted-business conditions are confirmed by owners.
Outputs include method matrix, funds-flow diagram, responsibility model, payment-state map, data-flow and PCI-scope assumptions, risks and exclusions.
2. Checkout and lifecycle design
The team models order, payment attempt, authentication, authorization, capture, refund, dispute and settlement. Examples cover success, decline, challenge, abandonment, timeout, duplicate, late success, partial capture and late refund.
The merchant chooses hosted, embedded or native collection based on product experience and qualified scope review. Customer and support recovery paths are designed before UI polish.
3. Provider and architecture proof
A vertical proof creates a provider test payment from a server-calculated order, completes supported authentication, receives webhook, fulfills a test order and reconciles the provider object. Credentials and provider versions are documented.
4. Incremental implementation
Each method includes eligibility, client UI, backend state, idempotency, webhook, failure behavior, refund, finance data, tests and runbook. New methods are not forced through card semantics when they remain asynchronous or mandate-based.
5. Security and operational readiness
Qualified stakeholders confirm payment-data scope and evidence. Security tests checkout and administration, finance rehearses settlement, support rehearses unknown and refund cases, and operations verifies keys, alerts and incident stop.
6. Controlled launch
Launch begins with approved merchant accounts, currencies and methods under transaction and amount limits where possible. Real payments are reconciled before broader rollout. Business and provider metrics are monitored without claiming commercial causation.
7. Handover and lifecycle ownership
Runbooks, dashboards, provider contacts, credentials, reconciliation, dispute queues, change monitoring and support ownership are accepted. Known provider and regional limitations remain visible.
Testing
Unit tests cover money precision, currency, order total, state transition, idempotency, capture limits, refund balance, webhook ordering and mapping. Boundary tests include zero, negative, maximum and minor-unit cases.
Provider contract tests cover create, authenticate, authorize, capture, void, refund, query and webhook schemas. They include accepted, declined, pending, unavailable and malformed responses without assuming every provider uses the same model.
Browser and mobile tests cover hosted fields, redirects, issuer challenge, wallet availability, back button, refresh, double click, network loss and accessibility. No test stores real cardholder data.
Webhook tests use valid and invalid signatures, replay, duplicate, delayed, out-of-order, unknown event, changed secret and oversized body. Processing proves exactly one internal business action under duplicate delivery.
Integration tests inject inventory expiry, order conflict, gateway timeout, unavailable risk service, database failover and notification failure. They verify that payment truth and order truth can be reconciled.
Refund and dispute tests cover full, partial, repeated, excessive, failed and late events. Support role and amount authority are tested at the server boundary.
Security tests cover object authorization, secret exposure, script tampering, injection, SSRF, open redirect, forged provider identity, dependency risk and log leakage. Testing supports but does not certify PCI compliance or security.
Accessibility tests combine automated scanning with keyboard, screen-reader, zoom and mobile flows across provider components. Provider updates trigger regression.
Performance and resilience tests use official test environments and synthetic instruments. Safety gates prevent accidental real charges, refunds or customer notifications.
User acceptance includes product, finance, support, security and qualified payment stakeholders. A successful sandbox charge alone is not production acceptance.
Deployment
Infrastructure as code defines checkout backend, networks, secret access, webhook ingress, queues, stores, monitoring and backup. Test and live gateway modes use separate accounts and credentials with visible environment guards.
Delivery pipelines build reproducibly, run tests, scan dependencies and record approval. Configuration validates merchant account, allowed currencies, return origins, webhook secret and method list before traffic.
Production starts with constrained methods, amounts, currencies and traffic where feasible. Live-mode indicators protect support and operations from confusing test and real transactions. Temporary credentials and broad roles are removed.
Canary releases preserve state compatibility so old and new code do not handle the same webhook differently. Feature flags can disable a new method but do not bypass refund or settlement reconciliation.
Rollback distinguishes application code, provider configuration and completed payment effects. A captured payment cannot be undone by deploying old code; it needs an approved refund or other lifecycle action.
Observability and incident response
Dashboards cover attempt creation, authentication state, authorization, capture, decline categories, unknown state, webhook delay, duplicate event, refund, dispute, reconciliation exceptions, provider latency and error.
Traces connect order, internal attempt, idempotency key, provider object and webhook without containing full card data or secrets. Logs use masked or internal references and controlled retention.
Alerts correspond to action: rising unknown payments, signature failures, duplicate captures, settlement gaps, provider errors, credential problems and checkout script changes. Thresholds follow measured behavior and financial risk.
Incident procedures include checkout pause, method disablement, key revocation, evidence preservation, provider escalation, duplicate and exposure search, customer-support guidance, reconciliation and safe resume.
Security, finance, legal and payment partners determine required notification or correction. The integration does not promise detection or prevention of every loss.
Migration and modernization
Migration inventory includes merchant accounts, provider customers, payment tokens, subscriptions, methods, authorizations, unsettled captures, refunds, disputes, webhooks, settlement files, support tools and finance mappings.
Payment tokens are usually provider- or vault-bound. Portability depends on contracts, network and provider programs and qualified handling. The project never assumes it can export raw credentials or migrate tokens through ordinary application code.
New checkout can launch for new purchases while legacy refunds and disputes remain on the old provider. Support clearly identifies which system owns each payment. Open lifecycle cases remain accessible until complete.
Parallel operation needs routing by merchant, country, method, customer cohort or order creation time. Retry never switches provider automatically after an unknown result because that can create two payments.
Settlement and finance compare both providers through cutover. Webhook endpoints remain active for late refund or dispute events. Decommission revokes keys only after retention, reconciliation and owner approval.
Timeline
Timeline depends on provider and merchant onboarding, countries, currencies, methods, checkout pattern, authentication, subscriptions, refunds, disputes, settlement, mobile SDKs, PCI scope, integrations, migration and testing.
A single hosted card checkout is smaller than multi-entity orchestration with wallets, bank methods, recurring billing and provider migration. A sandbox proof can arrive early, but production requires live account, qualified review, webhooks, reconciliation and operations.
External dependencies include underwriting, account verification, acquirer decisions, wallet or domain registration, provider support, security and assessor input, finance mapping and app-store release. The plan exposes rather than hides these dependencies.
Milestones can be funds flow accepted, account readiness confirmed, vertical test passed, security boundary reviewed, reconciliation passed, operational readiness approved and controlled live transactions reconciled. No universal delivery time is promised.
Cost
Cost drivers include discovery, checkout and backend engineering, method count, provider SDKs, authentication, mobile platforms, tokenization, subscriptions, finance and order integrations, security, accessibility, migration, tests and support.
Provider fees can include processing, method, currency conversion, authentication, dispute, refund, payout or platform charges under current contracts. They are external and can change. An engineering estimate separates provider commercial fees.
PCI assessment, penetration testing, legal, tax, acquirer and specialist fraud work may be necessary and separately procured. Hosted integration can reduce some engineering but does not erase operational assurance.
Multi-provider routing adds adapters, normalization, token portability, reconciliation and incident complexity. It is justified by measured business need, not a generic promise of savings or availability.
Estimates disclose assumptions, exclusions and uncertainty. No price, approval improvement, conversion, fraud reduction, fee savings or ROI is invented.
Maintenance
Maintenance includes provider API and SDK versions, webhook schemas, credentials, certificates, payment methods, authentication rules, wallet domains, merchant accounts, dependencies, checkout accessibility and performance.
Payment lifecycle regression runs after provider or browser changes. Test methods cover authentication, decline, asynchronous, refund and dispute states. Production smoke tests use authorized low-risk procedures.
Finance reviews settlement mappings, unmatched items, fee codes, reserves and payout timing. Support reviews unknown payments, refund errors and recurring confusion. Product owners remove obsolete methods and copy.
PCI and security scope are reassessed after significant changes. Script inventories, access, logging, incident procedures and evidence require ongoing ownership. The application cannot assess itself into compliance.
Resilience exercises cover provider outage, webhook interruption, key compromise, database restore and reconciliation. Support objectives require a specific agreement; no universal uptime promise applies.
Risks and mitigations
Duplicate charge: timeout or repeated click creates multiple attempts. Mitigation: server idempotency, one business attempt and status reconciliation.
False fulfillment: browser return is trusted as payment success. Mitigation: backend query or verified webhook and explicit approved state.
Amount tampering: client changes total or currency. Mitigation: authoritative server calculation, order version and signed provider request.
Card-data leakage: values reach logs or analytics. Mitigation: hosted collection, minimization, redaction tests and qualified scope review.
Forged webhook: attacker marks an order paid. Mitigation: provider authenticity verification, object ownership and amount/state checks.
Late success: payment completes after inventory expires. Mitigation: reservation policy, exception state and approved refund or fulfillment decision.
Refund abuse: support role refunds unauthorized amounts. Mitigation: scoped role, order balance, authority, dual control where needed and audit.
Settlement gap: captured sales do not map to payout. Mitigation: provider-to-internal-to-bank reconciliation with aged exception ownership.
Provider lock-in: tokens and workflows cannot move easily. Mitigation: adapter boundary, honest portability assessment and staged migration plan.
Comparisons and decision criteria
| Pattern | Strong fit | Strength | Important boundary |
|---|---|---|---|
| Hosted checkout | Fast support for provider-managed checkout | Reduced direct payment-field handling | Redirect experience and provider layout control |
| Hosted fields or payment element | Integrated merchant checkout | Provider collects sensitive fields | Merchant page and scripts remain security-relevant |
| Direct API card collection | Exceptional need for deep control | Maximum merchant control | Much greater data exposure and assurance burden |
| One gateway integration | Clear merchant and market fit | Simpler state and reconciliation | Provider availability, coverage and lock-in remain |
| Payment orchestration layer | Several providers or routing needs | Central normalized business workflow | Normalization, tokens and reconciliation are complex |
| Commerce-platform payments | Store already uses supported commerce stack | Configuration and lifecycle integration | Platform and extension constraints apply |
Decision criteria include merchant eligibility, countries, currencies, payment methods, checkout surfaces, authentication, recurring billing, settlement, data scope, support, provider contract, portability, reliability and total ownership cost. A proof includes timeout, duplicate, refund and settlement—not just a test-card success.
Frequently asked questions
What does payment gateway integration include?
It includes checkout, provider API or SDK, server payment state, authentication, tokenization, webhooks, capture, refunds, disputes, settlement reconciliation, security, tests and operations.
Is a gateway the same as a processor?
Not always. Providers can bundle gateway, processing, acquiring or orchestration roles. The project maps the exact contractual parties and data flow rather than rely on labels.
Does hosted checkout make us PCI compliant?
No. It can change and sometimes reduce card-data exposure, but eligibility, environment, controls and validation require qualified assessment under current PCI DSS and acquirer requirements.
Can we store a CVV for recurring billing?
No. PCI SSC guidance says card-verification values are sensitive authentication data and cannot be stored after authorization, including for recurring transactions.
How do you prevent duplicate charges?
Use a stable merchant payment attempt, idempotency keys bound to the operation, durable state, controlled retry and provider-status reconciliation after unknown outcomes.
Should we trust the checkout return URL?
Not as sole authority. It supports customer experience. The backend confirms payment through a verified webhook or provider query and checks order, amount, currency and ownership.
What is 3-D Secure?
EMV 3-D Secure is a specification family for card-not-present authentication. Exact provider and issuer flows vary. Authentication can be frictionless, challenged, unavailable, failed or abandoned and does not guarantee authorization.
Can the integration guarantee fewer declines?
No. Issuers, networks, gateway, payment data, fraud controls and customer action affect outcomes. The system can report and safely route results but cannot guarantee approval.
Can we use multiple gateways?
Yes when business need justifies orchestration, but token portability, method differences, unknown-result routing, reconciliation, contracts and support become more complex.
How are refunds handled?
An authorized operator requests a full or partial refund against captured balance using an idempotent action. The system tracks provider acceptance and final status and reconciles the adjustment.
Can saved cards move to a new provider?
Sometimes through provider, network or vault migration programs. Tokens are often provider-bound. The path needs contracts, qualified handling and a specific portability assessment.
How do we test safely?
Use official test environments, provider test instruments, controlled webhooks, synthetic orders and environment guards. Production validation follows authorized procedures and reconciles real low-risk transactions.
What is a safe first release?
Choose one merchant entity, currency and hosted or tokenized card flow. Prove order authority, authentication, duplicate prevention, webhook handling, refund, support lookup and settlement reconciliation before adding methods.
Start a Payment Gateway Integration discussion
Bring the merchant entity, selected or candidate provider, products, countries, currencies, payment methods, fulfillment timing, refund policy, subscription needs, checkout surfaces and finance reconciliation. Skillonit can map the funds flow and prove one complete lifecycle in a safe environment.
The first milestone is not a successful test card. It is an order that stays correct through challenge, timeout, duplicate webhook, capture, refund and settlement evidence.
No merchant approval, payment authorization, authentication, fraud reduction, PCI compliance, settlement, conversion, revenue, ranking, traffic, lead or AI-citation outcome is promised.
Related services
- API Development Services for owned payment-domain and provider-facing API contracts.
- API Integration Services for broader third-party and internal interface integration.
- Custom Ecommerce Website Development for complete storefront and checkout delivery.
- SaaS Subscription Billing Platform for subscription, invoice and billing lifecycle products.
- Ecommerce Integration Services for commerce, order, inventory and fulfillment connections.
National/global and location routes remain separate. Each location route stays noindex,follow and outside XML sitemaps until it contains verified service delivery, merchant and method availability, currency, language, payment and legal context, relevant industries, unique FAQs, internal links, similarity approval and human editorial approval. It must not imply an office, local acquirer relationship or payment license without evidence.
Editorial source notes
- PCI DSS v4.0.1 publication notice — PCI Security Standards Council primary notice for the current limited revision and document-library route; scope and validation require qualified assessment.
- PCI SSC FAQ on card-verification codes — primary guidance that card-verification values are sensitive authentication data and cannot be stored after authorization, even encrypted.
- PCI SSC guidance on validation certificates — primary warning that unofficial “compliance certificates” are not recognized validation documents.
- EMVCo EMV 3-D Secure — primary specification index and overview for card-not-present authentication; draft material is not represented as final.
- OWASP Application Security Verification Standard — application-security requirements reference for checkout and administrative systems; use does not guarantee security.
- NIST SP 800-218 Secure Software Development Framework — primary secure-development lifecycle reference.
- W3C WCAG 2.2 — accessibility reference for checkout, authentication return, support and finance interfaces.
- Google Core Web Vitals — primary terminology and measurement guidance for LCP, INP and CLS on checkout and related web pages.
- Google structured data policies — source for visible-content schema alignment; search presentation is not guaranteed.
Fact versus recommendation: PCI SSC and EMVCo facts are summarized from their current primary sources. Architecture, state, idempotency, webhook, reconciliation, testing and migration practices are project-dependent engineering recommendations. Payment, accounting, tax, legal, fraud and compliance decisions require qualified owners.
Review state: last reviewed on 2026-08-10. Editorial reviewer is unassigned. Recheck PCI DSS, EMV specifications, gateway documentation, provider pricing and methods, regulations, links, security, accessibility, claims, schema and release metadata before publication or production reuse.

