Skip to content
Web Development

Ecommerce Digital Wallet Integration: How to Support Modern Payment Methods

How to integrate Apple Pay, Google Pay, PayPal and other wallets into an ecommerce checkout: eligibility, domain setup, express checkout, shipping updates, tokens, 3DS, testing and measurement.

Quick answer

Digital wallets such as Apple Pay, Google Pay and PayPal let shoppers pay with stored cards and addresses instead of typing them. Integrate through your payment provider's wallet support where possible: check eligibility before showing a button, verify domains for Apple Pay on the web, pass line items and totals into the payment sheet, recalculate shipping and tax when the shopper changes address, send the encrypted token to your server for authorization, and confirm the order from server-side results and webhooks. Test on real devices and measure overall conversion, not just wallet usage.

Where This Fits

Wallets matter most on phones; the page-level design is in mobile ecommerce checkout and checkout UX. The payment lifecycle behind a wallet payment is the same as for cards, covered in payment gateway integration. In-app wallet payments are in mobile app payments.

Which Wallets Should You Support?

Choose by your customers' devices and markets, not by a list of logos. Apple Pay reaches Safari and Apple devices, Google Pay reaches Chrome and Android, and PayPal has strong recognition in many markets. Regional wallets matter in specific markets; international payments covers how to choose by market.

WalletHow shoppers payIntegration notes
Apple PayFace ID, Touch ID or passcode on Apple devicesDomain verification for web; merchant ID via your provider
Google PaySaved cards in a Google account, device unlock on AndroidGoogle Pay API or provider SDK; production access request
PayPalPayPal login or saved sessionPayPal buttons and Orders API; separate order and capture
Regional walletsApp approval or QR codeOften redirect or app-switch flows with asynchronous confirmation

How Wallet Payments Work

For device wallets, the browser or operating system shows a payment sheet with the shopper's stored cards and address. When the shopper approves, the wallet returns an encrypted payment token rather than the card number. Your front end sends it to your server, your server passes it to the payment provider, and the provider decrypts and authorizes it. Card data never touches your servers, which keeps PCI scope small.

On the web, wallets can be invoked through provider SDKs, through Apple's Apple Pay on the Web JavaScript, the Google Pay API for web, or the W3C Payment Request API where supported. Provider SDKs are usually the simplest route because they handle tokens, domain registration and fallbacks.

Recalculating shipping and tax inside the sheet is what keeps express checkout totals honest.

Eligibility and Domain Setup

Only show a wallet button when the shopper can actually use it. Each wallet provides a capability check (for example, whether Apple Pay is available on this device with an eligible card) that should run before rendering the button. Showing a button that then fails is worse than not showing it.

Apple Pay on the web requires each domain, including subdomains and staging hosts, to be registered and verified, typically by serving a domain association file at a fixed path. Headless storefronts with several domains need each one registered. Google Pay requires a production access request and compliance with its brand guidelines. Plan these steps into your launch timeline.

Express Checkout Placement

Express buttons can appear on product pages, in the cart or cart drawer, and at the start of checkout. Product page buttons suit single-item, impulse and mobile purchases; cart and checkout placement suits multi-item baskets. Keep wallet buttons visually secondary to your main call to action unless data shows otherwise, and avoid a crowded row of six logos.

Adding express wallets to a custom or headless checkout?

ZSpace Labs builds wallet integrations with correct shipping and tax updates, server-side validation and device testing across browsers.

Start a Project

Shipping, Tax and Totals in the Payment Sheet

Express checkout skips your forms, so the payment sheet must handle everything those forms did. When the shopper selects or changes an address, your code receives an event and must return available shipping options and updated totals, including tax and any duties. If you cannot ship to the address, return a clear error so the sheet can tell the shopper.

  • Pass line items, discounts, shipping and tax as separate lines
  • Recalculate on address and shipping-option changes
  • Handle undeliverable addresses with a specific message
  • Request only the contact fields you need (email, phone)
  • Validate the final amount on the server before authorizing
  • Apply the same promotion and inventory rules as normal checkout

