Paypal Rest api给出问题错误没有401,400 [英] Paypal Rest api giving problem error no 401 , 400

查看:189
本文介绍了Paypal Rest api给出问题错误没有401,400的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,





我通过以下步骤创建paypal rest api

1。由developer.paypal.com创建登录ID

2.点击我的应用程序

3.点击按钮创建应用程序创建testapp

4。通过单击testapp我已经获得了两个api凭证(i)测试凭证(ii)实时凭证(通过点击显示)



我遇到上述问题(客户端) ID和秘密)在我的代码中

代码给出错误没有401或一些时间400





我已检查帐户资格



PayPal付款和

登录PayPal显示正确的标志



但是

未启用实时交易的功能



直接信用卡

显示:

注意:在您的应用中,直接信用卡处理会禁用实时凭据。我们正在处理您的信息,并会在启用实时API凭证时通过电子邮件发送给您。



和相同



未来付款

注意:您的应用中的未来付款处理将禁用实时凭据。我们正在处理您的信息,并会在启用实时API凭据时通过电子邮件发送给您。





但是当我使用其他api凭证时(客户端) ID和秘密)在我的代码中工作正常



以下是我的代码







我做错了什么?

请帮助我.....

Hi All,


I am creating paypal rest api by the following steps
1. created login id by developer.paypal.com
2. clicked My apps
3. clicked button "Create app" created testapp
4. By clicking testapp I have gotted two api credentials (i) Test Credentials (ii) Live credentials (By click on show)

I am having problem by above api (Client ID and Secret ) in my code
the code giving error no 401 or some time 400


I have checked "Account eligibility"

PayPal payments and
Log In with PayPal is showing right sign

But
Features that are not enabled for live transactions

Direct credit cards
showing :
Note: Live credentials are disabled for direct credit card processing in your app. We are processing your information and will email you when live API credentials are enabled.

and same

Future Payments
Note: Live credentials are disabled for future payment processing in your app. We are processing your information and will email you when live API credentials are enabled.


But when I am using other api credential (Client ID and Secret ) in my code its working fine

Following is my Code



What am I doing wrong ?
Please help me .....

推荐答案

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

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



只能从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 themselves - 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!


这篇关于Paypal Rest api给出问题错误没有401,400的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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