Closed gtrias closed 8 years ago
Something like this has to work:
<?php
$app['payum.builder']->addGatewayFactory('redsys', function($config, $coreGateway)) {
return new \Crevillo\Payum\Redsys\RedsysGatewayFactory($config, $coreGateway);
});
I am going to remove this service: payum.gateways
It works! Thank you.
I think it would be nice to have this well documented
Indeed.
I'm trying to add new gateway to the PayumServer but I cannot figure which file is responsible to add the gateways. I have to add the next code in order to register the gateway:
But I cannot find where, looking PayumSilexProvider documentation it says to use
$app['payum.gateways']
but I'm gettingInvalidArgumentException: Identifier "payum.gateways" is not defined.
all the time.Any point in how to add other gateways than the default ones would be very appreciated :)
Thanks