sergeym/payum-pay-receipt

Offline bank payment recipe

dev-master 2015-07-16 11:05 UTC

This package is auto-updated.

Last update: 2024-10-29 04:47:22 UTC


README

Instalation (with symfony2 payum bundle)

add to your composer json

{
    "require": {
        "payum/payum-bundle": "0.14.*",
        "sergeym/payum-pay-receipt": "dev-master"
    }
}

Add PayReceiptPaymentFactory to payum:

<?php

// src/Acme/PaymentBundle/AcmePaymentBundle.php

namespace Acme\PaymentBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Sergeym\Payum\PayReceipt\Bridge\Symfony\PayReceiptPaymentFactory;

class AcmePaymentBundle extends Bundle
{
    public function build(ContainerBuilder $container)
    {
        parent::build($container);

        $extension = $container->getExtension('payum');
        $extension->addPaymentFactory(new PayReceiptPaymentFactory());
    }
}