1.0.0 • Published 5 months ago
paytmpayments-customuisdk-react-native v1.0.0
paytmpayments-customuisdk-react-native
Paytm Payments Custom Ui sdk plugin
Installation
npm install paytmpayments-customuisdk-react-native --save
Implementation
Android Implementation
Open MainApplication.java class in android directory of react native project
import com.paytmpayments.CustomuisdkPackage;
Then add new CustomuisdkPackage() to the list return in getPackages() method
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
packages.add(new CustomuisdkPackage());
return packages;
}
Append the following line to settings.gradle file.
include ':paytmpayments-customuisdk-react-native'
project(':paytmpayments-customuisdk-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/paytmpayments-customuisdk-react-native/android')
Add the following lines in the dependencies section of your app’s build.gradle file.
implementation project(':paytmpayments-customuisdk-react-native');
iOS Implementation
1: Open Podfile and Update Platform Version
Navigate to the ios folder and open Podfile. You can do this using the following code.
$ cd ios && open podfile.
Usage
import PaytmPaymentsCustomuisdk, { ConsentCheckBox } from 'paytmpayments-customuisdk-react-native';
For more detail visit -> https://www.paytmpayments.com/docs/custom-ui-sdk
1.0.0
5 months ago