-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Admin][PaymentMethod] Payment method features #4742
Conversation
bbed6a7
to
14a0c23
Compare
|
||
if (null === $paymentMethod) { | ||
throw new \InvalidArgumentException('Cannot find payment method named %s', $name); | ||
} |
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.
Assert::notNull
3b03e86
to
48eca50
Compare
Given I want to create a new payment method | ||
When I name it "Paypal Express Checkout" in "English (United States)" | ||
And I specify its code as "PEC" | ||
And I choose gateway "Paypal Express Checkout" |
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.
And I choose a "Paypal Express Checkout" gateway
here and in the second scenario
48eca50
to
693c895
Compare
b424ebc
to
3ab2a7c
Compare
I want to be able to browse payment methods | ||
|
||
Background: | ||
Given the store has a payment method "Offline" with a code "OFF" |
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.
If there's only one scenario, can we move the first two steps of the background into the scenario?
@@ -42,6 +42,20 @@ public function __construct(Session $session, array $parameters, RouterInterface | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function hasResourceValues(array $parameters) |
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.
Added in #4841, please rebase with master.
ead541b
to
7fa188c
Compare
When I choose "Paypal Express Checkout" gateway | ||
And I save my changes | ||
Then I should be notified that it has been successfully edited | ||
And this payment method gateway should be "paypal_express_checkout" |
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.
When I choose "Paypal Express Checkout" gateway
...
Then this payment method gateway should be "paypal_express_checkout"
?
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.
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.
All right, I've had some kind of dejavu while writing this comment 🎉
7fa188c
to
f304238
Compare
f304238
to
1f3e1bb
Compare
Thank you Grzesiu and Arek, nice work guys! 👍 |
Partially based on #4736