我正在尝试在应用程序中使用 paypal iOS SDK。我完成了注册并创建了应用程序,然后我得到了两个客户端 ID、sandbox 和 live。
当我使用沙盒客户端 ID、实时客户端 ID 时,出现错误。
iOS 警报提示:
We're Sorry. There was a problem communicating with the PayPal servers. Please tey again.
(我尝试了很多次,还是失败了。)
错误日志:
PAYMENT_CREATION_ERROR - System error (PAYMENT_CREATION_ERROR). Please try again later. (422) | PayPal Debug-ID: fd805f5f6239a [live, PayPal iOS SDK 2.5.0]
请帮帮我。
谢谢~
仅将沙箱客户端 ID 用于测试您的应用程序
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[PayPalMobile initializeWithClientIdsForEnvironments:@{PayPalEnvironmentProduction : @"YOUR_CLIENT_ID_FOR_PRODUCTION",
PayPalEnvironmentSandbox : @"AYRzOxBmlQ6vUoUn2O8UHjdYvq9hDdTQ8fE9lfA-glkMJAMYCAaZ"}];
}
我使用它并且它对我来说工作正常..
我是一名优秀的程序员,十分优秀!