微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c# – Paypal Payments – 500错误

我正在尝试在我的系统中进行自动付款,并使其在沙箱模式下完美运行.很快,当我切换到实时模式时,我收到500错误.我不确定我复制的URL是否可能来自旧网站或其他内容.

这是我的参数:

enter image description here

我的回发错误看起来像:

{"ClassName":"PayPal.Exception.HttpException","Message":"The Remote Server returned an error: (500) Internal Server Error.","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":" at PayPal.httpconnection.Execute(String payLoad,HttpWebRequest httpRequest)\r\n at PayPal.APIService.MakeRequestUsing(IAPICallPreHandler apiCallHandler)\r\n at PayPal.BasePayPalService.Call(IAPICallPreHandler apiCallHandler)\r\n at PayPal.AdaptivePayments.AdaptivePaymentsService.Pay(PayRequest payRequest,String apiUserName)\r\n at Cashbackeroo.Payment.PayPal.PayPalPaymentService.Pay(PaymentRequest paymentRequest)","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nExecute\nPayPalCoreSDK,Version=1.7.1.0,Culture=neutral,PublicKeyToken=5b4afc1ccaef40fb\nPayPal.httpconnection\nSystem.String Execute(System.String,System.Net.HttpWebRequest)","HResult":-2146233088,"Source":"PayPalCoreSDK","WatsonBuckets":null}

解决方法

适应性账户
Adaptive Accounts API允许您为PayPal用户创建和管理PayPal帐户.要进行API调用,请参阅Adaptive Accounts API调用标头和端点.

自适应帐户端点
进行Adaptive Accounts API调用.包含带有API凭据的AppID.
对于沙箱测试,请指定AppID为APP-80W284485P519543T.

API
格式
端点
自适应账户
SOAP和XML,
NVP或JSON
生活
https://svcs.paypal.com/AdaptiveAccounts/
砂箱
https://svcs.sandbox.paypal.com/AdaptiveAccounts/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