Woocommerce Stripe Gateway “Use a new Payment Method”
-
In my Woocommerce store, customers are promoted to select this radio button (in this picture) to “Use a new payment method.” This box must be checked or the payment is declined with no information as to why.
This button only exists because if the user is logged in and saved a card from before, there would be an option to “Use a Saved Card”, but for new users, there’s just this check box.
It’s a very confusing because users are already entering new payment info, the box should theoretically auto check (or at least not fail the transaction) when the user is actually inputting new payment info.
I know it’s just an HTML attribute, but I don’t know how or where to insert it.
I know that I’ve already lost a few orders from this. Can anyone help make this box checked by default?
-
This topic was modified 6 months, 4 weeks ago by
brettanderson2.
-
This topic was modified 6 months, 4 weeks ago by
brettanderson2.
The page I need help with: [log in to see the link]
-
This topic was modified 6 months, 4 weeks ago by
-
Unfortunately, there isn’t a built-in option to make this box checked by default. However, you can achieve this by using a custom code.
You can also disable the “Enable payments via saved cards” option in WooCommerce > Settings > Payments > Stripe > Settings.
Please note that writing or providing custom code is not within the scope of our support policy. If you are still having problems, we recommend asking development questions on the #developers channel of the WooCommerce Community Slack. Many of our developers hang out there and will be able to offer insights into your question. You can also seek help from the following:
- A local web developer
- Codeable.io
- WooExperts
I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.
thanks Shaheem, but I did disable “Enable payments via saved cards” and the radio button still appears.
Hey, @brettanderson2!
I tried replicating the issue on my website, but I was not able to do it. On my website, the option does not show for new customers.
Can you please run a conflict test to see if something external is interfering with this?
To test, you’ll first want to change the theme on your site to Storefront, then check to see if the issue is still present. If that resolves the issue, you’ll want to get in touch with your theme’s developer and see if they have an update or fix for you.
If changing the theme doesn’t help, you’ll want to deactivate all plugins except for WooCommerce (please make sure Woo is the only plugin active and that you have no custom code on the website) and take a look. If that fixes the problem, re-enable the other plugins one by one (gradually), checking after each, to see where the issue is coming from.
— Be sure you have a good backup in place of your full site and database. You can ask your host for backup functionality or you can consider using a service like Jetpack. If something goes wrong, you will be able to restore it.
— It is important to consider as well a staging functionality in case you would not like to touch your production site (you can ask your host if they offer this service), or you can use WP Staging for quickly spinning up a new test site.
You can find more about this in this guide.
Please let us know about your findings.
If the issue persists, please share the following:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Have a wonderful day!
EDIT: I just realized what you’re asking. I thought you were on my site. Apologies, I’ll run the tests and get back to you!
Thanks for the comment, but the problem exists on every device I’ve tried. Phones and computers that have never been to the site. Are you sure that the button is not displaying for you?
Just to be sure, I had a friend just go to the website and the button is there for them.
-
This reply was modified 6 months, 3 weeks ago by
brettanderson2.
Hey, @brettanderson2!
I just realized what you’re asking. I thought you were on my site. Apologies, I’ll run the tests and get back to you!
No worries! And just to confirm, I was able to see the issue on your website ??
And all right, once you get back to us we will continue to investigate it with you. We are here to help ??
Have a wonderful day!
I ran some tests in a staging environment with different themes, included my current one, twenty twenty four, and storefront, and storefront was the only one where the add new payment method did not display even though I disabled saved payment methods.
I don’t understand why my theme, or twenty twenty four would prompt the display of this input even though the setting is disabled.
I don’t even mind it being there, I just want to have it checked it by default, even if I was using storefront. It’s very confusing to customers and adds an unnecessary action for customers.
-
This reply was modified 6 months, 3 weeks ago by
brettanderson2.
Hey, @brettanderson2!
Thanks for testing!
I tested it now with the Twenty Twenty-Four theme, and my website still did not show this option.
To confirm, when you tested with TT4, only Woo was active, right?
Can you please share the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support?
Please copy it while having TT4 as the theme and only Woo as the active plugin, so we can check your settings and make sure we are testing with the exact same ones.The reason I’m asking is to see if having the exact same settings we are able to replicate the issue or not ??
Looking forward to your reply.
Have a wonderful day!
Well, I think I’ve narrowed it down to Elementor being the culprit.
With nothing but TT4, Woo, Woocommerce Stripe Gateway, and Elementor, the problem happens. But not on the initial load, only after refresh. Disabling Elementor removes the error. Why would Elementor conflict?
Here’s the report (with Elementor activated):
WordPress Environment<br><br>WordPress address (URL): https://paddlehand1stg.wpenginepowered.com<br>Site address (URL): https://paddlehand1stg.wpenginepowered.com<br>WC Version: 9.1.4<br>Legacy REST API Package Version: The Legacy REST API plugin is not installed on this site.<br>Action Scheduler Version: ? 3.7.4<br>Log Directory Writable: ?<br>WP Version: 6.6.1<br>WP Multisite: –<br>WP Memory Limit: 512 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_US<br>External object cache: ? Server Environment<br><br>Server Info: nginx<br>PHP Version: 8.2.19<br>PHP Post Max Size: 100 MB<br>PHP Time Limit: 43300<br>PHP Max Input Vars: 10000<br>cURL Version: 7.81.0<br>OpenSSL/3.0.2<br><br>SUHOSIN Installed: –<br>MySQL Version: 8.0.36-28<br>Max Upload Size: 50 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.1.4<br>WC Database Prefix: wp_<br>Total Database Size: 16.43MB<br>Database Data Size: 11.74MB<br>Database Index Size: 4.69MB<br>wp_woocommerce_sessions: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.48MB + Index: 0.70MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 0.36MB + Index: 0.31MB + Engine InnoDB<br>wp_cartflows_ca_cart_abandonment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_cartflows_visits: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_cartflows_visits_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB<br>wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB<br>wp_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB<br>wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_options: Data: 4.52MB + Index: 0.08MB + Engine InnoDB<br>wp_postmeta: Data: 2.52MB + Index: 0.78MB + Engine InnoDB<br>wp_posts: Data: 1.52MB + Index: 0.14MB + Engine InnoDB<br>wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_revslider_sliders: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_sliders7: Data: 0.03MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_slides: Data: 0.14MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_slides7: Data: 0.11MB + Index: 0.02MB + Engine InnoDB<br>wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_usermeta: Data: 0.13MB + Index: 0.03MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.08MB + Index: 0.16MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 0.06MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts<br><br>attachment: 72<br>cartflows_flow: 5<br>cartflows_step: 11<br>custom_css: 1<br>customize_changeset: 82<br>elementor_library: 19<br>goal_brand: 1<br>goal_footer: 5<br>goal_header: 5<br>goal_megamenu: 3<br>lookbook: 3<br>mc4wp-form: 2<br>nav_menu_item: 81<br>oembed_cache: 1<br>page: 29<br>post: 9<br>product: 31<br>product_variation: 216<br>revision: 6<br>shop_order: 1<br>shop_order_placehold: 21<br>wp_font_face: 33<br>wp_font_family: 12<br>wp_navigation: 9<br>wp_template: 4<br>wpcf7_contact_form: 2<br>wpcode: 3 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (3)<br><br>Elementor: by Elementor.com – 3.23.4<br>WooCommerce Stripe Gateway: by WooCommerce – 8.6.1<br>WooCommerce: by Automattic – 9.1.4 Inactive Plugins (27)<br><br>Ajax add to cart for WooCommerce: by QuadLayers – 2.3.9<br>Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.3<br>Child Theme Configurator: by Lilaea Media – 2.6.6<br>CMB2: by CMB2 team – 2.11.0<br>Contact Form 7: by Takayuki Miyoshi – 5.9.8<br>Duplicate Page: by mndpsingh287 – 4.5.4<br>Elementor Pro: by Elementor.com – 3.23.3<br>Flexible Shipping: by Octolize – 4.25.5<br>Flexible Shipping PRO: by Octolize – 2.18.4<br>Goal Framework: by Team GoalTheme – 2.1<br>Goal Lookbook: by GoalThemes – 1.0.0<br>Goal Salespopup: by GoalThemes – 1.0.0<br>Jetpack: by Automattic – 13.7<br>Mailchimp for WooCommerce: by Mailchimp – 4.2.1<br>MC4WP: Mailchimp for WordPress: by ibericode – 4.9.14<br>Printful Integration for WooCommerce: by Printful – 2.2.10<br>Product Video Gallery for Woocommerce: by NikHiL Gadhiya – 1.4.2.8<br>Slider Revolution: by ThemePunch – 6.7.11<br>SVG Support: by Benbodhi – 2.5.7<br>Thank You Page for WooCommerce: by Nitin Prakash – 4.1.5<br>TikTok: by TikTok – 1.2.8<br>Variation Swatches for WooCommerce: by AovUp – 2.2.2<br>WooCommerce - ShipStation Integration: by WooCommerce – 4.4.4<br>WooCommerce Shipping & Tax: by WooCommerce – 2.7.0<br>WooPayments: by WooCommerce – 8.0.2<br>WPCode Lite: by WPCode – 2.2.0<br>WP Mail SMTP: by WP Mail SMTP – 4.1.0 Dropin Plugins ()<br><br>advanced-cache.php: advanced-cache.php<br>object-cache.php: Memcached Redux Must Use Plugins (5)<br><br>Force Strong Passwords - WPE Edition: by Jason Cosper – 1.8.0<br>WP Engine Cache Plugin: by WP Engine – 1.3.1<br>WP Engine Seamless Login Plugin: by WP Engine – 1.6.1<br>WP Engine Security Auditor: by wpengine – 1.1.1<br>WP Engine System: by WP Engine – 5.0.1 Settings<br><br>API Enabled: –<br>Force SSL: –<br>Currency: USD ($)<br>Currency Position: left<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: ?<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 271 KB WC Pages<br><br>Shop base: #12804 - /shop/<br>Cart: #11 - /cart-template/ - Contains the woocommerce/cart block<br>Checkout: #9289 - /checkout/ - Contains the [woocommerce_checkout] shortcode<br>My account: #12805 - /my-account/<br>Terms and conditions: ? Page not set Theme<br><br>Name: Twenty Twenty-Four<br>Version: 1.2<br>Author URL: https://www.remarpro.com<br>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<br>WooCommerce Support: ? Not declared Templates<br><br>Overrides: /nas/content/live/paddlehand1stg/wp-content/plugins/woocommerce/templates/block-notices/error.php<br>/nas/content/live/paddlehand1stg/wp-content/plugins/woocommerce/templates/block-notices/notice.php<br>/nas/content/live/paddlehand1stg/wp-content/plugins/woocommerce/templates/block-notices/success.php Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: experimental-blocks<br>minified-js<br>pattern-toolkit-full-composability<br>product-pre-publish-modal<br>printful<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br><br>Daily Cron: ? Next scheduled: 2024-08-14 17:49:22 +00:00<br>Options: ?<br>Notes: 71<br>Onboarding: completed Action Scheduler<br><br>Complete: 1,505<br>Oldest: 2024-08-02 17:50:25 +0000<br>Newest: 2024-08-13 20:35:13 +0000<br><br>Failed: 5<br>Oldest: 2024-08-02 17:54:56 +0000<br>Newest: 2024-08-13 00:47:22 +0000<br><br>Pending: 5<br>Oldest: 2024-08-14 19:07:39 +0000<br>Newest: 2024-08-31 00:00:00 +0000 Status report information<br><br>Generated at: 2024-08-13 20:36:05 +00:00<br>
-
This reply was modified 6 months, 3 weeks ago by
brettanderson2.
Hi @brettanderson2,
Glad to know you’ve already found the culprit to be Elementor,
In this case, I would recommend ensuring that Elementor is updated to their latest version. You might want to reach out to Elementor’s support, as they would have more insight into potential conflicts with their plugin.
I hope this helps.
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!
If you have further questions, please feel free to open a new topic.
Thanks!
- The topic ‘Woocommerce Stripe Gateway “Use a new Payment Method”’ is closed to new replies.