Releases: moyasar/moyasar-react-native
v0.10.1
v0.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 installv0.9.0
- [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.
v0.8.1
- [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)/)',
],
};v0.8.0
- [Apple Pay] Support Apple Pay tokenization (
saveCardfield).
v0.7.0
- [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 and Basic Integration documents to support and configure Samsung Pay.
v0.6.4
- [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'.
v0.6.3
- [Fix] Fix the Saudi Riyal symbol color
v0.6.2
- [General] Add the Saudi Riyal symbol
v0.6.1
- [Credit Card & Stc Pay] Support customizing placeholder text color and more styles.