This release only improves the reliability of the automated tests for the React checkout in @flopay/react. The SDK code and its behaviour are unchanged, and no action is needed.
This release only makes the automated tests for the React checkout in @flopay/react more reliable. The SDK itself is unchanged: payment flows, overlay timing and callbacks behave exactly as before.
What changed
- No change to the checkout. The saved-payment success and error screens, and their timing, are untouched.
- More reliable test runs. The checkout's own tests now finish their pending React work before the test page is torn down, which removes an occasional false failure in the test run.
Integration notes
- No action is needed. You do not need to upgrade for this change.
The Flopay runtime checkout preview accepts paymentMethodLayout in React and Vue and passes the API-resolved layout to the checkout frame. Rule changes update the same checkout without remounting. This adds layout handoff support, not new payment methods.
26 Nov 2026
Improvement
Checkout
JavaScript SDK
React SDK
Vue SDK
The runtime checkout preview now accepts optional paymentMethodLayout rules through the React and Vue components. The runtime asks the API to resolve those rules and passes the result to the checkout frame, preparing the layout handoff without adding new payment methods.
What changed
- Layout rules can be supplied at mount and updated without remounting the checkout. Equal rules do not trigger another request, and an older response cannot overwrite the latest layout.
- Country-based rules are resolved by the API, not by browser-side country detection. With no rules or an unavailable layout service at startup, the checkout retains its default presentation.
- The runtime passes the merchant page's redirect-return query to the checkout frame without adding it to the frame URL.
- React and Vue runtime checkout components declare wrapper contract 2.1.0. Wrappers that declare no contract version continue to use the 2.0.0 baseline.
Integration notes
Upgrade @flopay/js, @flopay/react and @flopay/vue together to use paymentMethodLayout in the runtime preview. The option is additive; existing integrations need no changes. This update does not add PayPal, wallet or alternative payment method flows to the runtime preview, and existing 1.x checkout behaviour is unchanged.
The Flopay-hosted runtime checkout preview now records which wrapper contract version each checkout runs under, and the React and Vue preview components declare version 2.0.0. A Vue runtime checkout whose appearance or strings are kept in reactive state now starts instead of never receiving its settings. No action is needed.
26 Nov 2026
Improvement
Checkout
JavaScript SDK
React SDK
Vue SDK
Checkouts that run from the Flopay-hosted runtime preview now say which wrapper contract version they were built for, and a Vue checkout that keeps its options in reactive state now starts correctly. Existing 1.x checkouts are unchanged and no action is needed.
What changed
- Contract version in runtime telemetry. The runtime's
runtime.load, runtime.ready and runtime.failed telemetry events now carry contractVersion: the version declared by the wrapper that mounted the checkout. A wrapper that declares none is reported as 2.0.0, so existing wrappers keep working. The field identifies a wrapper build, never a buyer or a merchant.
- Optional
contractVersion mount option. The runtime's mount options accept an optional contractVersion. @flopay/react and @flopay/vue set it to 2.0.0 in their runtime checkout components, so you do not need to pass it yourself.
- Vue runtime checkout with reactive options. When
appearance or strings were kept in Vue reactive state, the browser could not copy them to the checkout frame, so the frame never received its settings. The runtime now sends the frame a plain copy, and the checkout starts as expected.
Integration notes
- No action is needed. Upgrade
@flopay/js, @flopay/react and @flopay/vue together to get these changes in the runtime checkout preview.
After a checkout session is claimed, @flopay/react and @flopay/vue now show PayPal, Apple Pay, Google Pay and other wallet buttons from the claimed session, not from the earlier detached session. A provider the claimed session no longer offers has its buttons removed, so buyers are not shown a button that cannot complete a payment.
26 Nov 2026
Bug Fix
Checkout
React SDK
Vue SDK
A buyer no longer sees a PayPal or wallet button that the claimed checkout cannot pay with. Before this release, a checkout created detached could offer Stripe or PayPal buttons, and those buttons stayed on the page after the claim even when the claimed session no longer offered that provider.
What changed
- Buttons follow the claimed session. After a claim, the buttons for PayPal, Apple Pay, Google Pay and other wallets come from the claimed session. A provider the claimed session explicitly leaves out is removed, and its buttons are unmounted.
- Providers are handled one by one. Removing PayPal keeps the wallet buttons, and removing the wallets keeps PayPal.
- Card payment is unaffected. The hosted card form stays in place and card payment completes as before.
- Providers that stay are not reloaded. A provider the claimed session still offers keeps working without being mounted again.
- Providers the claim does not mention are kept. Only an explicit removal in the claimed session takes a provider away.
- React and Vue. The checkout component in
@flopay/react and @flopay/vue applies this for you. There are no new props.
Integration notes
- No action is needed. Upgrade to get buttons that match the claimed session.
The React checkout in @flopay/react now stops work for a saved-payment confirmation once the checkout has been removed from the page. It no longer updates its own state or calls your completion callbacks after that point. A payment that succeeds in that window is still remembered, so a remounted checkout does not start a second session. No change while the checkout is on screen.
The React checkout in @flopay/react now stops cleanly when it is removed from the page while a saved-payment confirmation is still in progress. Behaviour while the checkout is on screen is unchanged, and no action is needed.
What changed
- No work after removal. If the checkout unmounts while a saved-payment confirmation is waiting on a payment result or a processing overlay, it no longer updates its own state afterwards. Before this release those late updates could raise an unhandled error in environments that tear down the page, such as test runners.
- No late callbacks. Once the checkout has been removed, it does not call your completion callback or start a new challenge or redirect for that confirmation.
- Successful payments are still remembered. If a payment succeeds after the checkout is removed, Flopay still records the session as completed, so a checkout you mount again for the same session reuses it rather than creating a second one.
Integration notes
- No action is needed. Overlay timing and payment outcomes are unchanged while the checkout is mounted.
@flopay/js adds loadCheckoutRuntime, and @flopay/react and @flopay/vue add a runtime checkout preview component. They load a checkout runtime from the Flopay origin and mount the card checkout from it. A runtime that cannot load reports an error you can handle, and a card gateway the SDK has not seen before gets the same card-form recovery as Worldpay. Existing checkouts are unchanged.
26 Nov 2026
New Feature
Checkout
JavaScript SDK
React SDK
Vue SDK
This release adds a preview of a card checkout that runs from a runtime hosted by Flopay, so checkout behaviour can be updated without a new SDK release. Existing checkouts are unchanged and no action is needed unless you want to try the preview.
What changed
- Hosted runtime loader.
@flopay/js exports loadCheckoutRuntime({ runtimeUrl, timeoutMs }), which loads the runtime script from the Flopay origin. If the script cannot load, or does not register within the timeout (10 seconds by default), it rejects with an error of type network_error and code runtime_load_failed or runtime_load_timeout. The checkout is never left blank with no signal, and the next call tries again.
- Runtime checkout component for React and Vue.
@flopay/react and @flopay/vue each export a runtime checkout preview component. It loads the runtime, mounts one checkout in your page, passes through your appearance and strings overrides, relays the checkout's events, and reports a runtime that cannot load to onError. It works with a session you create on your server (sessionId and nonce) or with a session created inline (createSession).
- Events. The
complete, decline, error, cancel, instruments, cardFieldsReady and cardFieldsFailed events keep their 1.x payloads. Two differences matter if you handle events: cancel now fires when the buyer closes the 3-D Secure step, with { status: 'cancelled', sessionId, reason: 'three_ds_closed' } (in 1.x, cancel was PayPal only), and error fires with session_unavailable or session_missing when a session cannot start.
- Card gateways Flopay adds later.
@flopay/shared exports cardGatewayName, and any card gateway the session advertises, other than Stripe, PayPal or the legacy card vault signal, is now treated as handled on Flopay's servers. A session whose only card gateway is one the SDK has not seen before gets the same card-form recovery as a Worldpay session.
Integration notes
- No action is needed for existing 1.x checkouts, which behave as before.
- To try the preview, render the runtime checkout component with the
runtimeUrl Flopay gives you, and handle onError so your page can fall back if the runtime does not load.
- If you handle
cancel or error events, account for the two event differences above before you move a checkout to the runtime.
An inline checkout in @flopay/vue (one given a createSession function) now sends a checkoutLayout value the Flopay API accepts, so its session is created and the checkout loads for both the default and the buttons layout. Before this release the API refused the first create request with a 400 error and the buyer saw a validation message instead of a checkout.
A Vue checkout created inline now starts. Before this release the Flopay API refused its first create request, nothing was created, and the buyer saw a validation message in place of the checkout.
What changed
- The create request now uses values the API accepts.
@flopay/vue sent the component's layout prop (default or buttons) as checkoutLayout. The API accepts only default_layout, buttons_layout or custom_layout, so the request was refused with a 400 error. The Vue checkout now sends the accepted value for the layout you chose.
- Same values as React. For the same layout,
@flopay/vue and @flopay/react now send the same checkoutLayout. A Vue checkout with a filled layout slot sends custom_layout, as React does with custom layout content.
- Existing sessions are unchanged. A Vue checkout that mounts an existing session with
sessionId and nonce sends no create request and behaves as before.
Integration notes
- No code change is needed. Upgrade
@flopay/vue to get a working inline checkout.
- If you adopted
@flopay/vue with an inline createSession and the checkout showed a checkoutLayout must be one of the following values message, upgrading resolves it.
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
New Feature
Checkout
JavaScript SDK
React SDK
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 no routingProducts key, 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/react loads 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-v1 token in the x-flo-sdk-capabilities header 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 }) adds stripe-account-switch-v1 to the detached create and every claim. It is off by default, so a PaymentAPI without 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/js with your own wallet integration: set stripeAccountSwitch: true only when your integration loads Stripe.js for the claimed account and re-mounts its wallet buttons there. Without it, nothing changes.
When a buyer closes the 3D Secure verification window in the card form, or the window times out, @flopay/js, @flopay/react and @flopay/vue now tell Flopay the verification was abandoned. The buyer's next card attempt in the same checkout gets a working card form at once, instead of the retry being refused. The report runs in the background and never blocks the card form.
25 Nov 2026
Bug Fix
Checkout
JavaScript SDK
React SDK
Vue SDK
A buyer who closes the 3D Secure verification window can now try their card again straight away. Before this release, closing the window left the payment attempt waiting for a verification that would never finish, so the next card attempt in the same checkout was refused.
What changed
- Closing the window is reported. When the buyer closes the 3D Secure window with its close button or by clicking outside it, the card form tells Flopay that the verification was abandoned. The window's own timeout is reported the same way and still raises the timeout error it raised before.
- Completed verifications are left alone. A verification the buyer finishes, a payment that completes, declines or fails, a card form that is submitting, and a card form that is removed from the page send no report.
- The retry is ready at once. The next card form in the same checkout waits for the report to finish, for about two seconds at most, so the buyer gets a fresh card form instead of an error.
- Never in the buyer's way. The report is best-effort. A network or server error is retried once, a rejected request is not retried, and a failed report never shows an error or blocks the card form.
- React and Vue.
SplitCardForm and the embedded checkout in @flopay/react and @flopay/vue send the report for you. There are no new props.
@flopay/js. flopay.cardCapture() and PciVaultCardCapture accept a new optional sessionToken option: the checkout session nonce. With it, the card capture reports an abandoned verification itself. PaymentAPI adds closeThreeDsChallenge(sessionId, nonce, providerIntentId) for integrations that run their own card flow; it never throws.
Integration notes
- React and Vue: no action is needed. Upgrade to get the faster retry.
@flopay/js with your own card capture: pass the session nonce as sessionToken to flopay.cardCapture() or PciVaultCardCapture. Without it, no report is sent and the card form behaves as before.
- The faster retry needs the Flopay billing API to accept the report. Until it does, the report is ignored and the card form behaves as before.
Show visible labels above the hosted card number, expiry, security code and name fields with the new `showCardFieldLabels` prop, change their text with `cardFieldLabels`, and style them with your existing `appearance.rules['.Label']` rule. The props are available on the embedded checkout and on SplitCardForm in @flopay/react and @flopay/vue. The labels stay hidden unless you turn them on.
24 Nov 2026
New Feature
JavaScript SDK
React SDK
Vue SDK
Show visible labels above the hosted card fields with the new showCardFieldLabels prop, and choose their wording with cardFieldLabels. Buyers see what each field is for even after they start typing, and the labels follow the same .Label style you already use for the rest of your checkout.
What changed
- React and Vue. The embedded checkout component and
SplitCardForm in @flopay/react and @flopay/vue accept showCardFieldLabels and cardFieldLabels. Set showCardFieldLabels to true to show the labels; false hides them again. The embedded checkout forwards both props to its built-in card form; a SplitCardForm you render in a custom layout takes its own.
- Label text.
cardFieldLabels is an object with optional number, expiry, cvv and name text. Only the fields you set are sent, exactly as given, and the hosted form shows the text literally. A field you leave out keeps the hosted form's default wording, and removing the prop restores all of them.
- Label style. The supported properties of
appearance.rules['.Label'] style the labels: color, fontSize (px), fontWeight (a number, normal or bold), letterSpacing (em), textTransform, and marginBottom as the gap between the label and its field (px). Every other .Label property is ignored without an error. The preset themes already style .Label, so their label style applies as soon as the labels are shown.
- Live updates. Changing either prop updates the card form in place, without remounting it or clearing card details the buyer has already entered. The latest settings are sent again whenever the hosted form reloads.
@flopay/js. The hosted card capture adds setShowCardFieldLabels(show) and setCardFieldLabels(labels), which show or hide the labels and set their text live. The optional controls and the CardFieldLabels type are also in @flopay/shared.
- Security. Like the submit label, the label settings are bound to the checkout session and sent only to the hosted form's exact origin.
Integration notes
- No action is needed. The labels are off by default, so a checkout that does not set
showCardFieldLabels looks and behaves exactly as before.
- To show the labels, add
showCardFieldLabels to the embedded checkout component or SplitCardForm (Vue: showCardFieldLabels: true), and optionally cardFieldLabels, for example { number: 'Card number', expiry: 'Valid until', cvv: 'Security code' }. The @flopay/react, @flopay/vue and @flopay/js READMEs show the details and the full list of supported .Label properties.