2

我正在开发一个应用程序。我正在使用新的最新支付宝 API。每当我尝试那个时,我都会收到一个警报,例如“与服务器通信时出现问题”。而且我没有提到任何客户ID。它会造成这个问题吗?如果没有,那么如何连接支付宝服务器。我的 xcode 版本是 4.5,Base SDK 是 ios 6,目标部署是 5.0,设备操作系统版本是 ios 5。

4

2 回答 2

0

您应该提及客户 ID 并编写以下代码:

[PayPalPaymentViewController prepareForPaymentUsingClientId:kPayPalClientId];
于 2013-06-18T06:44:53.613 回答
0

The merchant account must be a US account. I don't know if sandbox will work for non-US merchant accounts or not.

For sandbox, you must also set [PayPalPaymentViewController setEnvironment:PayPalEnvironmentSandbox]; and #define kPayPalClientId <YOUR CLIENT ID> with the client ID that you get for sandbox from https://developer.paypal.com

Note also that the only tested configuration is for USD, thought that will change soon.

于 2013-06-19T18:02:38.657 回答