Download the PHP package axelvnk/sylius-mollie-payum-bundle without Composer
On this page you can find all versions of the php package axelvnk/sylius-mollie-payum-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download axelvnk/sylius-mollie-payum-bundle
More information about axelvnk/sylius-mollie-payum-bundle
Files in axelvnk/sylius-mollie-payum-bundle
Package sylius-mollie-payum-bundle
Short Description A Mollie payment gateway implementation for use in a Sylius webshop with Payum.
License MIT
Informations about the package sylius-mollie-payum-bundle
SyliusMolliePayumBundle
Welcome to the SyliusMolliePayumBundle - a Payum implementation of the Mollie gateway to use in your Sylius (~beta) webshop.
For details on how to get started with SyliusMolliePayumBundle, keep on reading.
All code included in the SyliusMolliePayumBundle is released under the MIT or BSD license.
Installation
Step 1 - Install SyliusMolliePayumBundle using composer
Edit your composer.json to include the bundle as a dependency.
Open up a command line window and tell composer to download the new dependency.
Step 2 - Register the bundle in your AppKernel file
Step 3 - Include the bundles payment gateway config
Step 4 - Configure the bundle to use your Mollie API key
Step 5 - Add gateway config to Sylius database
This is just necessary to be able to select 'mollie' as a gateway for your payment methods through the admin interface. The config and factory name aren't even used, so don't worry about being correct.
Modifying default behavior
You can always change behavior by changing the parameter value for the classes.
Nice to know..
By default, Sylius moves an order's checkout state to completed before knowing if the payment is fulfilled or not.
In my ResolveNextRouteAction you can see that I redirect to the last step in the checkout process if the payment has failed for some reason. But Sylius removes a cart if the state is not longer new. So you will end up with an empty cart upon returning from Mollie if the payment has been cancelled or has failed.
To prevent this from happening you should either fiddle with the state machine, or you simply do this in your custom CaptureAction :
And this in your custom ResolveNextRouteAction
All versions of sylius-mollie-payum-bundle with dependencies
symfony/symfony Version ^3.2
sylius/sylius Version ^1.0@beta
payum/payum Version ^1.3
payum/payum-bundle Version ^2.1
mollie/mollie-api-php Version ~1.9