Skip to content
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

Fixing subscriptions with split UPE attempt #5530

Draft
wants to merge 120 commits into
base: develop
Choose a base branch
from

Conversation

FangedParakeet
Copy link
Contributor

WIP

Changes proposed in this Pull Request

Maybe fixes some subscriptions issues with the split UPE enabled.

Testing instructions


  • Run npm run changelog to add a changelog file, choose patch to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.
  • Covered with tests (or have a good reason not to test in description ☝️)
  • Tested on mobile (or does not apply)

Post merge

FangedParakeet and others added 30 commits March 10, 2022 18:14
It now takes a paymentMethodType parameter to determine which
payment method to check against. Otherwise, it will always
check the credit card's one.
…4427)

* Register only reusable payment methods when adding a payment method

* Changelog entry

* Remove unnecessary UPE mount

* Get selected gateway on Add Payment Method page

* Add comment regarding payment method selection.
* Added more payment method constants

* Fix test_payment_fields_outputs_fields tests

* Fix 2 test_update_payment_intent_* tests

* Fix 2 more tests

Fix test_update_payment_intent_with_payment_country and test_create_payment_intent_uses_order_amount_if_order.

* Fix all test_create_payment_intent_* tests

* Fix test_create_setup_intent_* tests

* Fix test_process_payment_* tests

* Fix all test_process_subscription_* tests

* Fix all test_process_redirect_payment_* tests

* Fix test_correct_payment_method_title_for_order

* Fix test_create_token_from_setup_intent_adds_token test

* Remove maybe_filter_gateway_title

Check #3968 (comment)

* Remove the use of woocommerce_gateway_title filter

* Fix link and card tests

* phpcs fixes

* Fix WC_REST_Payments_Settings_Controller_Test tests

* Fix psalm errors

* Refactor the UPE gateways setup method into set_up()

* Clean up import no longer used
Timur Karimov and others added 27 commits January 20, 2023 15:07
…hould be displayed for a UPE payment method. (#5494)

* Improve the decision making if a payment method should show the save option

* Include the test to cover the scenario where SEPA has saved cards disabled

* Fix the property supply and improve the if statement for reusable methods

* Simplify UPE component rerendering by using the existing flag

* Fix method description

---------

Co-authored-by: Timur Karimov <timurkarimov@timurs-macbook-pro.home>
@FangedParakeet FangedParakeet changed the base branch from develop to 5353/add-split-upe-feature-flag February 8, 2023 17:05
Base automatically changed from 5353/add-split-upe-feature-flag to poc/upe-instances-multiplied February 13, 2023 19:02
Base automatically changed from poc/upe-instances-multiplied to develop February 14, 2023 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants