c# – Paypal Payments – 500错误
作者:互联网
我正在尝试在我的系统中进行自动付款,并使其在沙箱模式下完美运行.很快,当我切换到实时模式时,我收到500错误.我不确定我复制的URL是否可能来自旧网站或其他内容.
这是我的参数:
我的回发错误看起来像:
{"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/
标签:c,paypal,paypal-sandbox,paypal-adaptive-payments 来源: https://codeday.me/bug/20190710/1427008.html