olo_pay_sdk 2.0.4  olo_pay_sdk: ^2.0.4 copied to clipboard
olo_pay_sdk: ^2.0.4 copied to clipboard
Olo Pay Flutter SDK: Add simple PCI-compliant payments to your apps
Olo Pay Flutter SDK Changelog #
2.0.4 (July 22, 2025) #
Updates #
- JCB,- DinersClub, and- UnionPaycards are now accepted and treated as- Discovercards
- Added fullPhoneticNameproperty toPaymentMethod
- Added fullPhoneticNameRequiredproperty toApplePayConfiguration
Dependency Updates #
- Native SDKs
- Updated to use Olo Pay Android SDK v4.1.1
- Updated to use Olo Pay iOS SDK v5.2.1
 
2.0.3 (May 1, 2025) #
Updates #
- Relaxed Google Pay requirement from using FlutterFragmentActivityto usingFragmentActivityto help with non-standard uses of Flutter
- Removed requirement to FlutterFragmentActivityfrom all widgets
2.0.2 (Apr 15, 2025) #
Bug Fixes #
- Added Addressclass to theolo_pay_sdk_data_classesbarrel file
- Added CurrencyCodeenum to theolo_pay_sdk_data_classesbarrel file
2.0.1 (Apr 9, 2025) #
Overview #
- Digital wallets overhaul
- Digital wallets now use a DigitalWalletConfigurationobject that bundles all information needed to process transactions
- Digital wallet configurations for both Apple Pay and Google Pay can be updated
- New DigitalWalletButtonclass that supports both Apple Pay and Google Pay buttons
- Add support for line items
 
- Digital wallets now use a 
- Simplified the SDK setup process
- New form widget for entering credit card details.
Updates #
- OloPaySdk- Added updateDigitalWalletConfiguration()
 
- Added 
- DigitalWalletPaymentParameters- Added googlePayCheckoutStatusproperty
 
- Added 
- ErrorCodes- Added emptyCompanyNameproperty
- Added emptyCountryCodeproperty
- Added invalidCountryCodeproperty
- Added lineItemTotalMismatchproperty
 
- Added 
- BackgroundStyles- Added noPaddingproperty
- Added formDefaultsproperty
 
- Added 
- TextStyles- Added formDefaultsproperty
- Added defaultErrorFontSizeproperty
- Added errorTextSizeproperty
- Added errorAssetFontproperty
 
- Added 
- Hints- Added formDefaultsproperty
- Added formFocusedDefaultsproperty
- Added singleLineOnlyconstructor
- Added formOnlyconstructor
- Added formFocusedOnlyconstructor
 
- Added 
- DigitalWalletPaymentParameters- Added typeproperty
- Added statusproperty
 
- Added 
- CardDetailsSingleLineTextField: Added- enabledproperty
- CvvTextField: Added- enabledproperty
- PaymentMethod- Added digitalWalletCardDescriptionproperty
- Added emailproperty
- Added phoneNumberproperty
- Added fullNameproperty
- Added billingAddressproperty
 
- Added 
- New Classes/Enums
- Introduce the CardDetailsFormTextFieldwidget
- Introduce the DigitalWalletButton
- Added CurrencyCodeenum
- Added DigitalWalletConfiguration
- Added GooglePayButtonConfiguration
- Added GooglePayButtonTheme
- Added GooglePayButtonType
- Added ApplePayConfiguration
- Added ApplePayButtonConfiguration
- Added ApplePayButtonStyle
- Added ApplePayButtonType
- Added GooglePayCheckoutStatus
- Added Address
- Added FieldDividerStyles
- Added ErrorBackgroundStyles
- Added DigitalWalletLineItem
- Added DigitalWalletLineItemStatus
- Added DigitalWalletLineItemType
 
- Introduce the 
Breaking Changes #
- OloPaySdk- Changed method signature of initializeOloPay()
- Removed changeGooglePayVendor()in favor ofupdateDigitalWalletConfiguration()
- onDigitalWalletReadymay now be called multiple times for both Apple Pay and Google Pay (See documentation for details)
 
- Changed method signature of 
- ApplePaySetupParameters- Renamed to ApplePayConfiguration
- Moved properties common to Apple Pay and Google Pay into DigitalWalletConfiguration
 
- Renamed to 
- GooglePaySetupParameters- Renamed to GooglePayConfiguration
- Moved properties common to Apple Pay and Google Pay into DigitalWalletConfiguration
 
- Renamed to 
- DigitalWalletPaymentParameters- Removed currencyMultiplierproperty (SeeGooglePayConfiguration)
- Removed currencyCodeproperty (SeeGooglePayConfigurationandApplePayConfiguration)
- Removed countryCodeproperty (SeeGooglePayConfigurationandApplePayConfiguration)
 
- Removed 
- ErrorCodes- Removed previously deprecated missingParameterproperty
- Renamed googlePayUninitializedproperty touninitializedDigitalWalletbecause it now applies to both Google Pay and Apple Pay
- Renamed googlePayNotReadyproperty todigitalWalletNotReadybecause it now applies to both Google Pay and Apple Pay
 
- Removed previously deprecated 
- CardDetailsSingleLineTextFieldController: Removed- setEnabled()in favor of- CardDetailsSingleLineTextField.enabledproperty
- CvvTextFieldController: Removed- setEnabled()in favor of- CvvTextField.enabledproperty
- Hints- Renamed defaultsproperty tosingleLineDefaults
 
- Renamed 
- Removed Classes
- GooglePayVendorParameters(see- DigitalWalletConfigurationand- GooglePayConfiguration)
- OloPaySetupParameters
 
Dependency Updates #
- 
Native SDKs - Updated to use Olo Pay Android SDK v4.1.0
- Updated to use Olo Pay iOS SDK v5.2.0
 
