v1.20.0 - Apple Pay and Google Pay start on the right Stripe account from first paint #
A detached checkout now sends the cart's product codes as a routing hint, so the first session response already advertises the Stripe account the cart's products use, and Stripe.js, Apple Pay and Google Pay load on that account from first paint. When the claim still moves the checkout to another Stripe account, the embedded checkout in @flopay/react re-mounts its wallet buttons on the new account instead of losing Apple Pay and Google Pay. @flopay/js adds an opt-in stripeAccountSwitch option to PaymentAPI.
25 Nov 2026
Checkouts whose products are paid into a Stripe account other than your default one now load that account from the start. Stripe.js, fraud signals, Apple Pay and Google Pay begin on the right account at first paint, with no switch after the page has loaded.
What changed
- Routing hint on detached creates. A detached checkout create sends the cart's distinct catalogue product codes as
routingProducts: [{ code }], one entry per code. It is a routing hint only: the billing API uses it to advertise the cart's Stripe account on the first response and does not store it, and the claim stays the authority. An empty cart, a cart without product codes and a one-shot create send noroutingProductskey, so their request is unchanged. - React switches accounts on claim. When a claim changes the checkout to a different Stripe account, the embedded checkout in
@flopay/reactloads Stripe.js for the new account, drops the old instance and re-mounts the wallet buttons on the new account before showing the claimed session, so a wallet payment confirms on the new account only. A claim that keeps the same account re-initialises nothing. - Keeps working if Stripe.js cannot load. If Stripe.js fails to load for the new account, the wallets stay hidden, the hosted card form and PayPal keep working, and Retry payment methods loads the new account.
- Wallets stay available after a switch. The React embedded checkout declares the
stripe-account-switch-v1token in thex-flo-sdk-capabilitiesheader of the detached create and its claims, so the billing API keeps Apple Pay and Google Pay on a claim that changes the Stripe account instead of hiding them. @flopay/js.new PaymentAPI(billingApiUrl, { stripeAccountSwitch: true })addsstripe-account-switch-v1to the detached create and every claim. It is off by default, so aPaymentAPIwithout the option never declares it.@flopay/vue. The Vue checkout sends the routing hint through@flopay/js, but does not declare the capability. When a claim would change the Stripe account, the billing API hides Apple Pay and Google Pay for the Vue checkout as it does today, and card and PayPal stay available. The Vue port of the account switch follows with SDK 2.0.- No gateway choice in the browser. The SDK still never chooses or filters a gateway: it renders what the session advertises.
Integration notes
- No action is needed for React or Vue checkouts. Upgrade to get wallets on the right Stripe account from first paint.
- If you do not use product-level gateway selection, the routing hint changes nothing for your checkout.
@flopay/jswith your own wallet integration: setstripeAccountSwitch: trueonly when your integration loads Stripe.js for the claimed account and re-mounts its wallet buttons there. Without it, nothing changes.