v1.20.5 - Runtime checkout preview accepts payment method layout rules #
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
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.