1. Go to this page and download the library: Download webbaard/payum-mollie library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webbaard / payum-mollie example snippets
use Payum\Core\GatewayFactoryInterface;
use PayHelper\Payum\Mollie\MollieGatewayFactory;
$payumBuilder->addGatewayFactory('mollie', function(array $config, GatewayFactoryInterface $gatewayFactory) {
return new MollieGatewayFactory($config, $gatewayFactory);
});
$payumBuilder->addGateway('mollie', [
'factory' => 'mollie',
'apiKey' => 'api123456', // change this
'method' => 'creditcard', // one of directdebit, creditcard or directdebit_oneoff
]);