RESTful API Integration - 401 Unauthorized Credential witn Live AppId and Secret Key

zhiqianghan
Contributor
Contributor

Hi, Everyone. 

I am a developer and integrated Direct Payment with credit card using ASP.NET PayPal SDK RESTful Library.

I made Australia account and tested.

It works well in SandBox, but It doesn't work with live appId and secret.

Should I upgrade PayPal Pro account?

I think it is not a technical problem.

If someone know the reason, please teach me.

Thank you.

Login to Me Too
4 REPLIES 4

angelleye
Advisor
Advisor
Are you sure you switched the API endpoint when you changed the credentials? Sounds like maybe you're passing live credentials to the sandbox endpoint.

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

zhiqianghan
Contributor
Contributor

Thank you Angelleye.

I am now using live key correctly.

I implemented both Direct Payment and Paypal link payment.

Paypal link payment is well working, but direct payment has 401 unauthorized error.

I think it is not a technical problem.

I don't know how to make my account to accept credit card payment.

If you know about it, please teach me.

Best Regards,

Login to Me Too

angelleye
Advisor
Advisor
Okay, well, the Direct Credit Card processing is something that has to be enabled specifically for the App that you are working with on the live server. It's typically enabled by default in the sandbox for testing purposes.

You will need to call to request that they enable DCC (direct credit card) processing on your REST App, however, they may redirect you to use Braintree instead as they have recently closed new applications for DCC on PayPal REST APIs.

If they do say that, I would mention that you've already spent time developing the current integration, and it would really be in your best interest to use what you've already integrated. They may go ahead and turn it on for you since you've already done the integration work.

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

zhiqianghan
Contributor
Contributor

Thank you for your advice.

So you mean that I can use ASP.NET Restful Paypal SDK in my website without other problem?

Could you tell me how to enable App for REST available in my paypal account?

 

I don't know how to enable it in live envirenment.
I just copied Live appId and secret in my website.

Actually PayPal website redirect link works correctly in my live account.

Only Direct Payment with credit card doesn't work in live account.

I hope you teach me in more detail.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.