PGW SDK

The 2C2P Payment Gateway (PGW) SDK allows merchants to build an excellent payment experience within their mobile apps by integrating easily with 2C2P's payment gateway. As 2C2P provides omnichannel payment processing, the Payment Gateway SDK gives merchants access to a full suite of payment options.

With 2C2P's Payment Gateway SDK, merchants do not need to undertake a complex and time-consuming PCI-DSS certification process. All sensitive information is protected at 2C2P with the most advanced security that is compliant with PCI-DSS standards.

Table of Contents

  1. Getting Started
  2. System Requirements
  3. SDK Features

Getting Started

Flutter / Dart:

Add these to your package's pubspec.yaml file:

dependencies:  
  pgw_sdk: ^4.0.2
  webview_flutter: ^4.2.2  

Android:

Step 1: Add these to your build.gradle file:

android {  
    ...
    ...
    
    defaultConfig {  
        ...
        ... 
  
        multiDexEnabled true  
    }  
  
    buildTypes {  
        ...
        ...
  
       //Important: add debug for prevent obfuscate PGW & PGW Helper SDK methods.
       debug {  
  
          signingConfig signingConfigs.debug  
  
          minifyEnabled true  
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'  
       }  
    }
}

dependencies {  
    ...
    ...
  
    //2C2P PGW SDK  
    implementation files("libs/PGW_SDK_ANDROID_v4.5.1.aar")  
  
    //2C2P PGW SDK HELPER  
    implementation files("libs/PGW_SDK_HELPER_ANDROID_v4.0.1.aar")  
}

Step 2: Add PGW & PGW Helper SDK AAR and proguard files into your Android project. [Here](https://developer.2c2p.com/v4.3.0/docs/sdk-import-sdk#android-aar)

iOS:

Step 1: Add deep link payment handle into your iOS Runner.xcodeproj. [Here](https://developer.2c2p.com/v4.3.0/docs/sdk-references-handle-deeplink-payment-flow-by-pgw-sdk-helper#prerequisite)

Step 2: Add Apple Pay handle into your iOS Runner.xcodeproj. [Here](https://developer.2c2p.com/v4.3.0/docs/sdk-references-apple-pay-prerequisite#3-enable-apple-pay-for-your-application)

System Requirements

The SDK has been developed on following platform version:

Platform Minimum Version
iOS 11.0+
Android 19+ (OS 4.4)
Dart >=3.0.0 <4.0.0

SDK Features

For full SDK features reference, please refer 2C2P developer portal. [Here](https://developer.2c2p.com/v4.3.0/docs/sdk-apis)

Contributing

2C2P

License

MIT