How to check if credit card has been added to customer profile already instead of duplicating the vault profile.



I am working on a solution where we save the credit card information to the vault and use that data key for a later transaction.

I wanted to ask, how to check prior to saving the card to the vault that it already exists or not and if exist then fetch the previously saved data key instead of creating a new profile.


Thank you