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

AmlAccelerate
Contributor
Contributor

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?

 

 

Login to Me Too
3 REPLIES 3

MTS_Andre
Moderator
Moderator

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

 

Login to Me Too

Urbandoc
Contributor
Contributor

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"
}

Login to Me Too

Urbandoc
Contributor
Contributor

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"
}

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.