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!