cancel
Showing results for 
Search instead for 
Did you mean: 

REST Payments get error 401 UNAUTHORIZED

Moderator

REST Payments get error 401 UNAUTHORIZED

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