cancel
Showing results for 
Search instead for 
Did you mean: 

Vaulted card payment fails as 'unauthorized' on Live REST API

Vaulted card payment fails as 'unauthorized' on Live REST API

Hi, everyone. Faced following problem on Live API, doing payment with vaulted card:

 

1. I store real card in a Vault and get a card token

2. Using that token I create a payment

3. Unlike to sandbox it returns me

{"name":"UNAUTHORIZED_PAYMENT","message":"Unauthorized payment.", "information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"...."}

 

Paypal-account is Australian, payment goes in USD and credit card issued in Russia.

 

How can I fix this issue?

 

 

3 REPLIES
Moderator

Re: Vaulted card payment fails as 'unauthorized' on Live REST API

Hi, check in your API request if you are passing

 

"payment_method": "credit_card"

 

If you are passing this value then consider that is only reserved for PRO accounts that can process direct card payments.

If your account is not PRO enabled to accept direct card payments then pass the value "paypal" instead ("payment_method": "paypal") and you will able to process account card payments correctly (the buyer will log in into his/her PayPal account that will use the card already added in it or can have the guest checkout)

Here a link with all the details:

- https://developer.paypal.com/docs/api/payments/#payment_create
- https://developer.paypal.com/docs/api/payments/#definition-payer

 

New Community Member

Re: Vaulted card payment fails as 'unauthorized' on Live REST API

I used the Vault API for Ionic 3 Mobile App and it was working fine in sandbox and when moved to live is the showing the same error.

 

we accept payments in AUD.

 

 Error Message:


   "name": "UNAUTHORIZED_PAYMENT",
   "message": Unauthorized payment,
   "information_link": "https://developer.paypal.com/docs/api/payments/#errors",
   "debug_id": "357e0c922bfd1"
}

New Community Member

Re: Vaulted card payment fails as on Live REST API

I used the Vault API for Ionic 3 Mobile App and it was working fine in sandbox and when moved to live is the showing the same error.

 

we accept payments in AUD.

 

 Error Message:


   "name": "UNAUTHORIZED_PAYMENT",
   "message": Unauthorized payment,
   "information_link": "https://developer.paypal.com/docs/api/payments/#errors",
   "debug_id": "357e0c922bfd1"
}