Paypal sdk asp.net返回(400)错误的请求 [英] Paypal sdk asp.net return (400) Bad Request

查看:82
本文介绍了Paypal sdk asp.net返回(400)错误的请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Paypal 通过我的网站上的信用卡进行付款,该信用卡在 asp.net mvc 中,但是每次遇到它返回异常

I'm trying to use Paypal for payment with credit card on my website that in asp.net mvc but every time I face a problem that it return with exception

(400)错误的请求.

(400) Bad Request.

所以我尝试在此处使用示例特别是 PaymentWithCreditCard 的示例,它工作得很好,但是当我尝试使用我的 clientId clientSecret 我遇到同样的错误!

so I tried to use the samples here specially the sample of PaymentWithCreditCard and it work very well but when I try to change the web.config with my clientId and clientSecret I get the same error !!

我确定我在代码和示例中都写了我的客户ID和密码,但不知道为什么会收到此错误!

I'm sure I wrote my client id and secret code right on both my code and sample, but don't know why I get this error!!

示例与它的客户端ID和密码一起使用时效果很好,但是当我使用我的客户端ID和密码ID时,会给我这个错误

sample work well with it's client id and secret,, but give me this error when I use my client id and secret id

以及该错误的详细信息

远程服务器返回错误:(400)错误的请求.

The remote server returned an error: (400) Bad Request.

名称:"UNKNOWN_ERROR"

name: "UNKNOWN_ERROR"

消息:发生未知错误

information_link: https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR

information_link: https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR

debug_id:7f3c48e317bbb

debug_id: 7f3c48e317bbb

希望您能帮助我解决这个问题.

hope you can help me with this problem.

推荐答案

您的沙盒帐户似乎不是pro.我刚刚重新激活了它的功能.如果您尝试处理信用卡付款,现在应该可以了.

Your sandbox account doesn't seem to be pro . I just reactivated the pro on it . It should be fine now if you try to process a card payment .

这篇关于Paypal sdk asp.net返回(400)错误的请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