【发布时间】:2013-08-18 11:02:21
【问题描述】:
我已下载 Pay pal SDK 最新版本 1.1.0。它在测试环境中运行良好,但是在用于沙盒帐户时,它会抛出一个错误,说“与贝宝服务器通信时出现问题”。你能帮忙吗?我正在将贝宝与 iOS 应用程序集成。 控制台上的响应是:
PayPal-iOS-SDK-Sample-App[1555:19d03] Request has failed with error:"pp_service_error_json_parse_error - System error. Please try again later.
details: (
{
"ns_error" = "Error Domain=NSCocoaErrorDomain Code=3840 \"The operation couldn\U2019t be completed. (Cocoa error 3840.)\" (JSON text did not start with array or object and option to allow fragments not set.) UserInfo=0xa456590 {NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set.}";
}
)"
【问题讨论】:
-
检查 PayPal 沙箱端点 url。调用贝宝沙箱服务器是否正确?
-
在文档中只是提到了更改环境以使用沙盒帐户,没有更多提及。