Delete customer’s saved credit card
-
Deleting a customer’s saved payment method on the Stripe portal does not sync back to WooCommerce. Customer still sees the saved card in WooCommerce account details and on the checkout page.
Is this working as designed? Should removing the card on Stripe also remove it from WooCommerce?
-
Hi there @jlstysis ??
Is this working as designed? Should removing the card on Stripe also remove it from WooCommerce?
Thanks for reaching out. Happy to help you with this!
Can you please share a screenshot of the screen where you are trying to delete the card from? https://snipboard.io/ is a good tool of choice for sharing it here.In order to be able to investigate things further, could you please share a copy of your site’s System Status? You can find it via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
.?Additionally, could you also provide us with the fatal error logs (if any) under
WooCommerce > Status > Logs
.Once you’ve copied each, you can either paste them in your response here, or use https://pastebin.com/ for pasting it there and sharing it with us.
Looking forward to hearing from you!
Thank you.
Here are the screenshots:
https://snipboard.io/REJ8o6.jpg
https://snipboard.io/nP63m2.jpgI’m deleting the customer’s saved credit card in my Stripe portal, but the saved card is still visible in the user’s WooCommerce account on my website.
System status report is below.
### WordPress Environment ### WordPress address (URL): https://mybiblioteka.com Site address (URL): https://mybiblioteka.com WC Version: 7.0.1 REST API Version: ? 7.0.1 WC Blocks Version: ? 8.5.2 Action Scheduler Version: ? 3.5.2 Log Directory Writable: ? WP Version: 6.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: ru_RU External object cache: ? ### Server Environment ### Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1q-fips SUHOSIN Installed: – MySQL Version: 5.7.39-42-log Max Upload Size: 256 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.0.1 WC Database Prefix: wp_yefkxr_ Total Database Size: 82.43MB Database Data Size: 62.68MB Database Index Size: 19.75MB wp_yefkxr_woocommerce_sessions: Data: 17.05MB + Index: 0.20MB + Engine InnoDB wp_yefkxr_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yefkxr_woocommerce_order_items: Data: 0.09MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_woocommerce_order_itemmeta: Data: 0.48MB + Index: 0.39MB + Engine InnoDB wp_yefkxr_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_yefkxr_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_actionscheduler_actions: Data: 2.41MB + Index: 1.52MB + Engine InnoDB wp_yefkxr_actionscheduler_claims: Data: 0.06MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_actionscheduler_logs: Data: 1.52MB + Index: 0.58MB + Engine InnoDB wp_yefkxr_aioseo_cache: Data: 0.41MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_aioseo_notifications: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_yefkxr_aioseo_posts: Data: 1.52MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_aioseo_terms: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_bwt_failed_submissions: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_bwt_passed_submissions: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_comments: Data: 0.16MB + Index: 0.09MB + Engine InnoDB wp_yefkxr_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB wp_yefkxr_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_yefkxr_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_yefkxr_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_gla_budget_recommendations: Data: 0.20MB + Index: 0.11MB + Engine InnoDB wp_yefkxr_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_indexnow_failed_submissions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_indexnow_passed_submissions: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_options: Data: 7.42MB + Index: 0.27MB + Engine InnoDB wp_yefkxr_postmeta: Data: 7.52MB + Index: 3.03MB + Engine InnoDB wp_yefkxr_posts: Data: 2.52MB + Index: 0.41MB + Engine InnoDB wp_yefkxr_relevanssi: Data: 7.55MB + Index: 9.55MB + Engine InnoDB wp_yefkxr_relevanssi_log: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_relevanssi_stopwords: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_rnb_availability: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_rnb_inventory_product: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_sgs_log_events: Data: 10.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_sgs_log_visitors: Data: 0.16MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_snippets: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_termmeta: Data: 0.30MB + Index: 0.19MB + Engine InnoDB wp_yefkxr_terms: Data: 0.16MB + Index: 0.16MB + Engine InnoDB wp_yefkxr_term_relationships: Data: 0.48MB + Index: 0.27MB + Engine InnoDB wp_yefkxr_term_taxonomy: Data: 0.11MB + Index: 0.11MB + Engine InnoDB wp_yefkxr_tm_taskmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_usermeta: Data: 0.20MB + Index: 0.11MB + Engine InnoDB wp_yefkxr_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wc_category_lookup: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_yefkxr_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yefkxr_wc_product_attributes_lookup: Data: 0.33MB + Index: 0.25MB + Engine InnoDB wp_yefkxr_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wc_product_meta_lookup: Data: 0.11MB + Index: 0.19MB + Engine InnoDB wp_yefkxr_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yefkxr_wps_hit: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_yefkxr_wps_index: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_yefkxr_wps_key: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wps_object_term: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_yefkxr_wps_object_type: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_yefkxr_wps_query: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wps_uri: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yefkxr_wps_user_agent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 1211 br_product_filter: 2 custom_css: 6 customize_changeset: 2 elementor_library: 4 filter-field: 8 filter-set: 1 inventory: 1 itsec-dash-card: 6 itsec-dashboard: 1 jp_pay_product: 1 mailpoet_page: 1 nav_menu_item: 22 page: 13 post: 1 product: 619 revision: 3 seedprod: 1 shop_coupon: 6 shop_order: 76 shop_order_refund: 6 shop_subscription: 1 sumomasterlog: 633 sumomem_masterlog: 89 sumomembers: 20 sumomembershipplans: 8 sumosubs_cron_events: 87 sumosubscriptions: 15 wfwp_wc_order_status: 3 wp_global_styles: 6 wpforms: 3 xlwcty_thankyou: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (44) ### AIOSEO - IndexNow: by All in One SEO Team – 1.0.6 All in One SEO Pro: by All in One SEO Team – 4.2.7.1 Astra Pro: by Brainstorm Force – 3.9.2 Bing Webmaster Url Submission: by Bing Webmaster – 1.0.13 Code Snippets: by Code Snippets Pro – 3.2.1 DynamicConditions: by RTO GmbH – 1.6.0 Elementor Pro: by Elementor.com – 3.8.0 Elementor: by Elementor.com – 3.8.0 ELEX WooCommerce Bulk Edit Products, Prices & Attributes (Basic): by ELEXtensions – 1.2.6 Envato Market: by Envato – 2.0.7 Facebook for WooCommerce: by Facebook – 2.6.28 Filter Everything PRO: by Andrii Stepasiuk – 1.7.1 Flying Pages: by WP Speed Matters – 2.4.6 Site Kit by Google: by Google – 1.86.0 Gratisfaction- Loyalty Rewards Referral Birthday and Giveaway Program: by Appsmav – 4.2.8 Hide/Remove Metadata: by Catch Plugins – 1.2.5 IndexNow: by Microsoft Bing – 1.0.1 Jetpack: by Automattic – 11.5.1 HubSpot All-In-One Marketing - Forms, Popups, Live Chat: by HubSpot – 9.0.338 Loco Translate: by Tim Whitlock – 2.6.3 Mailchimp for WooCommerce: by Mailchimp – 2.7.6 Maximum Products per User for WooCommerce Pro: by WPFactory – 3.7.8 Order Minimum/Maximum Amount for WooCommerce Pro: by WPFactory – 4.2.2 Order Status for WooCommerce Pro: by WPFactory – 1.2.0 Product Notes for WooCommerce: by Algoritmika Ltd – 2.9.0 Relevanssi: by Mikko Saari – 4.17.1 SiteGround Security: by SiteGround – 1.3.5 Sold Out Badge for WooCommerce: by Charlie Etienne – 4.3.5 Stock Triggers for WooCommerce Pro: by Algoritmika Ltd – 1.6.2 SUMO Memberships: by Fantastic Plugins – 6.6 SUMO Subscriptions: by Fantastic Plugins – 14.2.2 User Notes: by Cartpauj – 1.0.2 When Last Login: by Yoohoo Plugins – 1.2.1 Wish List for WooCommerce Pro: by Thanks to IT – 2.0.4 NextMove Lite - Thank You Page for WooCommerce: by XLPlugins – 2.15.1 WooCommerce Stripe Gateway: by WooCommerce – 6.9.0 WooCommerce Security Deposits: by codeCraze – 1.3.1 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce: by Automattic – 7.0.1 WooLentor - WooCommerce Elementor Addons + Builder: by HasThemes – 2.4.7 WP Mail SMTP: by WPForms – 3.6.1 WPFactory Helper: by WPFactory – 1.5.0 WPFactory Conditional Shipping for WooCommerce: by Algoritmika Ltd – 1.6.1 WPForms Lite: by WPForms – 1.7.7.2 ### Inactive Plugins (14) ### Copy & Delete Posts: by Copy Delete Posts – 1.3.4 Cyr-To-Lat: by Sergey Biryukov Mikhail Kobzarev Igor Gergel – 5.3.0 Flying Analytics: by WP Speed Matters – 1.2.2 Flying Images: by WP Speed Matters – 2.4.14 Flying Scripts: by WP Speed Matters – 1.2.3 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.9.1 Lock User Account: by teknigar – 1.0.3 Proxy Cache Purge: by Mika Epstein – 5.1.3 Query Monitor: by John Blackbourn – 3.10.1 SiteGround Optimizer: by SiteGround – 7.2.5 Smush: by WPMU DEV – 3.12.3 User Role Editor: by Vladimir Garagulya – 4.63.1 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.9 WP Crontrol: by John Blackbourn & crontributors – 1.14.0 ### Dropin Plugins (1) ### object-cache.php: Memcached ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) fast-credit (fast-credit) grouped (grouped) redq_rental (redq_rental) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ? ### WC Pages ### Shop base: ? Page not set Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: #694 - /terms-and-conditions/ ### Theme ### Name: Astra Child Version: 1.0.0 Author URL: https://wpastra.com/about/ Child Theme: ? Parent Theme Name: Astra Parent Theme Version: 3.9.3 Parent Theme Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme WooCommerce Support: ? ### Templates ### Overrides: astra-child/woocommerce/emails/customer-new-account.php ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-11-08 02:01:19 -05:00 Options: ? Notes: 90 Onboarding: completed ### Action Scheduler ### Canceled: 10 Oldest: 2022-11-04 08:39:38 -0400 Newest: 2022-11-06 18:43:52 -0500 Complete: 4,205 Oldest: 2022-10-07 23:53:56 -0400 Newest: 2022-11-07 12:53:32 -0500 Failed: 1,234 Oldest: 2022-11-03 14:26:00 -0400 Newest: 2022-11-06 22:01:02 -0500 Pending: 11 Oldest: 2022-11-07 13:08:28 -0500 Newest: 2022-11-14 03:22:50 -0500 ### Status report information ### Generated at: 2022-11-07 12:54:04 -05:00
2022-11-04T01:26:19+00:00 CRITICAL Uncaught Exception: Failed creating dir: /home/customer/www/mybiblioteka.com/public_html/wp-content/uploads/wpo/content-digest/on in /home/customer/www/mybiblioteka.com/public_html/wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleTestFileLineUpper.php:16 Stack trace: #0 /home/customer/www/mybiblioteka.com/public_html/wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleTestFileLineUpper.php(44): HtaccessCapabilityTester\SimpleTestFileLineUpper->writeFileIfMissingOrChanged(Array) #1 /home/customer/www/mybiblioteka.com/public_html/wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleTestFileLineUpper.php(94): HtaccessCapabilityTester\SimpleTestFileLineUpper->writeMissingAndChangedFiles(Array) #2 /home/customer/www/mybiblioteka.com/public_html/wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/Testers/AbstractTester.php(153): HtaccessCapabilityTester\SimpleTestFileLineUpper->lineUp(Arra в /home/customer/www/mybiblioteka.com/public_html/wp-content/plugins/wp-optimize/vendor/rosell-dk/htaccess-capability-tester/src/SimpleTestFileLineUpper.php на строке 16
Hello!
Please navigate to WooCommerce > settings > Stripe > settings, you will see a setting called
Enable payments via saved cards
make sure to uncheck it, so that your customers will need to add the card details manually.
Link to image: https://snipboard.io/GHTwAL.jpgOn the customer side, they can delete the saved payment data by navigating to My Account > Payment Methods.
Link to image: https://snipboard.io/rDxMjV.jpgLet us know if there are any questions.
Thank you. I’m aware of those settings.
I do not need to disable “Enable payments via saved cards”. I DO want customers to be able to save cards for future payments.
However, my customers are unable to delete their saved payment cards because I have that feature disabled for legitimate reasons.
Hence, I need the ability for the admin to manually delete customers’ saved payment methods upon request.
Thank you,
JulianHello,
Do you mean Is the card deleted on Stripe side, but still visible on the customer’s end? You can log in as a customer, save a card, delete that card on Stripe side. Then try again to make a test order, is the payment going through?
Let us know what you find, thanks.
I probably won’t. But the user will still see a saved card on their account.
Here’s the thing: I know that deleting the card on WooCommerce deletes it on Stripe.
My only question is whether deleting the card on Stripe should also delete on WooCommerce. What’s the expected behavior?Hi @jlstysis
I replicated the scenario on my test site: deleted the saved payment method/credit card on Stripe for Customer A. Then, checked under
My Account
if the details are still there, and yes, it is still under myPayment Methods
. Tried to process an order using the saved payment that was already deleted in Stripe, but I am getting this error twice:Image Link: https://snipboard.io/rZgIVA.jpg
By design, your customer’s credit card number and security code are never stored on your website. The payment gateway gives this sensitive information directly to the payment processor. We design our payment gateway plugins to ensure credit card data never enters or passes through your website’s database. This means you need not meet the burdensome and expensive security standards required for storing customers’ credit card numbers.
If you suspect that this is a bug, you could post it on Stripe’s Github Repository here so that the developers could take a further look at your concern: https://github.com/woocommerce/woocommerce-gateway-stripe/issues
Thanks!
Thank you. May be a feature request to also remove the payment details from the user’s woocommerce account via a webhook if possible. I understand the card number is not stored in the woocommerce database, but customers don’t know that and would want the card removed from that view.
-
This reply was modified 2 years, 4 months ago by
jlstysis.
Hi there @jlstysis ??
Thank you. May be a feature request to also remove the payment details from the user’s woocommerce account via a webhook if possible.
You are welcome. As is this feature request idea. Feel free to submit it at the following link: https://woocommerce.com/feature-requests/stripe/
-
This reply was modified 2 years, 4 months ago by
- The topic ‘Delete customer’s saved credit card’ is closed to new replies.