Note: Where payum/xxx is a payum package, for example it could be payum/paypal-express-checkout-nvp. Look at supported gateways to find out what you can use.
Note: Use payum/payum if you want to install all gateways at once.
Now you have all codes prepared and ready to be used.
Configuration
First add PayumProvider to your application:
<?php//payum provider requires some other providers to be registered.$app->register(new\Silex\Provider\UrlGeneratorServiceProvider());$app->register(new\Silex\Provider\FormServiceProvider());$app->register(new\Silex\Provider\TranslationServiceProvider());$app->register(new\Silex\Provider\TwigServiceProvider());$app->register(new\Silex\Provider\ValidatorServiceProvider());$app->register(new\Silex\Provider\ServiceControllerServiceProvider());$app->register(new\Payum\Silex\PayumProvider());
Now you can configure the gateway gateway and the storages:
Here's you may want to modify a payment_done route. It is a controller where the a payer will be redirected after the payment is done, whenever it is success failed or pending. Read a dedicated chapter about how the payment done controller may look like.
Supporting Payum
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider: