2017 © Pedro Peláez
 

symfony-bundle dandomain-altapay-bundle

Symfony bundle for handling payments on Dandomain using Altapay

image

loevgaard/dandomain-altapay-bundle

Symfony bundle for handling payments on Dandomain using Altapay

  • Wednesday, December 13, 2017
  • by loevgaard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 88 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Dandomain AltaPay Bundle

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

A bundle for coupling a Dandomain payment to Altapay, (*2)

Install

Via Composer, (*3)

$ composer require loevgaard/dandomain-altapay-bundle

Update AppKernel.php

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*4)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Loevgaard\DandomainAltapayBundle\LoevgaardDandomainAltapayBundle(),
            new FOS\RestBundle\FOSRestBundle(),
            new Knp\DoctrineBehaviors\Bundle\DoctrineBehaviorsBundle(),
            new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
            new JMS\SerializerBundle\JMSSerializerBundle(),
            new Tbbc\MoneyBundle\TbbcMoneyBundle(),
            new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle()
        );

        // ...
    }

    // ...
}

Import routing

# app/config/routing.yml
loevgaard_dandomain_altapay:
    resource: "@LoevgaardDandomainAltapayBundle/Resources/config/routing.yml"

Update config.yml

# app/config/config.yml
loevgaard_dandomain_altapay:
    altapay_url: https://testgateway.altapaysecure.com
    altapay_username: insert username
    altapay_password: insert password
    shared_key_1: insert shared key 1 from Dandomain
    shared_key_2: insert shared key 2 from Dandomain
    altapay_ips: ['77.66.40.133', '77.66.62.133']
    default_settings:
        layout:
            logo: https://example.com/logo_default.png

knp_doctrine_behaviors:
    timestampable: true


# Enable translator
framework:
    # ...
    translator: { fallbacks: ['%locale%'] }
    # ...

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details., (*6)

Security

If you discover any security related issues, please email joachim@loevgaard.dk instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions