Vaulted card payment fails as 'unauthorized' on Live REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Can I create a Subscription using Vault Payment Method Token in Javascript in REST APIs
- How can fix this error . Im trying to setup vault payment integration. please help me in Sandbox Environment
- Drupal 7, Ubercart, credit card payment Issue: 10002: Security header is not valid in NVP/SOAP APIs
- Can not pay order for unauthorized order #JavaScript SDK # in Sandbox Environment
- Sandbox Paypal Login displays "Something went wrong on our end" instead of consent page in Sandbox Environment