Getting/Verifying Saved Card Data
-
I am developing for a woocommerce site, and we would like to make it so that a user cannot bid on/purchase an item in the store unless they have a payment method saved within stripe. Furthermore, I’d like to prevent users from deleting their default source, to avoid them adding a card, bidding, and then deleting the card afterward.
I see that in the WC_Stripe_Customer class there are some useful methods here that do things like get_default_card() which would be ideally what I need. Is there some way I can make use of these methods inside some action hooks in the functions.php file to accomplish what I need? For example is any of this data stored in the wp_meta table?
Thank you for your time!
The topic ‘Getting/Verifying Saved Card Data’ is closed to new replies.