gpt4 book ai didi

Paypal 沙盒内部服务错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:12:54 25 4
gpt4 key购买 nike

我正在尝试使用 PayPal 沙盒测试自动信用卡处理,但遇到了问题。上周我的测试是“成功的”,因为当验证错误发生时,API 会阻塞,但至少我知道发生了什么。清理传递给 API 的代码后,我不再收到验证错误,只有内部服务错误,而且这种情况已经发生了四天。

这是日志文件显示的内容(此处删除了访问 token ,但它是在使用前从 API 成功生成的):

2013-07-01 16:47:00,845 [32944] DEBUG PayPal.Manager.ConnectionManager [(null)] grant_type=client_credentials

2013-07-01 16:47:03,296 [32944] DEBUG PayPal.Manager.ConnectionManager [(null)] 服务响应

2013-07-01 16:47:03,296 [32944] DEBUG PayPal.Manager.ConnectionManager [(null)] {"scope":"https://api.paypal.com/v1/payments/ .* https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/vault/credit-card/ .* openid","access_token":"[生成的访问 token ]","token_type":"Bearer","app_id":"[app ID]","expires_in":28800}

2013-07-01 16:47:05,069 [32944] DEBUG PayPal.PayPalResource [(null)] Content-Type:application/json

2013-07-01 16:47:05,069 [32944] DEBUG PayPal.PayPalResource [(null)] Authorization:Bearer [access code]

2013-07-01 16:47:05,069 [32944] DEBUG PayPal.PayPalResource [(null)] User-Agent:PayPalSDK/rest-sdk-dotnet 0.7.1;lang=DOTNET;v=4.0.30319.18046; bit=64;os=Windows 8 6.2.9200.0;

2013-07-01 16:47:05,069 [32944] DEBUG PayPal.PayPalResource [(null)] PayPal-Request-Id:303be909-4268-4909-b1cb-b51b6dc7ea54

2013-07-01 16:47:05,365 [32944] DEBUG PayPal.Manager.ConnectionManager [(null)] {"intent":"sale","payer":{"payment_method":"credit_card","funding_instruments":[{"credit_card":{"number":"4111111111111111","type":"visa","expire_month":4,"expire_year":2017,"cvv2":"123","first_name": "First","last_name":"Last","billing_address":{"line1":"123 Any St.","city":"城市","country_code":"US","postal_code":"12345 ","state":"OH"}}}]},"transactions":[{"amount":{"currency":"USD","total":"4.93","details":{"shipping":"3.55","小计":"1.30","税":"0.08"}},"描述":"描述"}]}

2013-07-01 16:47:35,657 [32944] 错误 PayPal.Manager.ConnectionManager [(null)] 错误响应:{"name":"INTERNAL_SERVICE_ERROR","information_link":"https://api.sandbox.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR ","debug_id":"ce04de98d51f2"

2013-07-01 16:47:35,657 [32944] INFO PayPal.Manager.ConnectionManager [(null)] 从服务器获取了 InternalServerError 状态代码

2013-07-01 16:47:35,708 [32944] 错误 PayPal.Exception.PayPalException [(null)] HttpConnection 执行异常:流不可读。PayPal.Exception.PayPalException:HttpConnection Execute 中的异常:Stream 不可读。 ---> System.ArgumentException:流不可读。 在 System.IO.StreamReader..ctor(Stream stream,Encoding 编码,Boolean detectEncodingFromByteOrderMarks,Int32 bufferSize,Boolean leaveOpen) 在 System.IO.StreamReader..ctor(流流) 在 PayPal.HttpConnection.Execute(字符串 payLoad,HttpWebRequest httpRequest) --- 内部异常堆栈跟踪结束 ---

对此有什么建议吗?我不太确定从这里到哪里去。

最佳答案

刚刚运行了我们的单元测试用例,确认使用 CC 付款似乎有效。请尝试使用备用测试信用卡号“4417119669820331”并确认是否有效。我们在使用测试信用卡号“4111111111111111”时发现了一些间歇性问题。

如果它有效,请将您的自动测试用例的测试信用卡修改为这个数字,以防止将来出现故障,直到有可用的修复程序。

关于 Paypal 沙盒内部服务错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17413650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com