PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry and, billing & shipping information and completes the missing details.
In this article, you will be going to know about:
How to install the SDK?
You can install this SDK into your project as clarified below:
For the version number, please use the latest version according to our latest update on our repository
React native Paytabs library is a wrapper for the native PayTabs Android and iOS SDKs. It helps you integrate with PayTabs seamlessly. To install the PayTabs SDK into your project from the terminal: Run the below line:
$ npm install @paytabs/react-native-paytabs@2.4.0 --save --force
Expo
expo install @paytabs/react-native-paytabs
Then follow the below steps to complete the installation:
- Android:
Add packagingOptions to module build.gradle fileandroid { ... packagingOptions { pickFirst '**/*.so' } }
iOS:
- Add libswiftWebKit.tbd to your Link Binary With Libraries
- Navigate to the iOS folder and run the following command:pod install
How to activate the SDK?
Nothing you have to do from your side in this step, as our SDKs don't need activation. Once you have installed it properly, it will be considered activated automatically and ready for use.
⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The React Native SDK Integration Manual" solution article.
⇦ And to get familiar with the rest of the steps regarding the current step "Step 1 - Setup and activate the integration method" click here.
⇨ Or you can navigate to the next step in the process "Step 2 - Configure the integration method" kindly click here.