Authorization, 3DS and Confirmation

After approval, authorize the payment server-side with an idempotency key so retries cannot double charge. Device wallets typically include a cryptogram that supports strong authentication, but some cards, wallets and regions still require 3D Secure; let your provider's integration tell you when an extra step is needed. Create the order only after a successful authorization, and use webhooks to confirm asynchronous outcomes, especially for redirect-based regional wallets.

Address and Name Data Quality

Wallet addresses are sometimes old or formatted differently from your checkout's expectations: missing apartment numbers, unusual capitalization, phone numbers without country codes. Normalize and validate addresses on the server, and show the shipping address clearly on the confirmation page and email so the customer can spot a wrong one quickly.

Testing Wallet Integrations

  • Real devices and browsers: iPhone Safari, Mac Safari, Android Chrome, desktop Chrome
  • Provider test mode and wallet sandbox accounts
  • Address change that alters shipping cost and tax
  • Address the store cannot ship to
  • Shopper cancels the sheet; payment declined; network drops after approval
  • Discount codes and gift cards with wallets
  • Staging and production domains each verified

Measuring Wallet Impact

Wallet usage share is not the goal. Measure checkout conversion, time to purchase, mobile conversion, average order value and decline rates with and without wallet buttons, ideally through an A/B test. Track failure points: button shown but sheet not opened, sheet opened but cancelled, approved but authorization failed.

Advantages and Limitations of Wallets

AdvantagesLimitations
No card typing, which matters most on phonesOnly shown to shoppers with eligible devices and cards
Stored addresses speed up checkoutWallet addresses can be outdated or oddly formatted
Tokens keep card data off your systemsDomain verification and production approvals add setup work
Device authentication often satisfies strong authenticationSome cards and regions still trigger 3DS
Express buttons can shorten the path to purchaseExpress flows bypass upsells and custom checkout fields

How to Add Wallets Step by Step

  • 1. Check your audience: device and browser mix by market, and which wallets your provider supports
  • 2. Enable wallets in your provider and complete Apple Pay domain registration and Google Pay production access
  • 3. Start in checkout: add wallets as payment methods before adding express buttons elsewhere
  • 4. Wire shipping and tax callbacks so totals update with the address
  • 5. Validate totals server-side and authorize with idempotency keys; see payment failure handling
  • 6. Test on real devices across browsers and markets
  • 7. Add express buttons to cart, then product pages, measuring each step
  • 8. Monitor sheet opens, cancellations, authorization failures and address issues

Worked Example

An illustrative scenario, not a client case: a D2C skincare brand on a headless storefront adds Apple Pay and Google Pay to the cart drawer. Early orders show shipping charged at the default rate even when shoppers changed address in the sheet, because the shipping callback was not wired. After adding recalculation on address change and server-side total validation, discrepancies stop and mobile checkout completion improves in the test group.

Common Mistakes

  • Showing wallet buttons without checking eligibility
  • Forgetting to verify staging or secondary domains for Apple Pay
  • Not updating shipping and tax when the address changes
  • Trusting client-side totals
  • Creating orders before authorization succeeds
  • Measuring wallet share instead of conversion

Want faster checkout without breaking totals or tax?

Talk to ZSpace Labs about wallet and checkout development, Shopify express checkout configuration and in-app payment integration.

Start a Project

Conclusion

Wallets remove typing, which matters most on phones. Use provider SDKs, check eligibility, verify domains, keep the payment sheet's totals accurate, authorize server-side and test on real devices. Related: mobile checkout, payment failure handling and 3D Secure.

FAQ

Common questions

A payment method that stores a shopper's cards and often their address, such as Apple Pay, Google Pay or PayPal, so they can pay without typing card details, usually confirming with biometrics or a device passcode.

Get in touch

Have a project in mind?

Whether you're building a new digital product, improving an existing website, or looking to automate part of your business — let's talk.