Click here to Skip to main content
15,883,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 .....
Posted
Updated 15-May-14 18:00pm
v2

1 solution

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!
 
Share this answer
 
Comments
Manoj Kumar Choubey 14-May-14 10:05am    
The above code is not part of my real application, this is the sample downloaded from the tutorial sites......
I want to go on the point where I am doing mistake.
I will solve my problem.
Manoj Kumar Choubey 14-May-14 10:07am    
Your suggestion is very good ..... and thank you for your assessment.
Manoj Kumar Choubey 15-May-14 3:35am    
Hi Orginal could you help me for paypal problem ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900