java paypal支付401,Paypal Rest api给出问题错误没有401,400

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 .....

解决方案

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!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值