Changelog
A log or record of all notable changes made.
Version: 0.10.0- [General] Moyasar new design.
- [General Feature] Support controlling coupons applicability.
- [Fix Android UI] Fix Android text input formatting in Arabic language.
If you encounter any issues, make sure to fully clean your project and rebuild it.
Required:
- Update native code for iOS by running the following command in the
ios/directory:
pod install
- [Samsung Pay Style] Support custom styling of the Samsung Pay button component.
- [Apple Pay Style Fix] Fix height and width styles to receive
DimensionValuetype. - [General] Enhancements.
If you encounter any issues, make sure to fully clean your project and rebuild it.
Needs attention:
If you have used the style property for the Apple Pay component and supplied either the height or width properties, you may need to update them to the new DimensionValue type instead of the old type.
- [General] Support older React Native versions.
- [General] Enhancements.
If you encounter any issues, make sure to fully clean your project and rebuild it.
Needs attention:
-
Make sure you have one of the following Node.js versions installed:
- v20.19 or higher
- v22.12 or higher
- v23.4 or higher
-
If you are using Jest and encountering issues, update your Jest configuration (likely found in your package.json or any jest.config.* file) with the following:
module.exports = {
// ... The rest of your configuration
transformIgnorePatterns: ['node_modules/(?!((@)?react-native|react-native-moyasar-sdk)/)'],
};
- If you previously had the
transformIgnorePatternsfield make sure to not override it with the above, instead add thereact-native-moyasar-sdkpart to it.
- [Apple Pay] Support Apple Pay tokenization (
saveCardfield).
- [Samsung Pay] Support Samsung Pay feature.
- [General] Support customizing merchant's country code.
- [General] Support
givenIdfeature. - [Credit Card Token Fix] Always enforce the
saveOnlyfield astruein theTokenRequestclass, and remove it from the public SDK API. - [General] Enhancements.
If you encounter any issues, make sure to clean your project and rebuild it.
Required changes (only if consuming the TokenRequest class directly):
If you are utilizing the TokenRequest class directly, change the following:
- If you supplied
saveOnlyparameter astrue. Remove it since now it will be always true in this context. - If you didn't supply the
saveOnlyparameter (or made itfalse). Switch to using thePaymentRequestclass with theCreditCardRequestSourceclass and set thetokenizeCardoption totrue. It will achieve the same result.
Needs attention:
- Supply the
merchantCountryCodefield in thePaymentConfigto indicate your merchant’s principle place of business. Previously, this was based on the currency, which was less precise. Now, you should explicitly set this code for accurate payment processing (defaults to SA). - Supply the
givenIdfield in thePaymentConfigobject to support Idempotency. - Check Installation & Configuration and Basic Integration documents to support and configure Samsung Pay.
- [General] Update dependencies and tooling.
Required changes:
- Update native code for iOS by running the following command in the
ios/directory:
pod install
- Set react-native-svg version package to '^15.11.2'.
- Set react-native-webview version package to '^13.13.4'.
- [Fix] Fix the Saudi Riyal symbol color
- [General] Add the Saudi Riyal symbol
- [Credit Card & Stc Pay] Support customizing placeholder text color and more styles.
- [Stc Pay] Support Stc Pay feature.
- [General Fix] Fix issue with New Architecture.
Required changes:
Update native code for iOS by running the following command in the ios/ directory:
pod install
- [Fix] Isolate SDK's localization.
- [API]
metadataparameter type fix. - [General] Support customizing the components' style to align with your app's design.
- [General] Support building your own UI.
- [General] Enhancements.
- [Credit Card] Support create save only token.
- [Apple Pay] Fix Apple Pay.
Required changes:
Change the paymentResponse parameter type from PaymentResponse | MoyasarError to PaymentResult in the onPaymentResult callback of the CreditCard and ApplePay components.
- [Credit Card] Add arabic number mapper.
- [General] Support dark mode.
- [General] Enhance UI.
- [General] Enhance error handling.
Optional changes:
Change the paymentResponse parameter type from any to PaymentResponse | MoyasarError in the onPaymentResult callback.
- [Credit Card] Add input formatting.
- [Credit Card] Add card network detection.
- [Credit Card] Fix Amex card validation.
- [General] Enhancements.
Required changes:
Add 'react-native-svg' library to your project.
- npm
- yarn
npm install react-native-svg
yarn add react-native-svg
Link native code for iOS by running the following command in the ios/ directory:
pod install
- [API] Modify callback type.
- Initial release.
- Add Apple Pay with button view.
- Add Credit Card view with managed 3DS step.