Import PGW SDK
The 2C2P PGW SDK allows merchants to accept mobile payments natively within their apps.
To import the 2C2P PGW SDK into your project, follow the steps below:
- Open your project in Android Studio.
- Open build.gradle or build.gradle.kts file.
- Add following code to dependencies.
dependencies {
...
...
implementation("com.2c2p:pgw-sdk:4.6.0")
}
To import the 2C2P PGW SDK into your project, follow the steps below:
- Open your project in Xcode.
- Go to package dependencies and click + button.
![01.png 610](https://files.readme.io/8db3c71-01.png)
Step 2
- Click + button for add package collection.
![01.png 610](https://files.readme.io/4820423-02.png)
Step 3
- Enter https://swiftpackageindex.com/2C2P/collection.json url into input and click load button.
![02r2.png 1448](https://files.readme.io/f1d7582-03.png)
Step 4
- Click add collection button.
![02r2.png 1448](https://files.readme.io/2e436ec-04.png)
Step 5
- Select necessary swift package and click add package button.
![02r2.png 1448](https://files.readme.io/2d2a5f5-05.png)
Step 6
- Select necessary project target and click add package button.
![02r2.png 1448](https://files.readme.io/76c2ad7-06.png)
Step 7
- Make sure swift package added into your project.
![02r2.png 1448](https://files.readme.io/8bb4a33-07.png)
Step 8
Paste the following snippet into build phase > run script:
bash "${BUILT_PRODUCTS_DIR}/PGW.framework/integrate-dynamic-framework.sh"
To import the 2C2P PGW SDK for Flutter into your project, follow the steps below:
- Open your project in Android Studio or other Flutter supported IDE.
- Open pubspec.yaml.
- Add these dependencies to your package's pubspec.yaml file:
Updated 3 months ago