woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
228 stars 201 forks source link

SEPA checkout fails to render when Stripe credit card payment method is disabled #1404

Closed jrodger closed 6 months ago

jrodger commented 3 years ago

Describe the bug If the Stripe credit card payment method is disabled, but the SEPA payment method is enabled, then the SEPA checkout doesn't render due to the woocommerce_stripe JavaScript not being registered when the SEPA code tries to enqueue it.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings > Payments, disable "Stripe - Credit Card (Stripe)" and enable "Stripe SEPA Direct Debit - SEPA Direct Debit"
  2. Add a product to your basket and go to the checkout
  3. See that the field to enter your IBAN is missing

Expected behavior With just SEPA payments enabled I should be able to checkout with the SEPA payment method.

Screenshots

Environment (please complete the following information):

Additional context We may want to check whether other payment methods included in this plugin are also affected by the issue. It's the script registration not running here that seems to be causing the problem.

dougaitken commented 3 years ago

Can confirm.

Ref: 14718985-hc

dougaitken commented 3 years ago

Possibly related? https://github.com/woocommerce/woocommerce-gateway-stripe/issues/1751

wpniall commented 2 years ago

Reported in 4777973-zen. I can also confirm that with the new checkout experience (early access) feature enabled, it's not possible to display SEPA only, as the credit card option can't be turned off without turning off Stripe entirely at checkout.

As such, both options have to be enabled, which allows the credit card and SEPA options to display; the IBAN field works correctly too:

https://d.pr/i/a4bW1v Full Size: https://d.pr/i/a4bW1v

nuart73 commented 2 years ago

Verified today, the issue is still present.

jacoswan commented 2 years ago

Another in 5451901-zen, WC 6.7.0, Stripe 6.5.1

dougaitken commented 2 years ago

This only happens with the standard (old) payment methods, not UPE.

Still happening with Stripe 6.6.0.

I think this is related to whatever is causing #1575

My recommendation would be for merchants to enable UPE if they feel that is appropriate.

paulostp commented 2 years ago

Another report in 5540342-zd-woothemes. Site with WC 6.8.2 and Stripe 6.7.0.

SvenHerr commented 1 year ago

no workaround?

webiw commented 1 year ago

Same problem here, any solution?

orhanfernandes commented 1 year ago

6054042-zen. Site with WC 7.5.0 and WC Stripe 7.2.0.