loevgaard / dandomain-altapay-bundle
Symfony bundle for handling payments on Dandomain using Altapay
Installs: 89
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1
- ext-intl: *
- cocur/slugify: ^2.5
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- friendsofsymfony/rest-bundle: ^2.0
- guzzlehttp/guzzle: ~6.0
- jms/serializer-bundle: ^2.2
- knplabs/doctrine-behaviors: ~1.1
- knplabs/knp-paginator-bundle: ^2.6
- loevgaard/altapay-php-sdk: ^2.0
- loevgaard/dandomain-pay-php-sdk: ^3.4
- sensio/framework-extra-bundle: ^3.0
- symfony/console: ^3.2
- symfony/form: ^3.0
- symfony/framework-bundle: ^3.0
- symfony/intl: ^3.0
- symfony/lock: ^3.4
- symfony/monolog-bundle: ^3.0
- symfony/psr-http-message-bridge: ~1.0
- symfony/translation: ^3.0
- symfony/twig-bundle: ^3.0
- symfony/validator: ^3.0
- symfony/yaml: ^3.0
- tbbc/money-bundle: ^3.1
- twig/extensions: ^1.5
- zendframework/zend-diactoros: ~1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ~5.5||~6.0
- psr/http-message: ~1.0
- symfony/phpunit-bridge: ^3.0
README
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.