Closed linkdesu closed 8 years ago
我调用的是 alipay_wap 渠道,test 模式测试通过,但是切换 live 模式,修改了各项配置,填好了 RSA 公钥私钥后仍然出错。
在 create charge 的时候我的请求参数如下,Api Key 和 AppId 已经改为其他字符串了:
curl https://api.pingxx.com/v1/charges \ -u {API Key}: \ -d order_no=1123123123 \ -d amount=100 \ -d app[id]={appid}\ -d channel=alipay_wap \ -d currency=cny \ -d client_ip=127.0.0.1 \ -d subject="test" \ -d body="test" \ -d extra[success_url]="http://baidu.com"
live 模式下返回如下
{ "error": { "type": "channel_error", "message": "支付渠道 alipay_wap 返回数据格式不正确。", "code": "channel_parse_error" } }
请问这个的意思是否是支付宝 API 那边返回不正确?那支付宝那边具体返回了什么错误我又去哪里查询?
最后,感觉目前的错误信息、文档没法让人明白出现错误时,错误具体应该属于哪一个环节,希望能够好好完善一下。
我们的文档目前还在完善。 这个错误的话,一般是以下问题:
1、检查 extra 参数中的 success_url 和 cancel_url 是否带参数,这两个 url 不要在页面文件的后面再加上自定义参数。 2、渠道签约产品出错,Ping++ 管理平台上参数配置出错。
我调用的是 alipay_wap 渠道,test 模式测试通过,但是切换 live 模式,修改了各项配置,填好了 RSA 公钥私钥后仍然出错。
在 create charge 的时候我的请求参数如下,Api Key 和 AppId 已经改为其他字符串了:
live 模式下返回如下
请问这个的意思是否是支付宝 API 那边返回不正确?那支付宝那边具体返回了什么错误我又去哪里查询?
最后,感觉目前的错误信息、文档没法让人明白出现错误时,错误具体应该属于哪一个环节,希望能够好好完善一下。