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

[Payum] Add Be2bill gateway #669

Merged
merged 7 commits into from
Dec 4, 2013
Merged

[Payum] Add Be2bill gateway #669

merged 7 commits into from
Dec 4, 2013

Conversation

winzou
Copy link
Contributor

@winzou winzou commented Nov 29, 2013

This is a new payment gateway: Be2bill.

@makasim please review =)

@@ -2376,12 +2376,12 @@
"version": "v1.0.4",
"source": {
"type": "git",
"url": "https://github.com/omnipay/omnipay.git",
"url": "https://github.com/adrianmacneil/omnipay.git",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is invalid, the repo was renamed.

@stloyd
Copy link
Contributor

stloyd commented Nov 29, 2013

IMO it's not good idea to have everything in main repository, it's matter of time that it will become messy.

btw. @makasim any real reason why all those services are separated packages? (I mean: stripe, be2bill etc.)


public function __construct(ContainerInterface $container)
{
$this->container = $container;
Copy link
Contributor

Choose a reason for hiding this comment

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

We could avoid container useage. since we are on symfony 2.3 we can inject request via setter.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@makasim
Copy link
Contributor

makasim commented Nov 29, 2013

btw. @makasim any real reason why all those services are separated packages? (I mean: stripe, be2bill etc.)

I thought it is a good idea. Also omnipay split its repo into separate packages.

To be concrete:

  • They could use 3rd party libraries, authorize uses official lib for example.
  • Some lib could use different extensions. Payex use soap others buzz
  • if a developer want one lib he can install only it. less classes easier to understand whats going on.

@makasim
Copy link
Contributor

makasim commented Nov 29, 2013

IMO it's not good idea to have everything in main repository

Good question. We have to maintain them if we still want to say that sylius supports payments (here the list of payment) out of the box.

And it is not that hard because sylius provide only integration block and should take care of that block not the rest payment logic.

{
foreach (array('CARDCODE', 'CARDCVV', 'CARDFULLNAME', 'CARDVALIDITYDATE') as $idx) {
if (isset($paymentDetails[$idx])) {
unset($paymentDetails[$idx]);
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to check that a variable is set before you unset it, just unset it, it's safe.

@winzou
Copy link
Contributor Author

winzou commented Dec 1, 2013

Rebased for #636 and fixed feedbacks.

I think it's a good thing to have everything in main repo for same reason. It enables us to really say that we do support this and this payment method.

@makasim There is a lot of duplication between different payment method Action. Could it be possible to reduce it?

@makasim
Copy link
Contributor

makasim commented Dec 1, 2013

Looks good to me

@makasim There is a lot of duplication between different payment method Action. Could it be possible to reduce it?

FYI: These thihgs are what I want to do to reduce code duplication:

@winzou any other suggestions?

@winzou
Copy link
Contributor Author

winzou commented Dec 4, 2013

@makasim that's a good start, we'll see then if there is still something we can do.

pjedrzejewski pushed a commit that referenced this pull request Dec 4, 2013
[Payum] Add Be2bill gateway
@pjedrzejewski pjedrzejewski merged commit 301a79a into Sylius:master Dec 4, 2013
@pjedrzejewski
Copy link
Member

This Geometry thing is crazy. :S Thank you Alexandre, I really like to see how easy it is to add new gateway. @makasim 👍

@winzou winzou deleted the be2bil branch December 4, 2013 15:08
@winzou
Copy link
Contributor Author

winzou commented Dec 4, 2013

Totally, that's a really good point!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants