Migration Guide
Package Installation
Remove the old package and install the new one:
npm install react-native-paymitto-sdk
# or
yarn add react-native-paymitto-sdknpm uninstall react-native-paymitto-sdk
npm install react-native-paymitto-sdk-11.0.0.tgz
# or
yarn remove react-native-paymitto-sdk
yarn add file:react-native-paymitto-sdk-11.0.0.tgzThe package name changed from
react-native-paymitto-sdktoreact-native-paymitto-sdk.
Expo Plugin
If you are using Expo, update the plugin reference in your app.json or app.config.js:
{
"plugins": [
"react-native-paymitto-sdk/plugin/with-paymitto-sdk"
]
}{
"plugins": [
"react-native-paymitto-sdk/plugin/with-paymitto-sdk"
]
}iOS Podfile
Update the require_relative and embed helper in your ios/Podfile:
require_relative '../node_modules/react-native-ready-remit-sdk/ios/embed_readyremit'
post_install do |installer|
embed_readyremit_framework!(installer)
endrequire_relative '../node_modules/react-native-paymitto-sdk/ios/embed_paymitto'
post_install do |installer|
embed_paymitto_framework!(installer)
endThen re-install pods:
cd ios && pod installImports
Replace the import in every file that used the old SDK:
import { startSDK, type PayMittoConfiguration } from 'react-native-paymitto-sdk'import { startSDK, type PayMittoConfiguration } from 'react-native-paymitto-sdk'The
startSDKfunction name is unchanged.
Renamed Symbols
| Old | New |
|---|---|
Package react-native-paymitto-sdk | react-native-paymitto-sdk |
PayMittoConfiguration | PayMittoConfiguration |
PayMittoEnvironment | PayMittoEnvironment |
PayMittoLocalization | PayMittoLocalization |
PayMittoSupportedAppearance | PayMittoSupportedAppearance |
PayMittoTransferMethod | PayMittoTransferMethod |
PayMittoRemittanceServiceProvider | PayMittoRemittanceServiceProvider |
PayMittoSourceAccount | PayMittoSourceAccount |
PayMittoTokenResponse | PayMittoTokenResponse |
PayMittoTransferRequest | PayMittoTransferRequest |
PayMittoTransferResponse | PayMittoTransferResponse |
PayMittoError | PayMittoError |
PayMittoSDKEvent | PayMittoSDKEvent |
Expo plugin with-paymitto-sdk | with-paymitto-sdk |
iOS embed embed_paymitto_framework! | embed_paymitto_framework! |
Updated 1 day ago
