Pay Pal Bad请求错误 [英] Pay Pal Bad request Error

查看:93
本文介绍了Pay Pal Bad请求错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



一旦他登录到paypal并通过paypal进行身份验证,我正试图获得付费用户信息。在第一步,我得到授权码。但是当执行到达获取用户的访问令牌以帮助我在下一步获取用户信息时,会给我以下错误。



Hi friends,

I am trying to get pay pal user info once he login to paypal and get authenticated by paypal. At first step I get the Authorization code. But when the execution reach to get the access token of the user that will help me to get user info in next step gives me the following error.

Invalid Http rsponse The remote server returned an error : (400) bad request.





我参考paypal文档和sdk for donet

Fowlling是我的代码





I refer the paypal documentation and sdk for donet
Fowlling is my code

Dictionary configurationMap = new Dictionary(); configurationMap.Add("mode", "sandbox"); APIContext apiContext = new APIContext(); apiContext.Config = configurationMap; CreateFromAuthorizationCodeParameters param = new CreateFromAuthorizationCodeParameters(); param.setClientId("My ClientID goes here");
param.setClientSecret("My Client Secert goes here");
param.SetCode(code); // Authorization code goes here
Tokeninfo info = Tokeninfo.CreateFromAuthorizationCode(apiContext, param);

GetUserInfor(info);





请指导我缺少的地方或我如何解决这个问题。

谢谢



Please guide me where I am lacking or how can i solve this.
Thanks

推荐答案

永远不要接受来自不安全网站的代码来处理任何与真钱有关的事情。

你不知道是谁给你代码,你不知道它做了什么,你不知道它将钱正确地放入适当的账户,而不将细节传递给任何第三方。



只能从Paypal获取此类代码 - 否则欺诈的范围太大。请记住,如果您的行为被视为疏忽,您本人可能要对任何损失承担责任 - 从公共论坛获取您的代码肯定会是!
Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from Paypal - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!


我跑到了一段时间回来的类似问题...在调试我的代码后我发现我正在制作的交易在逻辑上是错误的..小计已经关闭了
I ran in to a similar problem a while back .. after debugging my code i found out that the transaction that i was making was logically wrong.. the subtotal was off be


0.25并且paypal服务器看到并拒绝了处理它,并给了我400个错误请求
0.25 and paypal server saw it and refused to process it, and gave me 400 bad request


这篇关于Pay Pal Bad请求错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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