v1.8.1 - Leaner checkout SDK #
Checkout integrations load less unused JavaScript after the retired Flopay Elements and legacy PayPalButton APIs were removed.
18 Aug 2026
Flopay SDK v1.8.1 reduces the merchant checkout bundle by removing public APIs
from earlier Elements-based integrations. Supported checkout experiences remain
available through FlopayCheckout and SplitCardForm, with standalone direct
PayPal available through DirectPayPalButton.
This is an intentional breaking change for integrations that import the removed APIs. Integrations already using the maintained checkout components do not need to change their checkout flow.
What changed
@flopay/reactno longer exportsPayPalButton,PaymentElement,AddressElement,useElements, or their associated prop types.FlopayProvideralso no longer exposes a Flopay Elements group.@flopay/jsno longer exportsFlopayElements. TheFlopayclass no longer provideselements(),submitElements(),confirmPayment(),confirmPayPalPayment(), orresumePayPalPayment().@flopay/sharedno longer exports the matching Elements constants, types, or legacy payment-provider adapter methods.- Hosted card capture, wallet and alternative payment methods, and supported direct PayPal checkout flows remain available through the maintained SDK surfaces.
Why it matters
In a like-for-like comparison with v1.7.0, the merchant checkout bundle is 18,137 bytes smaller raw, 3,747 bytes smaller when gzip-compressed, and 2,562 bytes smaller when Brotli-compressed.
Developer notes
- Upgrade the
@flopay/js,@flopay/node,@flopay/react, and@flopay/sharedpackages you use to1.8.1together. - Replace legacy Elements usage with
FlopayCheckoutorSplitCardForm. Replace the removedPayPalButtonwithDirectPayPalButtonwhen you need a standalone PayPal control. - There is no deprecation bridge for the removed exports. Update direct imports and any affected TypeScript types before upgrading.