store credit card token against customer in database

mitesh_modi
Contributor
Contributor

Vault credit card token in my database by customer id. Problem is that when i post api https://api-m.sandbox.paypal.com/v3/vault/setup-tokens then it will return every time new customer id. so how do i store multiple credit card token againt same customer id. One customer has multiple card.

Login to Me Too
1 REPLY 1

Kavyar
Moderator
Moderator

Good day @mitesh_modi,

 

Thank you for posting to the PayPal community.

 

This is the expected functionality of our API.

 

I suggest checking your internal website code to ensure you trigger unique API requests per order. Merchants are responsible for handling their websites internally.

 

To know more about Payment method tokens, I kindly request you to refer to the detailed guide link provided below: https://developer.paypal.com/docs/api/payment-tokens/v3/#setup-tokens_create

 

If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US . Please ensure that you provide detailed information and error details when submitting the ticket.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

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.