REST Payments get error 401 UNAUTHORIZED

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Nov-02-2017
04:19 AM
The most common cause for this error is the payment method passed in your REST API request.
"payment_method": "credit_card" VS "payment_method": "paypal"
The payment method can be "paypal" for payments with PayPal accounts and cards (where the buyer has to fill-in his card details on PayPal checkout page and not on your website).Or it can be "credit_card" for direct card payments where the buyer can provide his card details directly on your website (not on PayPal checkout page).
The "credit_card" value is reserved ONLY for PRO accounts in UK, US and Canada. In case you receive this error and is due to this then you have 2 options:
- Pass "paypal" instead of "credit_card" and you can still process card payments where available, all the card details will be collected on a PayPal page
- Evaluate, eventually, to upgrade to PRO if your country is Uk, Us or Canada
Labels:
Login to Me Too
10 REPLIES 10
Partiksha
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-05-2024
04:47 AM

- « Previous page
-
- 1
- 2
- Next page »
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Things don’t appear to be working at the moment in PayPal Payments Standard
- Error payment in PayPal Payments Standard
- Problem upgrading sandbox business account to pro in Sandbox Environment
- I keep getting the error: “Unfortunately, a system error has occurred" in NVP/SOAP APIs
- Paypal via Adyen Permission Denied in REST APIs