Title: Getting/Verifying Saved Card Data
Last modified: August 21, 2018

---

# Getting/Verifying Saved Card Data

 *  Resolved [Chris Schertenlieb](https://wordpress.org/support/users/schertec/)
 * (@schertec)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/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!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mike W](https://wordpress.org/support/users/nixiack8/)
 * (@nixiack8)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/getting-verifying-saved-card-data/#post-10656663)
 * Hi [@schertec](https://wordpress.org/support/users/schertec/),
 * > 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.
 * You would probably need to make your customer create an account and then ask 
   them to add the card from My Account to get them to have a saved payment. There
   is no way to remove the payment without custom coding.
 * > 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?
 * There may be, but unfortunately it is not something we can support due to the
   custom nature. I will be happy to leave this thread up in case others want to
   comment on this for further help though!
 * > For example is any of this data stored in the wp_meta table?
 * Not up front, no.
 *  [Mike W](https://wordpress.org/support/users/nixiack8/)
 * (@nixiack8)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/getting-verifying-saved-card-data/#post-10676057)
 * Hi there!
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Getting/Verifying Saved Card Data’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mike W](https://wordpress.org/support/users/nixiack8/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/getting-verifying-saved-card-data/#post-10676057)
 * Status: resolved