这是在一个MVC2项目中,所以我在ASP中使用C#。 这就是我发送给https://api-3t.sandbox.paypal.com/nvp的信息:
VERSION = 65.0
SIGNATURE = AFcWxV21C7fd0v3bYYYRCpSSRl31AxdW2pQp.tWHTjGNcHflR-LJhJ0t
USER = seller_1283487740_biz_api1.gmail.com
PWD = 1283487748
AMOUNT = 50.00
CREDITCARDTYPE = Visa
ACCT = 4031477440127509
EXPDATE = 12/2015
CVV2 =123
IPADDRESS = 127.0.0.1
METHOD = DoDirectPayment
我可以GetBalance,当我故意发错时我会产生其他错误,但DoDirectPayment或DoAuthorization会返回此信息:
TIMESTAMP = 2010-12-24T03:35:10Z
CORRELATIONID = 2ca329fdbe3c0
ACK = Failure
L_ERRORCODE0 = 10001
L_SHORTMESSAGE0 = Internal Error
L_LONGMESSAGE0 = Timeout processing request
为什么我收到此错误?
答案 0 :(得分:9)
考虑到他们对开发人员的关注程度,他们的API有多么可怕。我可以在他们的小社交网络x.com上获得积分并关注其他人,但我不知道API的当前版本是什么!?! (您必须查看网页的来源并将其发现嵌入HTML评论中){{1}}
答案 1 :(得分:6)
据我所读,这可能是数据格式错误的表现。在我的情况下,我发送表格为
multipart/form-data
而不是
application/x-www-form-urlencoded
我没有在关于表单编码的文档中的任何地方阅读,但是一旦我更改它,PP服务器就变得更友好了。
答案 2 :(得分:1)
我相信它的Paypal可以防御攻击。代码中有某些操作程序
答案 3 :(得分:0)
Error codes:
* 100 Access denied
* 105 Order already exists
* 106 DID ID: DID_ID NOT found
* 107 Invalid Protocol
* 108 DID: DIDNUMBER NOT found
* 109 DID: DIDNUMBER in Pending/Remove status
* 110 DID: DIDNUMBER NOT renewed
* 111 Invalid status code. Valid codes: 0 - Disable, 1 - Enable
* 113 Order NOT found for DIDNUMBER
* 114 Order already canceled for DIDNUMBER
* 115 ORDER: Cannot cancel not pending order for DIDNUMBER. Please, use did_cancel
* 120 UNIQ: UNIQUEKEY NOT found
* 121 No cities for this country
* 150 Sandbox error. DIDs max limit reached
* 200 Internal Server Error
通过Sandbox控制面板,如果服务器认为它受到攻击,则会向用户提供这些错误消息。