-
-
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
[Payum] Upgrade up to 0.12 #2027
Conversation
It is based on #1822, and I think we can close that. |
That, is, awesome... :) |
4b6159f
to
ac80e7f
Compare
Ready for the final review and merge. ping @pjedrzejewski @stloyd |
@@ -37,8 +37,9 @@ | |||
"knplabs/knp-snappy-bundle": "*@dev", | |||
"liip/imagine-bundle": "~0.9", | |||
"mathiasverraes/money": "*@dev", | |||
"payum/payum": "~0.9.0", | |||
"payum/payum-bundle": "~0.9.0", | |||
"pagerfanta/pagerfanta": "1.0.*@dev", |
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.
This should be reverted, we use stable versions now.
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.
done
the are some tests failed but as far as I can see they are not related to my changes. @pjedrzejewski is the master stable atm? Could you please checks those tests and tell whether it my fault or not. |
@pjedrzejewski do you have time to review this one? |
@makasim Requires rebase... |
e5d5e15
to
2c72c3b
Compare
2c72c3b
to
d6dab13
Compare
@pjedrzejewski @stloyd done |
[Payum] Upgrade up to 0.12
Woohoo! Thank you Maksim! 👍 |
I'm having an issue configuring any kind of new payment gateway. What i'm trying to do is, to add offline or manual payment gateways to my sylius applicaton. app/config/config.yml
Its now possible to add a payment method using this gateway, but when it comes to finalizing an order, i get an exception ('Payum payment named offline does not exist.'). Looking into the payments, the offline gateway was not added:
It feels like i've forgotten to configure something, but i I'm very certain, this has worked before. |
This is not enough to configure something like this: https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Resources/config/app/payum.yml#L1 The payum bundle is here: http://payum.org/doc#PayumBundle |
Thanks. I really was convinced, that it had worked before. app/config/config.yml
Btw, I think, this should be part of the default sylius config. |
@makasim Actually which part of the code is using the following config? Because Sylius has a
|
@kayue I believe it is need for the payment choice form type, that's it. I am working on ability to configure payments in the backend and when I am ready to adopt it to Sylius I will change these parts. |
@makasim Oh for the backend, I see, thanks. |
Not only for the backend, it is used on the payment checkout step, where you asked to select a payment method. |
This PR updates Payum up to 0.12 (it is still in development). With this version it is extremely easy to add a payment gateway.
PayumBundle
(follow the Payum's doc)stripe_checkout
to sylius_payment_methods table.stripe_checkout
toThat's it. All other payments supported by Payum could be added similar way.