Express Checkout with Apple Pay and Google Pay: from cart to purchase in one tap
The hardest step in any online store is often the checkout itself. The customer has made up their mind, but still has to type in their email, phone number and address, choose a delivery option and finally pay. Every field is another chance to drop off, especially on mobile.
With Express Checkout, the customer skips the whole form.
What the customer sees
Apple Pay and Google Pay buttons appear at the top of the checkout, under the heading Express Checkout and before the customer form. Customers who prefer to fill in their details themselves can use the regular form below.
- The customer taps Apple Pay or Google Pay.
- The wallet's payment sheet opens, with the address and card already saved there.
- The customer picks a delivery option right in the payment sheet. The price and total update instantly.
- The customer confirms with Face ID, Touch ID or their fingerprint. Done.
The customer details from the wallet go straight into the order, so the store has what it needs to ship the goods.
Smart address handling: the right shipping before the customer pays
The tricky part of express checkout is shipping. The store needs to show the right delivery options and the right price before the customer has paid, without receiving the full address too early.
Dintero solves this in two steps:
- While the customer picks a delivery option, the store only receives the country and postal code. That is enough to work out which delivery methods are available and what they cost, without the customer sharing more than necessary.
- When the customer pays, the shipping address and customer details from the wallet are added to the order, ready for picking, packing and shipping.
Every time the customer changes address in the wallet, Dintero asks the store again. If the customer switches from an address in Oslo to one in Svalbard, the store can reply with different delivery options, a different price, or no options at all if it does not ship there.
For developers: how to turn it on
Express Checkout with wallets builds on Dintero's existing Express Checkout. You switch on the wallet buttons with one flag on the session, allow_express_wallet_payment:
There are two ways to provide delivery options:
- Fixed delivery options: Send them in
express.shipping_optionswhen you create the session. This is what our demo store does. - Dynamic delivery options: Set
express.shipping_address_callback_url. When the address changes, Dintero sends a POST with the updated session, signed with theDintero-Signatureheader. The store replies with HTTP 200 and a list ofshipping_options, plus an updatedorderif the price should change. An empty list means the store does not ship to that address.
For Apple Pay and Google Pay, your endpoint must be able to respond when order.shipping_address only contains country and postal_code:
A few tips before you go live:
- Response time: Your endpoint must respond within 60 seconds, and Dintero does not retry on failure. In practice, the response should come much faster, because the customer is waiting in the payment sheet.
- Embedded checkout: Use
dintero_psp.applepayanddintero_psp.googlepay. Apple Pay also requires domain verification and@dintero/checkout-web-sdkversion 0.9.0 or later. - Shipping in the browser: Want to handle address changes in your own frontend? Use
onAddressCallbackin the Web SDK (from version 0.12.0) instead of a server-to-server call. - WooCommerce: From version 1.15.0, the Dintero plugin for WooCommerce applies the address from Apple Pay and Google Pay to the cart when Express Checkout runs as pop-out or embedded.
Express Checkout with wallets works with the rest of Express Checkout: discount codes, both consumer and business customers, and multiple shipments.
Try it yourself
See Express Checkout in our demo store. Open it on a phone with Apple Pay or Google Pay to see the full flow. Read more in the documentation for Apple Pay and Google Pay, or get in touch and we'll help you get started.





