moyasar
Accept payments in your Flutter app with ease by using Moyasar. With this SDK, you can quickly and safely accept payments through Apple Pay, Samsung Pay, STC Pay and Credit Card (with managed 3DS step).
3.0.5
6.0K downloads/mo
#3589 most downloaded on pub.dev
moyasar/moyasar-flutter
What this package is like to depend on
Last release 11 days ago
12 Aug 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 33 of 33 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
33 releases · first in 2023
9 releases in the last 12 months
see the full history below
Release timeline
33 releases · Jan 2023 to Aug 2026Releases
latest 33-
3.0.512 Aug 2026Release notes
Open source →- [Apple Pay] Replace the
paypackage dependency with a native PassKit implementation on iOS, removing the transitivepay/pay_android/pay_ios/pay_platform_interfacedependencies. TheApplePaywidget's public API is unchanged;ApplePayButtonTypeandApplePayButtonStyleare now exported directly frompackage:moyasarinstead ofpackage:pay. - [Apple Pay] The
ApplePaywidget now hides itself automatically on non-iOS platforms and on iOS devices that can't use Apple Pay, instead of relying on the app to guard it with a platform check. - [Apple Pay] Users with no card in Wallet now see the payment button instead of nothing, and can add a card from inside the payment sheet (iOS 15+). On iOS 14 and below, where the sheet can't do that, the widget shows Apple's "Set Up Apple Pay" button, which opens Wallet, and switches back once the user returns.
- [Apple Pay] Fix a crash when handling the native payment result: the token map from the platform channel was not converted before use.
- [Apple Pay] Fix the amount being parsed with the device locale, which dropped the decimals on devices that use "," as the decimal separator (SAR 603.75 was charged as SAR 603).
- [Apple Pay] Fix the button keeping stale payment data: the native view is now recreated when the amount, label, or any other Apple Pay parameter changes, and readiness is re-checked when the supported networks change.
- [Apple Pay] Report
UnprocessableTokenErrorwhen the native payment result is malformed, instead of leavingonPaymentResultwith no response at all. - [Android] The
minSdkVersion 21requirement previously called out for thepaypackage no longer applies.
- [Apple Pay] Replace the
-
3.0.419 Jul 2026Release notes
Open source →- [iOS] Add Swift Package Manager (SPM) support for the Moyasar plugin while keeping CocoaPods compatibility.
- [Apple Pay] Upgrade
paydependency to3.3.0to align with SPM-compatible iOS dependency resolution. - [UI] Replace proprietary Aeonik font assets with free Readex Pro font family to avoid licensing issues in the SDK.
-
3.0.320 May 2026Release notes
Open source →- [Union Pay] Support union pay 🚀
- [PaymentConfig] Normalize baseUrl by stripping trailing
/v1/paymentsif provided - [Samsung Pay] Add
SamsungPayEligibilityfor explicit pre-check of Samsung Pay availability in custom UX flows
-
3.0.204 May 2026 -
3.0.119 Apr 2026 -
3.0.009 Mar 2026Release notes
Open source →Samsung Pay support and STC Pay widget rename.
Added
- [Samsung Pay] Samsung Pay support for Android (Samsung devices only)
- [Samsung Pay] Uses samsung_pay_sdk_flutter for native integration
- [Samsung Pay] SamsungPayConfig with serviceId, merchantName, orderNumber, manual
- [PaymentConfig] samsungPay config and merchantCountryCode for Samsung Pay
- [Example] Product flavors: default_ (Apple Pay) and spay (Samsung Pay demo)
- [Example] CONFIGURATION_GUIDE.md for bundle ID setup
Changed
- [STC Pay] Widget renamed from
STCPaymentComponenttoSTCPay.STCPaymentComponentis deprecated and will be removed in the next major version; useSTCPayfor new code.
-
2.2.008 Feb 2026 -
2.1.318 Dec 2025Release notes
Open source →STC UI Customization 🐛
- [UI] Updating STC Demo for ui customization and readMe file
-
2.1.108 Sep 2025Release notes
Open source →Bug Fixes 🐛
- [Apple Pay] Fix PaymentNetwork serialization issue that caused "Invalid argument: Instance of 'PaymentNetwork'" error
- [Apple Pay] Convert PaymentNetwork enum instances to string values when communicating with iOS native code
-
2.1.003 Aug 2025Release notes
Open source →Credit Card Enhancements 🚀
- [Credit Card] Validate the card number against the provided supported network
- [Credit Card] RealTime Network Detection to show the card network corresponding to card number
- [Moyasar] Fixing RTL Text Direction
This release includes contributions by Mahmoud Abdulwahab
-
2.0.1918 Jun 2025Release notes
Open source →- [Apple Pay] Add an option to tokenize (save) the card upon successful payment.
-
2.0.1828 May 2025Release notes
Open source →- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.32.0, Dart to3.8.0, DevTools to2.45.1. - [Pub.dev] Improve the plugin's score by addressing all the warnings.
- [Docs] Update the README to add STC Pay and fix broken links.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.1727 May 2025Release notes
Open source →New Features 🚀
- [STC Pay] Add support for STC Pay payment method.
- [Credit Card] Update the UI to follow Moyasar design guidelines.
- [Moyasar] Add Saudi Riyal currency symbol.
- [Moyasar] Add given_id to enable setting a custom UUID for the created payment.
-
2.0.1625 Mar 2025Release notes
Open source →- [Moyasar] Add toJson() method to the response models. (Thank you @AliAlhajji)
-
2.0.1520 Mar 2025Release notes
Open source →- [Credit Card] Improve RTL styling compatibility with localization libraries. (Thank you @ahmadkhedr)
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.29.2, Dart to3.7.2, DevTools to2.42.3. - [Moyasar] Upgrade
httpdependency to1.3.0. - [Apple Pay] Upgrade
paydependency to3.2.0.
-
2.0.1414 Jan 2025Release notes
Open source →The main theme of this release is to support latest versions of the Flutter tooling and the utilized dependencies.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.27.2, Dart to3.6.1, DevTools to2.40.2. - [Apple Pay] Upgrade
paydependency to3.1.0. - [Credit Card] Upgrade
webview_flutterdependency to4.10.0.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.1312 Aug 2024Release notes
Open source →- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.24.0, Dart to3.5.0, DevTools to2.37.2. - [Apple Pay] Expose
supportedCountriesconfig with default of["SA"]to accept payments from set countries.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.1230 Jul 2024Release notes
Open source →- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.22.3, Dart to3.4.4, DevTools to2.34.3. - [Moyasar] Support any primitive JSON type in the payment metadata instead of String only.
- [Moyasar] Upgrade
httpdependency to1.2.2.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.1112 Jun 2024Release notes
Open source →The main theme of this release is to support latest versions of the Flutter tooling and the utilized dependencies.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.22.2, Dart to3.4.3, DevTools to2.34.3. - [Credit Card] Upgrade
webview_flutterdependency to4.8.0. - [Credit Card] Replace deprecated
MaterialStatePropertyAllto the newWidgetStatePropertyAll.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.1012 May 2024Release notes
Open source →- [Credit Card] Show the correct currency on the Pay widget.
- [Credit Card] Make the hintText in RTL direction for each TextFormField when the locale is Arabic.
-
2.0.929 Apr 2024 -
2.0.815 Apr 2024Release notes
Open source →The main theme of this release is to support latest versions of the Flutter tooling and the utilized dependencies.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.19.5, Dart to3.3.3, DevTools to2.31.1. - [Moyasar] Upgrade
httpdependency to1.2.1. - [Apple Pay] Upgrade
paydependency to2.0.0. - [Credit Card] Upgrade
webview_flutterdependency to4.7.0.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.712 Mar 2024Release notes
Open source →- [Apple Pay] Improve the UX by allowing the user to setup Apple Pay card if none is added yet.
-
2.0.604 Feb 2024Release notes
Open source →- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.16.9, Dart to3.2.6, DevTools to2.28.5. - [Moyasar] Upgrade
httpdependency to1.2.0. - [Moyasar] Support customizing the accepted networks with
supportedNetworksin thePaymentConfig. - [Apple Pay] Support customizing the accepted payment capabilities with
merchantCapabilitiesin theApplePayConfig. - [Apple Pay] Support customizing the Apple Pay button type and styling.
- [Credit Card] Upgrade
webview_flutterdependency to4.5.0.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.510 Dec 2023Release notes
Open source →- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.16.3, Dart to3.2.3, DevTools to2.28.4. - [Moyasar] Upgrade
httpdependency to1.1.2. - [Moyasar] Handle potential HTTP request failures.
- [Apple Pay] Handle when the Apple Pay token is unprocessable.
- [Docs] Update the testing guides with latest help links.
- [Docs] Update the Apple Pay testing guide.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.424 Nov 2023 -
2.0.316 Nov 2023Release notes
Open source →The main theme of this release is to support latest versions of the Flutter tooling and the utilized dependencies.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
3.16.0, Dart to3.2.0, DevTools to2.28.2. - [Moyasar] Upgrade
httpdependency to1.1.0. - [Apple Pay] Upgrade
paydependency to1.1.2. - [Credit Card] Upgrade
webview_flutterdependency to4.4.2. - [Credit Card] Explicitly set the text color of the Pay button to white.
- [Docs] Fix coding style (line wrapping) in the example.
- [Flutter] Upgrade to latest versions of Flutter tooling; Flutter to
-
2.0.220 Aug 2023Release notes
Open source →- [Credit Card] Add an option to create manual payments, this will let you authorize payment but will not collect the amount from the user untill you send a capture request.
- [Apple Pay] Add an option to create manual payments, this will let you authorize payment but will not collect the amount from the user untill you send a capture request.
-
2.0.115 Aug 2023Release notes
Open source →- [Credit Card] Add an option to tokenize (save) the credit card upon successful payment.
- [Credit Card] Fix an issue where some devices experience 3DS form rerendering when the user try to insert the OTP.
-
2.0.001 May 2023Release notes
Open source →Breaking Change For Apple Pay: Apple Pay should be configured as part of the
PaymentConfigobject. Check theMigrating Guide>From 1.0 to 2.0section in the Readme for more details.The purpose of this upgrade is to improve the pub points by supporintg up-to-date dependencies and improving the static analysis report.
- [Apple Pay] Upgrade
paydependecy to1.1.1to remove deprecation warnings. - [Credit Card] Upgrade
webview_flutterdependecy to4.2.0to support the latest major version. - [Docs] Update the Apple Pay prerequisites by removing the need to create a JSON payment config under the asset folder.
- [Docs] Update the code example.
- [Docs] Fix the gif example.
- [Apple Pay] Upgrade
-
1.0.219 Mar 2023Release notes
Open source →- [Apple Pay] Fix showing the merchant name during the Apple Pay payment session to avoid possible app rejection.
-
1.0.113 Mar 2023Release notes
Open source →- [Apple Pay] Fix handling the Apple Pay response when the
companyandnamefields aren't returned from the API. - [Docs] Fix a typo in the installation command.
- [Docs] Improve the application description in pub.dev
- [Apple Pay] Fix handling the Apple Pay response when the
-
1.0.009 Jan 2023Release notes
Open source →- Build the Dart Moyasar API wrapper.
- Add Apple Pay widget.
- Add Credit Card widget with managed 3DS step.
- Add tests.
- Add documentation.