div-looper/payum-cashnpay

Extension for Payum which add support for CASH'nPAY payment gateway.

Installs: 1 320

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/div-looper/payum-cashnpay

v1.0.0 2016-01-04 03:54 UTC

This package is not auto-updated.

Last update: 2025-10-12 00:09:47 UTC


README

Extension for Payum which add support for CASH'nPAY payment gateway.

Installation

composer require div-looper/payum-cashnpay

ACMEPaymentBundle.php:

namespace ACME\Bundle\PaymentBundle;

use DivLooper\Payum\CashnPay\Bridge\Symfony\CashnPayGatewayFactory;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

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

        /** @var $extension \Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension */
        $extension = $container->getExtension('payum');
        $extension->addGatewayFactory(new CashnPayGatewayFactory());
    }
}

config.yml:

gateways:
    ...
    fawry:
        cashnpay:
            product_id: "00000000"
            secret_key: "0x0xX0x0"
            sandbox: true
    ...

License

Payum-CASHnPAY is released under the MIT License.