$ composer require ekyna/payum-payzen-bundle
Add the bundle to the kernel:
// config/bundles.php
return [
// ...
Ekyna\Bundle\PayumPayzenBundle\EkynaPayumPayzenBundle::class => ['all' => true],
];
Declare the Payzen gateway:
# config/packages/payum.yaml
payum:
gateways:
...
payzen:
factory: payzen
Setup the API parameters:
# config/packages/ekyna_payum_payzen.yaml
ekyna_payum_payzen:
api:
ctx_mode: 'PRODUCTION'
site_id: '1324567890'
certificate: '1234567890'
endpoint: SCELLIUS
# Optional
hash_mode: 'SHA256'
directory: '%kernel.project_dir%/var/payzen'
debug: true