REST Payments get error 401 UNAUTHORIZED

MTS_Andre
Moderator
Moderator

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:

 

  1. 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
  2. Evaluate, eventually, to upgrade to PRO if your country is Uk, Us or Canada
Login to Me Too
10 REPLIES 10

Haven't Found your Answer?

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