-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subscriptions support to Bacs #3987
Conversation
dd423aa
to
fefa53c
Compare
fefa53c
to
8d63e1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes are looking good. However, I left a few comments that we may want to address before proceeding with a merge.
Also, we discussed testing compatibility with coupons and how that may affect the Bacs
payment method. Will that be addressed here?
includes/payment-methods/class-wc-stripe-upe-payment-method-bacs-debit.php
Show resolved
Hide resolved
includes/payment-methods/class-wc-stripe-upe-payment-method-bacs-debit.php
Show resolved
Hide resolved
@lovo-h Since the changes here are somewhat related, I’d say yes. I’ll double-check tomorrow to ensure coupons are working as expected. |
@lovo-h, regarding coupons, I just verified that it’s actually unrelated to Bacs. When a coupon that discounts 100% of the total amount is applied, the payment methods are removed from the checkout form. So, it works without any issues. ![]() And the payment methods are restored after the coupon is removed ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
Thanks for clarifying the £0.30
minimum charge in the comments.
The code looks good and tests mostly well. However, I am setting the PR's status to Request changes because for the Blocks Checkout / simple subscription with free trial, there was a difference between the behavior in the shortcode checkout
and the blocks checkout
. Do you know if this was expected?
Testing Instructions
Install the WooCommerce Subscriptions
and test checking out using the following subscription variations.
Shortcode Checkout
- Simple subscription.
- 🟢 Virtual product.
- 🟢 Physical product.
- Variable subscription.
- 🟢 Virtual products.
- 🟢 Physical products.
- 🟢 Sign-up Fee.
- 🟢 Free trial with sign-up fee.
- 🟢 Simple subscription with free trial. Hides the
Bacs
PM as intended (see image below).
Blocks Checkout
@lovo-h, I can’t reproduce the issue you mentioned with simple subscriptions with a free trial. Have you pulled the latest changes? I’m going to need more information on this. A screenshot of the checkout form would be very helpful. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@asumaran, after resetting my environment, I was not able to reproduce the issue in the blocks checkout
. Everything else looks good 👍
Test Instructions
Blocks Checkout
- 🟢 Simple subscription with free trial. Hides the
Bacs
PM as intended (see image below).
Closes #3798
Changes proposed in this Pull Request:
The changes here are quite simple. The most important one is enabling Bacs support for subscriptions. By default, Bacs should work well for the subscription cases listed below, except for subscriptions with a free trial. For now, the Bacs payment method is being disabled for subscriptions with a free trial as it will be addressed separately. More info here.
Testing instructions
Important
First, make sure that the business in your Stripe account is located in the UK (link) and that your default currency is GBP (link). Otherwise you won't be able to see Bacs as a payment option.
Important
Update the store country to the UK and set the currency to GBP in the WooCommerce settings.
Important
Also, make sure the Bacs feature is enabled. You can use the following to do that:
wp option update _wcstripe_feature_lpm_bacs 'yes'
Install the WooCommerce Subscriptions and test checking out using following subscription variatons.
It would be nice to test with shortcode checkout and the checkout block.
Changelog entry
Changelog Entry Comment
Comment
Post merge