checkout_com_flow 2.0.0
checkout_com_flow: ^2.0.0 copied to clipboard
Flutter plugin for Checkout.com Flow payment components. Embeds the native Flow UI on Android and iOS to accept card payments, Apple Pay, Google Pay, and more.
2.0.0 #
- New:
tokenOnlymode — settokenOnly: trueto tokenize the card without processing payment. ReturnsCheckoutFlowTokenizedwith the card token for server-side payment processing. - New:
CheckoutFlowTokenizedresult class withtoken,type, andpreferredSchemefields. - New:
localeparameter — pass locale string (e.g."it","de","fr") to display the payment form in the user's language. - New: Full theme customization via
CheckoutFlowTheme— supports all 12 color tokens and border radius for buttons and form fields. Works on both iOS and Android. - New: Component type selection —
CheckoutComponentType.cardfor card-only fields (no radio selector),CheckoutComponentType.flowfor full payment method selector. - New: Built-in skeleton loading animation while the native component initializes.
- Android: Full Jetpack Compose integration with proper
LifecycleOwner,SavedStateRegistryOwner, andViewModelStoreOwnerbridge for Flutter platform views. - Android:
PaymentButtonAction.TOKENIZEsupport fortokenOnlymode — rejects payment after token is captured. - Android: Dynamic height reporting via
ViewTreeObserver.OnGlobalLayoutListener. - Android: Theme colors correctly converted to Compose Color format (ARGB int, not packed ULong).
- Android: Kotlin 2.3+ compatibility with
compilerOptionsDSL. - iOS: Uses
PaymentButtonAction.tokenizationandonTokenizedcallback fortokenOnlymode. - iOS: Dynamic height via
sizeThatFitspolling with timer. - iOS: SPM dependency on
checkout-ios-componentsfor native SDK. - Breaking: Minimum Kotlin version for Android consumers is now 2.1.21+.
- Breaking: Android
checkout-android-componentsdependency updated to 1.6.x.
1.4.0 #
- New:
tokenOnlymode — settokenOnly: trueinCheckoutFlowConfigto tokenize the card without processing payment. ReturnsCheckoutFlowTokenizedwith the card token for server-side payment processing. - New:
CheckoutFlowTokenizedresult class withtoken,type, andpreferredSchemefields. - iOS: Uses
PaymentButtonAction.tokenizationandonTokenizedcallback whentokenOnlyis enabled. - iOS/Android:
tokenOnlyflag passed via platform channel.
1.3.1 #
- Fix: iOS height tracking now uses
sizeThatFitswith timer polling instead of KVO, reliably detecting SwiftUI content size changes (e.g. validation errors). - Fix: Added
sizingOptions = .intrinsicContentSizeon iOS 16+ for accurate hosting controller sizing. - Fix: iOS 15 compatibility preserved with availability check.
1.3.0 #
- New: Dynamic height — widget auto-resizes when content changes (e.g. validation errors appear), growing downward with smooth animation.
- New:
onHeightChangedmethod channel from native iOS to report content height changes. - Dart: Widget now uses
AnimatedSizefor smooth height transitions instead of fixedSizedBox.
1.2.0 #
- New: Locale support — pass
localeparameter (e.g."it-IT","de-DE") to display the payment form in the user's language. - iOS/Android: Locale forwarded to native SDK
Configuration.
1.1.0 #
- New: Full theme customization via
CheckoutFlowTheme— supports all 12 color tokens (actionColor,backgroundColor,formBackgroundColor,primaryColor, etc.) and border radius for buttons and form fields. - New: Built-in dark mode preset with
CheckoutFlowTheme.dark(). - New: Component type selection via
CheckoutComponentType— choose betweenflow(full payment method selector) orcard(card-only fields with Pay button). - iOS: Theme colors and border radius passed to native
DesignTokensAPI. - Android: Component type support (
ComponentName.CardvsComponentName.Flow). - Improved: Error messages now include full error details instead of just
localizedDescription. - Updated README with theme customization examples, dark mode guide, and troubleshooting for Xcode 16+/26.
1.0.3 #
- iOS: Fixed Xcode 26 build by setting
SWIFT_ENABLE_EXPLICIT_MODULES => NOin podspec. - iOS: Vendored xcframework works correctly with CocoaPods on Xcode 26.
1.0.2 #
- Version bump for pub.dev publishing.
0.3.1 #
- iOS: Fixed Xcode 26 build with
BUILD_LIBRARY_FOR_DISTRIBUTIONxcconfig. - iOS: Added SPM
Package.swiftfor Swift Package Manager compatibility. - iOS: Source files moved to SPM-compatible directory structure.
0.3.0 #
- Breaking: iOS now uses Swift Package Manager (SPM) instead of vendored xcframework for
CheckoutComponentsSDK. This fixes build issues with Xcode 26 and explicit module builds. - iOS: Removed vendored
CheckoutComponentsSDK.xcframework. The SDK is now resolved via SPM fromhttps://github.com/checkout/checkout-ios-components. - iOS: Source files moved to SPM-compatible directory structure (
checkout_com_flow/Sources/checkout_com_flow/). - Requires Flutter 3.35+ with Swift Package Manager support enabled.
0.2.0 #
- Breaking: Updated to Checkout.com Components SDK v1.6.x (iOS and Android).
- iOS: Vendored
CheckoutComponentsSDK.xcframeworkdirectly (no longer requires SPM or separate CocoaPods source). Minimum iOS raised to 15.0. - Android: Added JitPack and Fingerprint Maven repositories for transitive dependencies. Added coroutines support for async
create()API. - Dart:
paymentSessionTokenis now optional (no longer required by native SDKs v1.6+). - Updated native API calls to match SDK v1.6:
PaymentSession(id:, paymentSessionSecret:)on iOS,PaymentSessionResponse(id, secret)on Android.
0.1.1 #
- Renamed package from
checkout_flowtocheckout_com_flow. - Added disclaimer and liability sections to README.
- Added sponsors section.
- Updated repository links to GitHub.
0.1.0 #
- Initial release.
- Checkout.com Flow payment component as a Flutter widget.
- Android support via
checkout-android-componentsSDK. - iOS support via
CheckoutComponentsSDK. - Sandbox and Production environments.
- Typed result callbacks:
CheckoutFlowSuccess,CheckoutFlowError,CheckoutFlowCancelled.