olo_pay_sdk 1.2.0 olo_pay_sdk: ^1.2.0 copied to clipboard
Olo Pay Flutter SDK: Add simple PCI-compliant payments to your apps
Olo Pay Flutter SDK Changelog #
v1.2.0 (Aug 20, 2024) #
Updates #
CardDetailsSingleLineTextField
: Added ability to set alignment of the built in error message witherrorAlignment
CardDetailsSingleLineTextField
: Changed defaultmaxHeight
to45
CardDetailsSingleLineTextField
: Changed defaulterrorMarginTop
to8.0
- Deprecated
ErrorCodes.missingParameter
: All previous usages have changed toErrorCodes.InvalidParameter
- Introduce
CvvTextField
widget 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
v1.1.0 (Mar 26, 2024) - First Public Release #
Breaking Changes #
OloPaySetupParameters
: RemovedfreshSetup
parameter
Updates #
CardDetailsSingleLineTextField
: Added built-in error message label to automatically display error messagesCardDetailsSingleLineTextField
: AddederrorStyles
property to style the built-in error message labelCardDetailsSingleLineTextField
: AddeddisplayErrorMessages
property to control visibility of the error message labelCardDetailsSingleLineTextField
: Added custom error message support via thecustomErrorMessages
propertyCardDetailsSingleLineTextField
: Added support for custom fonts viaTextStyles
CardDetailsSingleLineTextField
: Fixed issue on iOS sometimes causing duplicate error messages to displayOloPaySdk
: AddedgetFontNames()
for help with debugging custom font issues on iOSOloPaySdk
: ChangedisDigitalWalletReady()
on iOS so it returns false if the SDK isn't initialized to align with Android behaviorTextStyles
: AddedfontAsset
andiOSFontName
properties
v1.0.1 (Feb 7, 2024) #
Bug Fixes #
CardDetailsSingleLineTextField
: Fix small edge case preventingtextStyles
andpaddingStyles
from respecting theme valuesCardType
: Fix typo causing Mastercard cards to map toCardType.unknown
Updates #
TextStyles
: Fixed incorrect documentation formerge()
TextStyles
: AddeddefaultCursorColor
property
v0.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 fromString
toCardType
- Updated all data classes to use
final
properties andconst
constructorsOloPaySetupParameters
GooglePaySetupParameters
ApplePaySetupParameters
DigitalWalletPaymentParameters
GooglePayVendorParameters
PaymentMethod
CardFieldState
Hints
TextStyles
BackgroundStyles
PaddingStyles
Updates #
- Change minimum iOS version to iOS 13
CardDetailsSingleLineTextField
: Add support for light/dark themesCardDetailsSingleLineTextField
: Add explicit default stylesCardDetailsSingleLineTextField
: Add support for updating styles based on state changes
v0.2.0 (Dec 21, 2023) #
Breaking Changes #
OloPaySdk.initializeOloPay()
: Changed from positional to named parametersPaymentCardDetailsSingleLineWidgetControllerCreated
: Moved typedef todata_types.dart
PaymentCardDetailsSingleLineWidget
: ChangedonControllerCreated
to a required parameter
Updates #
PaymentCardDetailsSingleLineWidget
: Background and text styling supportPaymentCardDetailsSingleLineWidget
: Added event handlers for error message changes, valid state changes, and input changesPaymentCardDetailsSingleLineWigetController
: Additional methods for controlling/interacting with the widget- Digital Wallet Support (Apple Pay & Google Pay)
v0.1.0 (Dec 11, 2023) #
Initial Release #
- Use
PaymentCardDetailsSingleLineWidget
to display a single line card input widget - Use
PaymentCardDetailsSingleLineWidgetController.createPaymentMethod
to 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