-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
1,977 additions
and
256 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@managing_orders | ||
Feature: Canceling an authorized order with Stripe Checkout Session | ||
Feature: Canceling an authorized order with Stripe Checkout | ||
In order to cancel an order already authorized | ||
As an Administrator | ||
I want to be able to cancel a Stripe authorized order | ||
|
@@ -12,13 +12,13 @@ Feature: Canceling an authorized order with Stripe Checkout Session | |
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is already authorized as "pi_123" Stripe payment intent | ||
And this order is not yet paid as "cs_test_123" Stripe Checkout Session | ||
And I am logged in as an administrator | ||
|
||
@ui @api | ||
Scenario: Cancelling the order with an authorized payment | ||
Given I am viewing the summary of this order | ||
And I am prepared to cancel this order | ||
And I am prepared to expire this order checkout session | ||
When I cancel this order | ||
Then I should be notified that it has been successfully updated | ||
And it should have payment with state cancelled | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@managing_orders | ||
Feature: Canceling an order with Stripe Checkout Session | ||
Feature: Canceling an order with Stripe Checkout | ||
In order to cancel a not paid order | ||
As an Administrator | ||
I want to be able to cancel a Stripe not paid order | ||
|
@@ -9,26 +9,27 @@ Feature: Canceling an order with Stripe Checkout Session | |
And the store has a product "Green Arrow" | ||
And the store ships everywhere for free | ||
And the store has a payment method "Stripe" with a code "stripe" and Stripe Checkout payment gateway without using authorize | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
And there is a customer "[email protected]" that placed an order "#00000022" | ||
And the customer bought a single "Green Arrow" | ||
And the customer chose "Free" shipping method to "United States" with "Stripe" payment | ||
And this order is not yet paid as "cs_123" Stripe Checkout Session | ||
And this order is not yet paid as "cs_test_123" Stripe Checkout Session | ||
And I am logged in as an administrator | ||
|
||
@ui @api | ||
Scenario: Cancelling the order when a checkout session is still available | ||
Given I am viewing the summary of this order | ||
And I am prepared to expire the checkout session on this order | ||
And I am prepared to expire this order checkout session | ||
When I cancel this order | ||
Then I should be notified that it has been successfully updated | ||
And it should have payment with state cancelled | ||
And it should have payment state cancelled | ||
And it should have payment state "Cancelled" | ||
|
||
@ui @api | ||
Scenario: Cancelling the order after the customer canceled the payment | ||
Given this order payment has been canceled | ||
And I am viewing the summary of this order | ||
And I am prepared to cancel this order | ||
Given I am viewing the summary of this order | ||
And I am prepared to expire this order checkout session | ||
And this order payment has been canceled | ||
And I am prepared to expire this order checkout session | ||
When I cancel this order | ||
Then I should be notified that it has been successfully updated | ||
And it should have payment with state cancelled | ||
|
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.