-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #11924 [Api] Change payment method after checkout (AdamKasp)
This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Related tickets | part of #11250 | License | MIT <!-- - Bug fixes must be submitted against the 1.7 branch (the lowest possible) - Features and deprecations must be submitted against the master branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html --> Commits ------- 3788aae [Api] Change payment method after checkout 41582c7 [API][Payments] change endpoints and add missing specs e94b15e Refactor change payment methods behats 33eeea3 [API][Payment Method] Refactor choose payment method handler 0be4481 Refactor orderItemMethodExtension
- Loading branch information
Showing
17 changed files
with
355 additions
and
98 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...heckout/paying_for_order/changing_offline_payment_method_after_order_confirmation.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@paying_for_order | ||
Feature: Changing the offline payment method after order confirmation | ||
In order to try different payment methods | ||
As a Guest | ||
I want to be able to change the method after order confirmation | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store allows paying "Offline" | ||
And the store allows paying "Cash on delivery" | ||
And the store has a product "PHP T-Shirt" priced at "$19.99" | ||
And the store ships everywhere for free | ||
|
||
@ui | ||
Scenario: Retrying the payment with different offline payment | ||
Given I added product "PHP T-Shirt" to the cart | ||
When I complete addressing step with email "[email protected]" and "United States" based billing address | ||
And I have proceeded selecting "Free" shipping method | ||
And I have proceeded selecting "Cash on delivery" payment method | ||
And I have confirmed order | ||
And I retry the payment with "Offline" payment method | ||
Then I should have chosen "Offline" payment method | ||
|
||
@ui | ||
Scenario: Retrying the payment with different offline payment works correctly together with inventory | ||
Given there is 1 unit of product "PHP T-Shirt" available in the inventory | ||
And this product is tracked by the inventory | ||
When I added product "PHP T-Shirt" to the cart | ||
And I complete addressing step with email "[email protected]" and "United States" based billing address | ||
And I have proceeded selecting "Free" shipping method | ||
And I have proceeded selecting "Cash on delivery" payment method | ||
And I have confirmed order | ||
And I retry the payment with "Offline" payment method | ||
Then I should have chosen "Offline" payment method | ||
|
||
@api | ||
Scenario: Changing chosen offline payment method to another offline payment method after checkout | ||
Given I added product "PHP T-Shirt" to the cart | ||
When I complete addressing step with email "[email protected]" and "United States" based billing address | ||
And I proceed selecting "Free" shipping method | ||
And I proceed selecting "Cash on delivery" payment method | ||
And I confirm my order | ||
And I change payment method to "Offline" after checkout | ||
Then I should have chosen "Offline" payment method |
34 changes: 0 additions & 34 deletions
34
features/checkout/paying_for_order/changing_payment_method_after_order_confirmation.feature
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.