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

[Admin][PaymentMethod] Payment method features #4742

Merged
merged 15 commits into from
Apr 21, 2016

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Apr 11, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Partially based on #4736

@pjedrzejewski pjedrzejewski added the Admin AdminBundle related issues and PRs. label Apr 11, 2016

if (null === $paymentMethod) {
throw new \InvalidArgumentException('Cannot find payment method named %s', $name);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assert::notNull

@GSadee GSadee force-pushed the admin-payment-method branch 2 times, most recently from 3b03e86 to 48eca50 Compare April 13, 2016 08:26
@GSadee GSadee changed the title [WIP][Admin][PaymentMethod] Added payment method feature [Admin][PaymentMethod] Added payment method feature Apr 13, 2016
@GSadee GSadee changed the title [Admin][PaymentMethod] Added payment method feature [Admin][PaymentMethod] Added adding and browsing payment method Apr 13, 2016
@GSadee GSadee changed the title [Admin][PaymentMethod] Added adding and browsing payment method [Admin][PaymentMethod] Adding and browsing payment method Apr 13, 2016
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"
Copy link
Member

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

@GSadee GSadee changed the title [Admin][PaymentMethod] Adding and browsing payment method [WIP][Admin][PaymentMethod] Adding and browsing payment method Apr 13, 2016
@GSadee GSadee force-pushed the admin-payment-method branch 4 times, most recently from b424ebc to 3ab2a7c Compare April 19, 2016 08:54
@GSadee GSadee changed the title [WIP][Admin][PaymentMethod] Adding and browsing payment method [Admin][PaymentMethod] Payment method features Apr 19, 2016
I want to be able to browse payment methods

Background:
Given the store has a payment method "Offline" with a code "OFF"
Copy link
Contributor

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)
Copy link
Contributor

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.

@GSadee GSadee force-pushed the admin-payment-method branch 3 times, most recently from ead541b to 7fa188c Compare April 21, 2016 08:42
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"
Copy link
Contributor

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"

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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 🎉

@pjedrzejewski pjedrzejewski merged commit f906b51 into Sylius:master Apr 21, 2016
@pjedrzejewski
Copy link
Member

Thank you Grzesiu and Arek, nice work guys! 👍

@GSadee GSadee deleted the admin-payment-method branch September 22, 2017 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin AdminBundle related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants