Card payment fails with Flexible checkout fields plugin
-
Hi,
I use WooCommerce plugin and Flexible Checkout Fields plugin (the latter one to disable 2 checkout fields: company name and phone number). The card payments don’t work and the error comes up ‘You specified “never” for fields.billing_details.phone when creating the payment Element, but did not pass confirmParams.payment_method_data.billing_details.phone when calling stripe.confirmPayment or stripe.confirmSetup. If you opt out of collecting data via the payment Element using the fields option, the data must be passed at confirm-time.’
The ‘phone’ field doesn’t show on the checkout page. It used to work fine before but after installing /updating plugins it stopped working. Paypal payment option works fine.
Please help!
Thank you.
LenaThe page I need help with: [log in to see the link]
-
Can please someone get back to me about this? This is quite urgent as I am unable to process people’s payments.
Thank you!
LenaHi @mindfulsteps,
What happens if you disable the Flexible Checkout Field plugin and then use the built-in options to hide the company and phone number fields? You can find them in Appearance > Customize > WooCommerce > Checkout.
If that still doesn’t work, try setting them to “optional” and see if you still have trouble. Let us know what you find out.
Cheers
Hi,
I have disabled the plugin as you suggested and tried both options: make 2 fields hidden through Appearance menu and then optional. They do show as instructed but when try to pay, the same error message comes up in both cases. It did used to work with Flexible checkout fields plugin before. I don’t know what happened. The paypal option does work but I want the card payment to work too. Please let me know.
Thanks
LenaHi there,
I see that the error message mentions Stripe and you mentioned that it works as expected with PayPal, so I’m confused on which plugin that is bringing the issue and if PayPal Checkout is actually working as expected.
Can you confirm that?
Also, could you share your current System Status Report? You can get it by navigating to WP Admin > WooCommerce > Status. Once there, click on the “Get system report” button and then copy it by clicking on the “Copy for support” button.
Hi,
Lena Henderson Sun 22/08/2021 13:15 The issue is probably not linked to Flexible checkout plugin because it is now disabled. It might be linked to Woocommerce. I am not sure why it mentions stripe: it was showing that message even when stripe wasn't set up. I have set it up now and it still hasn't changed. About paypal, I tried to test the payment process through it again and this time it didn't work. It says: the order is on hold, even though there was a notification that the payment arrived to paypal.
I tried to pay with the card again and currently the Flexible checkout plugin is disabled. The fields ‘company name’ and ‘phone’ are enabled as optional, as suggested. This is the error message:
You passed an empty string for ‘payment_method_data[billing_details][phone]’. We assume empty values are an attempt to unset a parameter; however ‘payment_method_data[billing_details][phone]’ cannot be unset. You should remove ‘payment_method_data[billing_details][phone]’ from your request or supply a non-empty value.`
System report:
### WordPress Environment ### WordPress address (URL): https://themindfulsteps.co.uk Site address (URL): https://themindfulsteps.co.uk WC Version: 5.6.0 REST API Version: ? 5.6.0 WC Blocks Version: ? 5.5.1 Action Scheduler Version: ? 3.2.1 WC Admin Version: ? 2.5.1 Log Directory Writable: ? WP Version: 5.8 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: ? ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.22 PHP Post Max Size: 1 GB PHP Time Limit: 1500 PHP Max Input Vars: 2000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.30-MariaDB-log-cll-lve Max Upload Size: 1 GB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.6.0 WC Database Prefix: wppt_ Total Database Size: 87.05MB Database Data Size: 85.35MB Database Index Size: 1.70MB wppt_woocommerce_sessions: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_woocommerce_order_items: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_woocommerce_order_itemmeta: Data: 0.11MB + Index: 0.02MB + Engine MyISAM wppt_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_actionscheduler_actions: Data: 0.51MB + Index: 0.17MB + Engine MyISAM wppt_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_actionscheduler_logs: Data: 0.26MB + Index: 0.19MB + Engine MyISAM wppt_cartbounty: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_ce4wp_abandoned_checkout: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_cmplz_cookiebanners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_cmplz_cookies: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wppt_cmplz_services: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_comments: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wppt_gla_budget_recommendations: Data: 0.11MB + Index: 0.12MB + Engine MyISAM wppt_gla_merchant_issues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_gla_shipping_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_gla_shipping_times: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_content_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_core_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_languages: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_icl_languages_translations: Data: 0.11MB + Index: 0.11MB + Engine MyISAM wppt_icl_locale_map: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_message_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_mo_files_domains: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wppt_icl_node: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_reminders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_strings: Data: 0.08MB + Index: 0.06MB + Engine MyISAM wppt_icl_string_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_pages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_positions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_translations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_string_urls: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_translate: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_translate_job: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_translations: Data: 0.03MB + Index: 0.06MB + Engine MyISAM wppt_icl_translation_batches: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_icl_translation_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppt_icl_translation_status: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailerlite_checkouts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailerlite_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_custom_fields: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_dynamic_segment_filters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_feature_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_mapping_to_external_entities: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletter_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletter_option: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletter_option_fields: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_mailpoet_newsletter_posts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletter_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_newsletter_templates: Data: 1.04MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_scheduled_tasks: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_mailpoet_scheduled_task_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_segments: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_mailpoet_sending_queues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_newsletters: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_opens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_unsubscribes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_statistics_woocommerce_purchases: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_stats_notifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_subscribers: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_mailpoet_subscriber_custom_field: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_subscriber_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_subscriber_segment: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mailpoet_user_flags: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mail_bank: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mail_bank_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_mail_bank_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_ml_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_options: Data: 3.41MB + Index: 0.20MB + Engine MyISAM wppt_postmeta: Data: 7.03MB + Index: 0.20MB + Engine MyISAM wppt_posts: Data: 72.48MB + Index: 0.24MB + Engine MyISAM wppt_prli_clicks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_prli_links: Data: 0.00MB + Index: 0.02MB + Engine MyISAM wppt_prli_link_metas: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_rank_math_analytics_gsc: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_rank_math_analytics_objects: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wppt_rank_math_internal_links: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wppt_rank_math_internal_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_term_relationships: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_term_taxonomy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_toolset_associations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_toolset_connected_elements: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_toolset_post_guid_id: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_toolset_relationships: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_toolset_type_sets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_usermeta: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wppt_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wcepp_messages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wppt_wc_admin_note_actions: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wppt_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_order_product_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wppt_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_yoast_indexable: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wppt_yoast_primary_term: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wppt_yoast_seo_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 286 customize_changeset: 11 custom_css: 3 et_header_layout: 1 et_pb_layout: 22 mailpoet_page: 1 nav_menu_item: 17 oembed_cache: 72 page: 24 pagelayer-template: 5 polylang_mo: 1 post: 3 pretty-link: 1 product: 2 revision: 2242 shop_coupon: 6 shop_order: 48 shop_order_refund: 2 viwec_template: 14 woocustomemails: 1 wp-types-group: 1 yaymail_template: 28 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (25) ### WPML Multilingual CMS: by OnTheGoSystems – 4.4.11 Autocomplete WooCommerce Orders: by QuadLayers – 1.4.0 Classic Editor: by WordPress Contributors – 1.6.2 Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 5.2.6 PayPal Express Checkout Payment Gateway for WooCommerce ( Basic ): by WebToffee – 1.6.0 Jetpack: by Automattic – 10.0 Pretty Links: by Pretty Links – 3.2.3 Rank Math SEO: by Rank Math – 1.0.70 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.60 Use Any Font: by Dnesscarkey – 6.1.4 W3 Total Cache: by BoldGrid – 2.1.6 WooCommerce - MailerLite: by MailerLite – 1.5.6 CartBounty - Save and recover abandoned carts for WooCommerce: by Streamline.lv – 7.0.5 WooCommerce Stripe Gateway: by WooCommerce – 5.4.0 WooCommerce Multilingual: by OnTheGoSystems – 4.11.7 WooCommerce Payments: by Automattic – 2.8.4 WooCommerce PayPal Payments: by WooCommerce – 1.5.1 WooCommerce Polylang Integration: by Darko Gjorgjijoski – 1.2.2 WooCommerce Shipping & Tax: by WooCommerce – 1.25.18 WooCommerce: by Automattic – 5.6.0 WP Mail SMTP: by WPForms – 3.0.3 WPML Media: by OnTheGoSystems – 2.6.5 WPML String Translation: by OnTheGoSystems – 3.1.9 WPML Translation Management: by OnTheGoSystems – 2.10.7 YayMail - WooCommerce Email Customizer: by YayCommerce – 2.1.9 ### Inactive Plugins (1) ### Flexible Checkout Fields: by WP Desk – 3.0.11 ### Dropin Plugins (3) ### advanced-cache.php: advanced-cache.php db.php: db.php object-cache.php: object-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) 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: #2555 - /shop/ Cart: #5071 - /cart-2/ Checkout: #5073 - /checkout-2/ My account: #5075 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Divi - The Mindful Steps Version: (update to version 0 is available) Author URL: https://www.theheartsdesign.com/ Child Theme: ? Parent Theme Name: Divi Parent Theme Version: 4.10.3 Parent Theme Author URL: https://www.elegantthemes.com WooCommerce Support: ? ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: GB PayPal card processing available in country: Yes Pay Later messaging available in country: Yes Vault enabled: No ### Action Scheduler ### Complete: 1,599 Oldest: 2021-08-19 11:19:57 +0000 Newest: 2021-08-22 19:55:28 +0000 Pending: 1 Oldest: 2021-08-28 02:31:37 +0000 Newest: 2021-08-28 02:31:37 +0000 ### Status report information ### Generated at: 2021-08-22 20:13:37 +00:00
Hi there,
This error seems to be coming from WooCommerce Payments. Here’s the report about the error when phone field is optional: https://github.com/Automattic/woocommerce-payments/issues/2743.
I see that both Stripe and WooCommerce Payments are enabled at your Checkout page. Both of these gateways are powered by Stripe, so you don’t need both. I’d recommend disabling WooCommerce Payments for now until the issue is fixed.
If you want to use WooCommerce Payments, I’d recommend keeping an eye out for updates in the bug report above.
We haven’t heard back from you in a while, so I’m going to mark this as resolved – I trust that what Thu said before points you in the right direction, but if you have more questions, let us know.
- The topic ‘Card payment fails with Flexible checkout fields plugin’ is closed to new replies.