2017 © Pedro Peláez
 

library payum-dotpay

dotpay api implementation for payum

image

pixers/payum-dotpay

dotpay api implementation for payum

  • Monday, December 5, 2016
  • by ikselll
  • Repository
  • 7 Watchers
  • 4 Stars
  • 8,587 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 2 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

Payum Dotpay by Pixers

Integrate Payum with Dotpay API., (*1)

Get it started.

Library offers additional Payum gateway for Dotpay (www.dotpay.pl) service., (*2)

Installation

The preferred way to install the library is using composer., (*3)

Run:, (*4)

php composer.phar require "pixers/payum-dotpay"

Symfony Integration

Symfony2 - how to add DotpayGateway v1.0.2 for (1.x > payum-bundle < 2.0):

<?php

namespace Acme\PaymentBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildRegistryPass;
use Payum\Bundle\PayumBundle\DependencyInjection\Compiler\BuildGatewayFactoryPass;
use Pixers\Payum\Dotpay\DependencyInjection\Factory\Gateway\DotpayGatewayFactory;

class AcmePaymentBundle extends Bundle
{

    /**
     * Add Dotpay Gateway to PaymentBundle
     *
     * @param ContainerBuilder $container
     */
    public function build(ContainerBuilder $container)
    {
        /** @var $extension PayumExtension */
        $extension = $container->getExtension('payum');

        $extension->addGatewayFactory(new DotpayGatewayFactory());

        $container->addCompilerPass(new BuildRegistryPass());
        $container->addCompilerPass(new BuildGatewayFactoryPass());
    }

}

If we'd like to set URLC parameter (URL callback), we additionally have to turn on option "Ustawienia -> parametry URLC" in Dotpay panel. More information: http://dotpay.pl/files/dotpay_instrukcja_techniczna.pdf (page 25)., (*5)

Config.yml:, (*6)

payum:
    gateways:
        dotpay_checkout:
            dotpay:
                id: company_id_from_dotpay_panel
                method: 'POST'|'GET'                // (optional) default=GET
                URLC: '//some_url',                 // (optional)
                url: '//some_url',                  // (optional)
                endpoint: 'https://ssl.dotpay.pl/', //(optional)
                type: 0|1|2|3,                      // (optional) default=3 
                PIN: hjkert543dgt67yh,              // for URLC callbacks (must be set before in dotpay panel) (optional)
                ip: 195.150.9.37                    // this dotpay ip calls to URLC (optional)

Symfony2 - how to add DotpayGateway v2.0 for payum-bundle >= 2.0:

services.yml, (*7)

    dotpay_checkout:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: [Pixers\Payum\Dotpay\DotpayGatewayFactory]
        tags:
            - { name: payum.gateway_factory_builder, factory: dotpay }

Config.yml:, (*8)

payum:
    gateways:
        dotpay_checkout:
            factory: dotpay
            id: company_id_from_dotpay_panel
            method: 'POST'|'GET'                // (optional) default=GET
            URLC: '//some_url',                 // (optional)
            url: '//some_url',                  // (optional)
            endpoint: 'https://ssl.dotpay.pl/', // (optional)
            type: 0|1|2|3,                      // (optional) default=3 
            PIN: hjkert543dgt67yh,              // for URLC callbacks (must be set before in dotpay panel) (optional)
            ip: 195.150.9.37                    // this dotpay ip calls to URLC (optional)

Resources

Author

License

Copyright 2016 PIXERS Ltd - www.pixersize.com, (*9)

Licensed under the BSD 3-Clause, (*10)

The Versions

05/12 2016

dev-master

9999999-dev http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay

05/12 2016

dev-payumBundle-2.0

dev-payumBundle-2.0 http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay

05/12 2016

v2.0

2.0.0.0 http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay

20/10 2016

v1.0.2

1.0.2.0 http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay

02/02 2016

v1.0.1

1.0.1.0 http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay

28/01 2016

v1.0.0

1.0.0.0 http://www.pixers.pl

dotpay api implementation for payum

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

by Michal Kanak

payment payum dotpay