Skip to main content

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 as true in the TokenRequest 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 as true. Remove it since now it will be always true in this context.
  • If you didn't supply the saveOnly parameter (or made it false). Switch to using the PaymentRequest class with the CreditCardRequestSource class and set the tokenizeCard option to true. It will achieve the same result.

Needs attention:

  • Supply the merchantCountryCode field in the PaymentConfig 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 the PaymentConfig object to support Idempotency.
  • Check Installation and Basic Integration documents to support and configure Samsung Pay.
Version: 0.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'.
Version: 0.6.3
  • [Fix] Fix the Saudi Riyal symbol color
Version: 0.6.2
  • [General] Add the Saudi Riyal symbol
Version: 0.6.1
  • [Credit Card & Stc Pay] Support customizing placeholder text color and more styles.
Version: 0.6.0
  • [Stc Pay] Support Stc Pay feature.
Version: 0.5.2
  • [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
Version: 0.5.1
  • [Fix] Isolate SDK's localization.
Version: 0.5.0
  • [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.
Version: 0.4.0
  • [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.

Version: 0.3.0
  • [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.

Version: 0.2.0
  • [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 install react-native-svg

Link native code for iOS by running the following command in the ios/ directory:

pod install
Version: 0.1.1
  • [API] Modify callback type.
Version: 0.1.0
  • Initial release.
  • Add Apple Pay with button view.
  • Add Credit Card view with managed 3DS step.