loevgaard/dandomain-altapay-bundle

Symfony bundle for handling payments on Dandomain using Altapay

v0.6.0 2017-12-06 07:40 UTC

This package is auto-updated.

Last update: 2024-11-06 09:57:45 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

A bundle for coupling a Dandomain payment to Altapay

Install

Via Composer

$ 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:

<?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.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

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