Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 864 Bytes

symfony4.md

File metadata and controls

49 lines (38 loc) · 864 Bytes

Installation steps for Symfony 4

Require the package

$ composer require ekyna/payum-payzen-bundle

Register the bundle

Add the bundle to the kernel:

// config/bundles.php
return [
    // ...
    Ekyna\Bundle\PayumPayzenBundle\EkynaPayumPayzenBundle::class => ['all' => true],
];

Configure Payzen

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