API change
-
After changing the API, my credit card text field is gone. With error stating Failed to load resource: the server responded with a status of 400 (). Please help!
The page I need help with: [log in to see the link]
-
Hello there,
* To check this case much better, can you provide a screenshot of the error on your end?
Feel free to use https://snipboard.io to send screenshots.* 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”.?
Thanks, we’ll keep an eye on our inbox for your response.
### WordPress Environment ### WordPress address (URL): https://floramaison.com.sg Site address (URL): https://floramaison.com.sg WC Version: 6.2.1 REST API Version: ? 6.2.1 WC Blocks Version: ? 6.7.3 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.1.0 Log Directory Writable: ? WP Version: 5.9.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.51 (Debian) PHP Version: 7.4.27 PHP Post Max Size: 100 MB PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 7.64.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.4.20-MariaDB-1:10.4.20+maria~buster-log Max Upload Size: 100 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.2.1 WC Database Prefix: wpjy_ Total Database Size: 16.93MB Database Data Size: 15.18MB Database Index Size: 1.75MB wpjy_woocommerce_sessions: Data: 7.98MB + Index: 0.44MB + Engine MyISAM wpjy_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_actionscheduler_actions: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wpjy_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_actionscheduler_logs: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wpjy_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_bv_ip_store: Data: 0.14MB + Index: 0.16MB + Engine InnoDB wpjy_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_cli_cookie_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_cli_cookie_scan_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_cli_cookie_scan_cookies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_cli_cookie_scan_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_cli_scripts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_comments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_gdpr_cc_options: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_layerslider: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_layerslider_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_dynamic_segment_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_feature_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_mapping_to_external_entities: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletter_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletter_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletter_option_fields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_mailpoet_newsletter_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletter_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_newsletter_templates: Data: 1.06MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_scheduled_tasks: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wpjy_mailpoet_scheduled_task_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_segments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_mailpoet_sending_queues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_bounces: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_opens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_unsubscribes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_statistics_woocommerce_purchases: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_stats_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_subscribers: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_mailpoet_subscriber_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_subscriber_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_user_agents: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_mailpoet_user_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_options: Data: 3.96MB + Index: 0.07MB + Engine MyISAM wpjy_postmeta: Data: 0.59MB + Index: 0.14MB + Engine MyISAM wpjy_posts: Data: 0.43MB + Index: 0.05MB + Engine MyISAM wpjy_revslider_css: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wpjy_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_slides: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpjy_sbi_instagram_feed_locator: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_sbi_instagram_posts: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wpjy_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_usermeta: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wpjy_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpjy_yoast_indexable: Data: 0.06MB + Index: 0.04MB + Engine MyISAM wpjy_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wpjy_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_categories_to_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_headers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_products_to_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_types: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wpjy_za_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_bv_ip_store: Data: 0.14MB + Index: 0.16MB + Engine InnoDB wp_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 0.13MB + Index: 0.03MB + Engine InnoDB wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ### Post Type Counts ### attachment: 93 cmsmasters_like: 129 content_template: 1 cookielawinfo: 6 custom_css: 2 customize_changeset: 52 mailpoet_page: 1 nav_menu_item: 15 oembed_cache: 3 page: 11 post: 3 product: 23 project: 14 revision: 51 wcpa_pt_forms: 17 wp_global_styles: 1 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (4) ### Meks Quick Plugin Disabler: by Meks – 1.0 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.8 WooCommerce Stripe Gateway: by WooCommerce – 6.2.0 WooCommerce: by Automattic – 6.2.1 ### Inactive Plugins (22) ### Breeze: by Cloudways – 2.0.1 Classic Editor: by WordPress Contributors – 1.6.2 Classic Widgets: by WordPress Contributors – 0.2 CMSMasters Content Composer: by cmsmasters – 2.4.6 CMSMasters Custom Fonts: by cmsmasters – 1.0.1 Code Snippets: by Code Snippets Pro – 2.14.3 Contact Form 7: by Takayuki Miyoshi – 5.5.3 Envato Market: by Envato – 2.0.6 Flexible Checkout Fields: by WP Desk – 3.2.1 Google Listings and Ads: by WooCommerce – 1.9.0 Kadence WooCommerce Email Designer: by Kadence WP – 1.4.10 LayerSlider WP: by Kreatura Media – 6.11.8 MalCare Security - Free Malware Scanner, Protection & Security for WordPress: by MalCare Security – 4.67 Slider Revolution: by ThemePunch – 6.4.11 Smash Balloon Instagram Feed: by Smash Balloon – 2.9.9 weLaunch Framework: by weLaunch.io – 1.0.10 Woocommerce Custom Product Addons: by Acowebs – 4.1.3 WooCommerce Delivery: by weLaunch – 1.1.24 Woocommerce Image Zoom PRO: by wpbean – 2.1.6.2 WP File Manager: by mndpsingh287 – 7.1.4 WP Mail SMTP: by WPForms – 3.3.0 Yoast SEO: by Team Yoast – 17.9 ### Settings ### API Enabled: – Force SSL: – Currency: SGD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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: #15 - /shop/ Cart: #16 - /cart/ Checkout: #17 - /checkout/ My account: #18 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Flower Shop Version: 1.1.3 Author URL: https://cmsmasters.net/ 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: flower-shop/woocommerce/archive-product.php flower-shop/woocommerce/content-product.php flower-shop/woocommerce/content-single-product.php flower-shop/woocommerce/content-widget-product.php flower-shop/woocommerce/global/sidebar.php flower-shop/woocommerce/global/wrapper-end.php flower-shop/woocommerce/global/wrapper-start.php flower-shop/woocommerce/loop/loop-start.php flower-shop/woocommerce/loop/pagination.php flower-shop/woocommerce/product-searchform.php flower-shop/woocommerce/single-product/meta.php flower-shop/woocommerce/single-product/product-image.php flower-shop/woocommerce/single-product/product-thumbnails.php flower-shop/woocommerce/single-product/review.php flower-shop/woocommerce/single-product/tabs/tabs.php flower-shop/woocommerce/single-product-reviews.php flower-shop/woocommerce/single-product.php ### Action Scheduler ### Complete: 106 Oldest: 2022-03-01 09:44:22 +0800 Newest: 2022-03-08 18:39:13 +0800 Pending: 3 Oldest: 2022-03-09 17:55:10 +0800 Newest: 2022-03-14 15:28:51 +0800 ### Status report information ### Generated at: 2022-03-08 18:58:24 +08:00
Hi @floramaison
Thanks for sharing these.
As you may have noticed, the error message message reads:
The message port closed before a response was received.
Per you SSR the PHP Time Limit is 300. This is the amount of time in seconds that your site spends on a single operation before timing out (to avoid server lockups).
PHP Time Limit: 300
Therefore, increasing this time limit may help.
You can read more on this here:
https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/I hope this helps!
so may I know where should I go to increase the time limit? So sorry for the question as Im new to this.
Hi @floramaison
Never mind. You may want to get in touch with your hosting provider for the time limit enhancement.
Before reaching out to them, you could take a look into your cPanel for such a setting. If you’re unsure, it is safest to have your host take care of this.
Thanks
but it seems that it is failing after I change the API secret key then this happened. Meaning that, before changing the API secret key, it was okay and the text fields for the credit cards were appearing. I doubt it may be with the time limit?
The error that prompt up when I open the inspect is this
{ "error": { "code": "payment_intent_invalid_parameter", "doc_url": "https://stripe.com/docs/error-codes/payment-intent-invalid-parameter", "message": "The client_secret provided does not match the client_secret associated with the PaymentIntent.", "param": "client_secret", "type": "invalid_request_error" } }
However in the plugin, after I have change the API key, it’s all in green tick and that when I test connection, all is good as well. Is there any solution to this?
Hi @floramaison,
Thanks for sharing that error.
Have you attempted finding a possible conflict with your theme or one of your active plugins? If not it’s worth testing with just WooCommerce and WooCommerce Stripe, along with the default Storefront theme to see what happens.
You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.
Also, can you try using the tools to clear transients and cache in WordPress Dashboard > WooCommerce > Status > Tools?
Let us know how it goes.
Yes have tested it with all other plug-ins deactivated and clear transients and caches in tools. Nope it’s still not working. The Credit card text field is still not appearing. With the same error code. Just wanted to give a brief update. I have contacted the Stripe Support team, and rerolling both the API and the secret key have allowed me to see the credit card text fields again. Thank you!
-
This reply was modified 3 years ago by
floramaison.
-
This reply was modified 3 years ago by
floramaison.
Hello,
I have contacted the Stripe Support team, and rerolling both the API and the secret key have allowed me to see the credit card text fields again.
That sounds like good news.
If you have any further questions, I recommend creating a new thread, since this one is tagged as resolved.
Best.
-
This reply was modified 3 years ago by
- The topic ‘API change’ is closed to new replies.