• 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)
  • Hi @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.

    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.