For AI agents: visit https://developer.2c2p.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI.
dependencies {
implementation("com.2c2p:pgw-sdk:4.7.1")
implementation("com.2c2p:pgw-sdk-helper:4.2.1")
implementation("com.2c2p:pgw-sdk-helper-zalopay:3.1.0")
}
@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
}
}
@main
struct Application: App {
...
...
var body: some Scene {
WindowGroup {
ContentView()
.onOpenURL{ url in
PGWSDKHelper.shared.universalPaymentResultObserver(url: url)
}
}
}
}
| scheme | name |
|---|
| zalo | Zalo Pay. |
| zalopay | Zalo Pay. |
| zalopay.api.v2 | Zalo Pay. |