Changelog
A log or record of all notable changes made.
Version: 0.7.0- [Samsung Pay] Support Samsung Pay feature.
- [General] Support customizing merchant's country code.
- [General] Support
givenId
feature. - [Credit Card Token Fix] Always enforce the
saveOnly
field astrue
in theTokenRequest
class, 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
saveOnly
parameter astrue
. Remove it since now it will be always true in this context. - If you didn't supply the
saveOnly
parameter (or made itfalse
). Switch to using thePaymentRequest
class with theCreditCardRequestSource
class and set thetokenizeCard
option totrue
. It will achieve the same result.
Needs attention:
- Supply the
merchantCountryCode
field in thePaymentConfig
to 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
givenId
field in thePaymentConfig
object to support Idempotency. - Check Installation 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]
metadata
parameter 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.