Paypal VAULT API error on live mode

Meesum
New Community Member

Hello Everyone,

I am using paypal vault REST API version V1 https://developer.paypal.com/docs/api/vault/v1
Everything is working fine on sandbox but when i switched to live mode and used live client id and secret I can store the credit card to paypal vault and get card id as response but I am unable to make a payment using vaulted card as described here https://developer.paypal.com/docs/integration/direct/vault

Our Code

{ "intent": "sale", "payer": { "payment_method": "credit_card", "funding_instruments": [ { "credit_card_token": { "credit_card_id": "CARD-XXXXXXXXXXXXXXXXX" } }] }, "transactions": [ { "amount": { "total": "1.0", "currency": "USD" }, "description": "Payment by vaulted credit card" }] }

I am getting the following error

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

Hopefully debug_id can help you to figure out the problem Should i need to enable PayPal Payments Pro in our account?
Is there no need to have PayPal Payments Pro to simply process US credit cards?
Please have a look into it and let me know what should i do So that i can make a payment successfully through a vaulted credit card.

Thank you.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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