Woocommerce/Stripe keys won’t save
-
Our site won’t process cards so I investigated. The webhook secret key was needed. I found it in our stripe account and put it in but it won’t save and won’t test/connect. I’ve deactivated all plugins except woocomerrce and stripe payment gateway and switched to storefront. I deleted stripe payment gateway and reinstalled. Still not able to save.
-
I tried on both edge and chrome. It also keeps telling me only live keys should be entered, but they are live keys.
Hi @jaimesews ??
Thank you for reaching out!
I understand that when you paste the secret key into the Webhook secret field it won’t save, correct?
Do you see any fatal error logs in the Stripe logs under WooCommerce > Status > Logs?
If you open the browser console are there any hints/errors there that may help us understand why the secret key is not being saved? Here’s an article that explains how to open the browser console. Make a screenshot using https://snipboard.io – follow the instructions on that page, then paste the URL in this thread.
Also, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Cheers.
2022-04-22T18:02:35+00:00 CRITICAL Uncaught Error: Call to a member function expand_user() on bool in /var/www/vhosts/untci.org/httpdocs/wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/replicastore/class-table-checksum-usermeta.php:163
Stack trace:
#0 /var/www/vhosts/untci.org/httpdocs/wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/replicastore/class-table-checksum-usermeta.php(73): Automattic\Jetpack\Sync\Replicastore\Table_Checksum_Usermeta->expand_and_sanitize_user_meta(Object(WP_User))
#1 /var/www/vhosts/untci.org/httpdocs/wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-replicastore.php(1354): Automattic\Jetpack\Sync\Replicastore\Table_Checksum_Usermeta->calculate_checksum(‘1’, ‘5’, NULL, false)
#2 /var/www/vhosts/untci.org/httpdocs/wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/class-rest-endpoints.php(432): Automattic\Jetpack\Sync\Replicastore->checksum_histogram(‘usermeta’, 1, NULL, NULL, Array, false, ”, false, false, fa in /var/www/vhosts/untci.org/httpdocs/wp-content/plugins/woocommerce-payments/vendor/automattic/jetpack-sync/src/replicastore/class-table-checksum-usermeta.php on line 163### WordPress Environment ### WordPress address (URL): https://untci.org Site address (URL): https://untci.org WC Version: 6.4.1 REST API Version: ? 6.4.1 WC Blocks Version: ? 7.2.2 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.3.2 Log Directory Writable: ? WP Version: 5.9.3 WP Multisite: ? WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.33 PHP Post Max Size: 16 MB PHP Time Limit: 90 PHP Max Input Vars: 1000 cURL Version: 7.29.0 NSS/3.53.1 SUHOSIN Installed: – MySQL Version: 5.5.68-MariaDB Max Upload Size: 1 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.4.1 WC Database Prefix: DgxTh5J33k_ Total Database Size: 68.41MB Database Data Size: 44.25MB Database Index Size: 24.16MB DgxTh5J33k_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB DgxTh5J33k_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_woocommerce_order_itemmeta: Data: 0.11MB + Index: 0.09MB + Engine InnoDB DgxTh5J33k_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB DgxTh5J33k_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_2_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_2_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB DgxTh5J33k_2_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_2_options: Data: 0.03MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_2_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_2_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB DgxTh5J33k_2_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_2_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_2_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_2_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_actionscheduler_actions: Data: 0.09MB + Index: 0.13MB + Engine InnoDB DgxTh5J33k_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_blogmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_blogs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_blog_versions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_commentmeta: Data: 1.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_comments: Data: 1.08MB + Index: 0.09MB + Engine InnoDB DgxTh5J33k_db7_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_duplicator_pro_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_duplicator_pro_packages: Data: 0.06MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_options: Data: 5.02MB + Index: 1.05MB + Engine InnoDB DgxTh5J33k_postmeta: Data: 23.52MB + Index: 1.98MB + Engine InnoDB DgxTh5J33k_posts: Data: 10.05MB + Index: 18.22MB + Engine MyISAM DgxTh5J33k_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_registration_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB DgxTh5J33k_site: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_sitemeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB DgxTh5J33k_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB DgxTh5J33k_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB DgxTh5J33k_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB DgxTh5J33k_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_wpvivid_scan_result: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_wpvivid_unused_uploads_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_yith_ywsbs_activities_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB DgxTh5J33k_yoast_indexable: Data: 1.52MB + Index: 0.80MB + Engine InnoDB DgxTh5J33k_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB DgxTh5J33k_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB DgxTh5J33k_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB DgxTh5J33k_yoast_seo_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### achievement-type: 1 asp_sub_plan: 7 asp_sub_subs: 38 asp-products: 17 attachment: 941 badgeos-log-entry: 616 bib: 1 bp_doc: 2 btp_flexslider: 2 dedo_download: 6 dedo_log: 206 dpw_email: 13 et_pb_layout: 13 event: 2 forum: 36 fvcn-post: 2 ideas: 2 incsub_event: 114 jetpack_migration: 2 job_listing: 5 jp_img_sitemap: 2 jp_img_sitemap_index: 1 jp_sitemap_master: 1 jp_vid_sitemap: 1 kleo-testimonials: 1 mp_order: 50 nav_menu_item: 75 newsletter: 49 nf_sub: 42 oembed_cache: 16 optionsframework: 2 page: 978 post: 181 product: 11 quote: 1 reply: 225 revision: 1651 rtmedia_album: 1 sfwd-assignment: 1 shop_coupon: 1 shop_order: 257 slide_in: 2 stripe_order: 1360 subscriber: 248 tips: 1 topic: 92 woo_faq: 4 wp_global_styles: 1 wp-stripe-trx: 6 wpcf7_contact_form: 4 wysijap: 1 ywsbs_subscription: 22 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (2) ### WooCommerce: by Automattic – 6.4.1 WooCommerce Stripe Gateway: by WooCommerce – 6.3.0 ### Inactive Plugins (19) ### Accept Stripe Payments: by Tips and Tricks HQ wptipsntricks – 2.0.58 Akismet Anti-Spam: by Automattic – 4.2.2 Contact Form 7: by Takayuki Miyoshi – 5.5.6 Contact Form CFDB7: by Arshid – 1.2.6.4 External Media: by Minnur Yunusov – 1.0.34 Gutenberg: by Gutenberg Team – 13.0.0 LearnDash LMS: by LearnDash – 3.1.6 Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.24.1 Potent Donations for WooCommerce: by Aspen Grove Studios – 1.1.7 Stripe Payments Subscriptions Addon: by Tips and Tricks HQ alexanderfoxc – 2.0.12 WooCommerce Admin: by WooCommerce – 3.3.2 WooCommerce Blocks: by Automattic – 7.4.2 WooCommerce Menu Cart: by WP Overnight – 2.11.0 WooCommerce Payments: by Automattic – 4.0.1 WooCommerce Shortcodes: by WooThemes Claudio Sanches – 1.0.0 WP STAGING PRO: by WP-STAGING – 4.1.8 WP Super Cache: by Automattic – 1.7.7 YITH WooCommerce Name Your Price: by YITH – 1.3.0 Yoast SEO: by Team Yoast – 18.6 ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) 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: – ### WC Pages ### Shop base: ? Page not set Cart: #7119 - /cart/ Checkout: #7134 - /checkout/ My account: #31111 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Education Hub Pro Version: 2.1 Author URL: https://wenthemes.com/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Complete: 92 Oldest: 2022-03-23 17:05:23 -0500 Newest: 2022-04-22 17:30:48 -0500 Failed: 1 Oldest: 2022-03-10 03:32:15 -0600 Newest: 2022-03-10 03:32:15 -0600 ### Status report information ### Generated at: 2022-04-22 18:37:35 -05:00
Hi there,
Thanks for sending what was requested.
To make sure we’re on the same page, can you confirm when you try to enter the Webhook secret key (image in the link below) and click on “Save live keys” nothing happens or it won’t save, correct?
https://woocommerce.com/wp-content/uploads/2021/09/stripe-settings-webhook-secret.png
1. Can you test it out from a different device or use another internet connection?
2. Turn off caching on the WP Super Cache plugin settings page and clear the cache.
3. Share a screenshot of the Console tab (https://i.imgur.com/YYF8KOl.png) when you hit the “Save live keys” button.If you want to review the documentation related to webhooks you will find it here:
https://woocommerce.com/document/stripe/#webhooks
Cheers.
Yes, the problem is where your image is pointing.
1. I just have one internet connection, I can try on my laptop.
2. All plugins are disabled right now except woocommerce and stripe, but I reactivated WP Super Cache, deleted the cache and deactivated it again.
3. Screenshot contained secret key and has been removed by moderator- This reply was modified 2 years, 7 months ago by Yui. Reason: screenshot removed
Same experience on my laptop
Hello,
That is really odd.
To check this further please contact us at WooCommerce.com > My Account > Support (Be sure to create an account).
Please include a link to this forum thread, so that we can keep track of what’s already been done.
Thank you!
So it looks like it was due to outdated API keys. My previous keys had the prefix pk_ and sk_ but below the input on woocommerce, it states that it will only save keys that have the prefix pk_live_ and sk_live_. So I rolled my old key and got a new one with the proper prefix. It finally saved and we’re back in business. Thanks!
Glad to hear that,
If you have any further questions, I recommend creating a new thread.
Best ??
- The topic ‘Woocommerce/Stripe keys won’t save’ is closed to new replies.