- 
Android - Updated to Gradle v8.7
- Updated to compile SDK to 35
- Updated to com.android.tools.build:gradle:8.6.1
- Updated to androidx.constraintlayout:constraintlayout:2.2.0
- Updated to androidx.core:core-ktx:1.15.0
- Updated to org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0
 
1.2.0 (Aug 20, 2024) #
Updates #
- CardDetailsSingleLineTextField: Added ability to set alignment of the built in error message with- errorAlignment
- CardDetailsSingleLineTextField: Changed default- maxHeightto- 45
- CardDetailsSingleLineTextField: Changed default- errorMarginTopto- 8.0
- Deprecated ErrorCodes.missingParameter: All previous usages have changed toErrorCodes.InvalidParameter
- Introduce CvvTextFieldwidget for CVV tokenization.
Dependency Updates #
- 
Native SDKs - Updated to use Olo Pay Android SDK v3.1.1
- Updated to use Olo Pay iOS SDK v4.0.2
 
- 
Android Project - Updated to Gradle v8.2
- Updated to Java v17
- Updated to com.android.tools.build:gradle:8.2.2
- Updated to androidx.core:core-ktx:1.13.1
- Updated to org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.1
- Updated to com.google.android.material:material:1.12.0
 
Bug Fixes #
- CardDetailsSingleLineTextField: Fix bug causing slight difference between the default input text error state color and the default error message color.
- CardDetailsSingleLineTextField: Fixed constraints so that the text input widget height properly expands/shrinks to match the height specified by the constructor parameters
1.1.0 (Mar 26, 2024) - First Public Release #
Breaking Changes #
- OloPaySetupParameters: Removed- freshSetupparameter
Updates #
- CardDetailsSingleLineTextField: Added built-in error message label to automatically display error messages
- CardDetailsSingleLineTextField: Added- errorStylesproperty to style the built-in error message label
- CardDetailsSingleLineTextField: Added- displayErrorMessagesproperty to control visibility of the error message label
- CardDetailsSingleLineTextField: Added custom error message support via the- customErrorMessagesproperty
- CardDetailsSingleLineTextField: Added support for custom fonts via- TextStyles
- CardDetailsSingleLineTextField: Fixed issue on iOS sometimes causing duplicate error messages to display
- OloPaySdk: Added- getFontNames()for help with debugging custom font issues on iOS
- OloPaySdk: Changed- isDigitalWalletReady()on iOS so it returns false if the SDK isn't initialized to align with Android behavior
- TextStyles: Added- fontAssetand- iOSFontNameproperties
1.0.1 (Feb 7, 2024) #
Bug Fixes #
- CardDetailsSingleLineTextField: Fix small edge case preventing- textStylesand- paddingStylesfrom respecting theme values
- CardType: Fix typo causing Mastercard cards to map to- CardType.unknown
Updates #
- TextStyles: Fixed incorrect documentation for- merge()
- TextStyles: Added- defaultCursorColorproperty
0.3.0 (Jan 17, 2024) #
Breaking Changes #
- Consolidate import statements so only one is required
- Renamed classes and types for clarity
- PaymentCardDetailsSingleLineWidget-->- CardDetailsSingleLineTextField
- PaymentCardDetailsSingleLineWidgetController-->- CardDetailsSingleLineTextFieldController
- PaymentCardDetailsSingleLineWidgetControllerCreated-->- CardDetailsSingleLineTextFieldControllerCreated
- PaymentCardDetailsSingleLineWidgetOnErrorMessageChanged-->- CardDetailsErrorMessageChanged
- PaymentCardDetailsSingleLineWidgetOnInputChanged-->- CardDetailsInputChanged
- PaymentCardDetailsSingleLineWidgetOnValidStateChanged-->- CardDetailsValidStateChanged
- PaymentCardDetailsSingleLineWidgetOnFocusChanged-->- CardDetailsFocusChanged
 
- PaymentMethod.cardType: Changed type from- Stringto- CardType
- Updated all data classes to use finalproperties andconstconstructors- OloPaySetupParameters
- GooglePaySetupParameters
- ApplePaySetupParameters
- DigitalWalletPaymentParameters
- GooglePayVendorParameters
- PaymentMethod
- CardFieldState
- Hints
- TextStyles
- BackgroundStyles
- PaddingStyles
 
Updates #
- Change minimum iOS version to iOS 13
- CardDetailsSingleLineTextField: Add support for light/dark themes
- CardDetailsSingleLineTextField: Add explicit default styles
- CardDetailsSingleLineTextField: Add support for updating styles based on state changes
0.2.0 (Dec 21, 2023) #
Breaking Changes #
- OloPaySdk.initializeOloPay(): Changed from positional to named parameters
- PaymentCardDetailsSingleLineWidgetControllerCreated: Moved typedef to- data_types.dart
- PaymentCardDetailsSingleLineWidget: Changed- onControllerCreatedto a required parameter
Updates #
- PaymentCardDetailsSingleLineWidget: Background and text styling support
- PaymentCardDetailsSingleLineWidget: Added event handlers for error message changes, valid state changes, and input changes
- PaymentCardDetailsSingleLineWigetController: Additional methods for controlling/interacting with the widget
- Digital Wallet Support (Apple Pay & Google Pay)
0.1.0 (Dec 11, 2023) #
Initial Release #
- Use PaymentCardDetailsSingleLineWidgetto display a single line card input widget
- Use PaymentCardDetailsSingleLineWidgetController.createPaymentMethodto create a payment method based on user-entered card details
- Uses Olo Pay Android SDK v3.0.0
- Uses Olo Pay iOS SDK v4.0.0