ZaloPay Prerequisite

For Android

dependencies {
  
    //2C2P PGW SDK
    implementation files("libs/PGW_SDK_ANDROID_v4.5.1.aar")
    implementation 'androidx.appcompat:appcompat:1.6.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  
    //2C2P PGW SDK HELPER
    implementation files("libs/PGW_SDK_HELPER_ANDROID_v4.1.0.aar")
    implementation "androidx.activity:activity:1.7.0"
  
    //ZaloPay SDK
    implementation files("libs/zpdk-release-v3.1.aar")
}

For IOS

@implementation AppDelegate
 
   ...
   ...
 
- (BOOL)application: (UIApplication *)application openURL: (NSURL *)url options: (NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
 
    [[PGWSDKHelper shared] universalPaymentResultObserverWithURL: url];
     
    return true;
}
 
@end
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
 
    ...
    ...
     
    func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
         
        PGWSDKHelper.shared.universalPaymentResultObserver(url: url)
         
        return true
    }
}

Step 1: Handle application deep link url.

Step 2: Add custom URL scheme under URL types with format "pgw{your app bundle identifier}.

Step 3: Add application URL schemes of your app info.plist.

schemename
zaloZalo Pay.
zalopayZalo Pay.
zalopay.api.v2Zalo Pay.