2017 © Pedro Peláez
 

library tcompayway-payum-bundle

Symfony2 Integration for TcomPayWay with Payum

image

locastic/tcompayway-payum-bundle

Symfony2 Integration for TcomPayWay with Payum

  • Friday, August 12, 2016
  • by antonioperic
  • Repository
  • 4 Watchers
  • 1 Stars
  • 1,761 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

TcomPayWayPayumBundle

Prerequisites

For TcomPayPayumBundle to work, you have to install Payum. You can read more about Payum at their official website payum, (*1)

On PayumBundle's get_it_started you can find more about creating security token and payment details., (*2)

Installation

For installation of TcomPayWayPayumBundle just include it in your composer.json file and run Composer's update command., (*3)

Afterwards, register the new bundle in your AppKernel., (*4)

<?php
// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        // ...
        new \Locastic\TcomPayWayPayumBundle\LocasticTcomPayWayPayumBundle(),
    ];
}
````


Next step is to fill your shop details. Parameters secure3d_template, prepare_template & done_template are exposed
so you can replace them with your own templates.

```yaml
# app/config/config.yml
payum:
    gateways:
        tcompayway:
            factory: tcompayway_direct # or tcompayway_direct
            shop_name: EDITME
            shop_id: EDITME
            username: EDITME
            password: EDITME
            secret_key: EDITME
            authorization_type: EDITME
            sandbox: true
            disable_installments: EDITME

        # or
        tcompayway_offsite:
            factory: tcompayway_offsite
            shop_id: EDITME
            secret_key: EDITME
            authorization_type: EDITME
            sandbox: true
            disable_installments: EDITME

Sylius Configuration

Now you need to configure capture_payment service, add tcompayway gateway to sylius_payments., (*5)

# app/config/config.yml
services:
    payum.tcompayway.action.convert_payment_to_tcompayway:
        class: Locastic\TcomPayWayPayumBundle\Bridge\Sylius\ConvertPaymentToTcomPayWayAction
        tags:
            - { name: payum.action, factory: tcompayway_direct, prepend: true }
            - { name: payum.action, factory: tcompayway_offsite, prepend: true }

# Sylius/Bundle/CoreBundle/Resources/config/app/config.yml
sylius_payment:
   gateways:
       dummy: Defaultni gateway (dummy)
       tcompayway: T-com PayWay

You also need to configure payment methods in Sylius administration to use T-com PayWay gateway., (*6)

To do:

  • decouple labels and add support for translations
  • add configuration for installments
  • add javascript validation and automatic pick of credit card by card number
  • set custom number of installments

The Versions

12/08 2016

dev-master

9999999-dev https://github.com/locastic/TcomPayWayPayumBundle

Symfony2 Integration for TcomPayWay with Payum

  Sources   Download

MIT

The Requires

 

The Development Requires

12/08 2016

2.0

2.0.0.0 https://github.com/locastic/TcomPayWayPayumBundle

Symfony2 Integration for TcomPayWay with Payum

  Sources   Download

MIT

The Requires

 

The Development Requires

03/02 2016
12/01 2016
31/08 2015
20/08 2015
20/08 2015
19/08 2015
27/07 2015
20/05 2015

0.2.1

0.2.1.0 https://github.com/locastic/TcomPayWayPayumBundle

Symfony2 Integration for TcomPayway with Payum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kruno Knego

20/05 2015

0.2

0.2.0.0 https://github.com/locastic/TcomPayWayPayumBundle

Symfony2 Integration for TcomPayway with Payum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kruno Knego

24/02 2015

0.1

0.1.0.0 https://github.com/locastic/TcomPayWayPayumBundle

Symfony2 Integration for TcomPayway with Payum

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kruno Knego