Import PGW SDK

The 2C2P PGW SDK makes it easy to build an excellent payment experience in your app. Our Mobile libraries let you easily accept mobile payments natively inside any of your app.

Supported platform:

Download SDK: Download


Android - Installation for Android Archive (AAR):

 
Here are 6 steps to install PGW SDK into your project:

  • Step 1: Open project in Android Studio.
  • Step 2: Download "PGWSDK-Android-[Version].aar".
  • Step 3: Right-click the app in project view and select "Open Module Settings".
Step 3Step 3

Step 3

  • Step 4: Click the "+" button on the top left of window.
Step 4Step 4

Step 4

  • Step 5: Select "Import .JAR/.AAR Package".
Step 5Step 5

Step 5

  • Step 6: Find downloaded 2C2P SDK library location and select PGWSDK-Android-[Version].aar.
Step 6Step 6

Step 6

🚧

Proguard configuration:

-keep class com.ccpp.pgw.sdk.android.** { *; }
-keepnames class com.ccpp.pgw.sdk.android.* { *; }
-keepnames interface com.ccpp.pgw.sdk.android.* { *; }


iOS - Installation for Static Framework:

 
Here are 6 steps to install PGW SDK into your project:

  • Step 1: Open project in Xcode.
  • Step 2: Download "PGWSDK-IOS-[Version].zip" and unzip.
  • Step 3: Right click on project and select "Add Files to" your project.
Step 3Step 3

Step 3

  • Step 4: Find downloaded 2C2P SDK library location and select "PGW.framework".
Step 4Step 4

Step 4

  • Step 5: Check "Copy items if needed" and "Create groups".
  • Step 6: Last, click on "Add" button and import "PGWSDK" class to your project.

iOS - Installation for Dynamic XCFramework:

 
Here are 4 steps to install PGW SDK into your project:

  • Step 1: Open project in Xcode.
  • Step 2: Download "PGWSDK-IOS-[Version].zip" and unzip.
  • Step 3: Drag "PGW. xcframework" to the "Frameworks, Libraries, and Embedded Content" section of your Xcode project's "General" settings. Make sure to select "Copy items if needed".
  • Step 4: Select embed mode to "Embed & Sign" or "Embed Without Signing".
Step 4Step 4

Step 4

🚧

Important:

Step 4: For Xcode 12.5 and above embed mode have to set to "Do Not Embed".

  • Step 5: Head to the "Build Phases" section of your Xcode project settings and create a new "Run Script Build Phase".

🚧

Paste the following snippet into the text field:

bash "${BUILT_PRODUCTS_DIR}/PGW.framework/integrate-dynamic-framework.sh"

Next: Initiate PGW SDK