PayPalEnvironmentProduction and PayPalEnvironmentSandbox fai



我正在尝试在应用程序外使用PayPal iOS SDK。我完成了注册并创建了应用程序,然后我得到了两个客户端ID,沙盒和实时。

当我使用沙盒客户端 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"}];
}

我使用它,它对我来说工作正常..

相关内容

  • 没有找到相关文章

最新更新