paytmpayments-customuisdk-react-native
Version:
Paytm Custom ui sdk plugin for payments via custom ui sdk
56 lines (34 loc) • 1.59 kB
Markdown
Paytm Payments Custom Ui sdk plugin
```sh
npm install paytmpayments-customuisdk-react-native --save
```
```
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.
```
```js
import PaytmPaymentsCustomuisdk, { ConsentCheckBox } from 'paytmpayments-customuisdk-react-native';
For more detail visit -> https://www.paytmpayments.com/docs/custom-ui-sdk