/TmsPaymentBundle

Symfony2 bundle that provides payment backend

Primary LanguagePHPMIT LicenseMIT

TmsPaymentBundle

Symfony2 bundle that provides payment backend

Installation

Add dependencies in your composer.json file:

"repositories": [
    ...,
    {
        "type": "vcs",
        "url": "https://github.com/Tessi-Tms/TmsPaymentBundle.git"
    }
],
"require": {
    ...,
    "tms/payment-bundle":       "dev-master"
}

Install these new dependencies of your application:

$ php composer.phar update

Enable the bundle in your application kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Tms\Bundle\PaymentBundle\TmsPaymentBundle(),
    );
}

Add parameters:

# app/config/parameters.yml.dist

payments.logs_dir: "/tmp"
payments.sogenactif_pathfile: "/var/www/html/vendor/tms/payment-bundle/Tms/Bundle/PaymentBundle/Resources/sips/atos/bin/param/pathfile.sogenactif"
payments.scellius_pathfile:   "/var/www/html/vendor/tms/payment-bundle/Tms/Bundle/PaymentBundle/sips/atos/bin/param/pathfile.scellius"
payments.mercanet_keys_path: "/var/www/html/vendor/tms/payment-bundle/Tms/Bundle/PaymentBundle/sips/atos/seal/keys"
payments.mercanet_web_server: "payment-webinit.mercanet.bnpparibas.net (payment-webinit.simu.mercanet.bnpparibas.net for dev environement)"
payments.paybox_keys_path:    "/var/www/html/vendor/tms/payment-bundle/Tms/Bundle/PaymentBundle/sips/paybox/keys"
payments.paybox_web_servers:  "[tpeweb.paybox.com, tpeweb1.paybox.com] ([preprod-tpeweb.paybox.com] for dev environement)"

To check if every thing seem to be ok, you can execute this command:

$ php app/console container:debug

You'll get this result:

...
tms_payment.backend_registry  container Tms\Bundle\PaymentBundle\Backend\BackendRegistry
...

Documentation

Read the Documentation

Tests

Install bundle dependencies:

$ php composer.phar update

To execute unit tests:

$ phpunit --coverage-text