Symfony2 bundle to encompass the Wirecard API and make taking payments that whole lot sweeter
PHP
Switch branches/tags
Nothing to show
Latest commit 010bf3a Jun 15, 2012 Dom Udall Fixing promo code extension

README.md

WirecardBundle Build Status

This bundle uses version 1.0.8 of the Wirecard QPAY API to allow your Symfony2 project to take single and repeated payments.

Builds are run using the awesome Travis CI, testing against PHP 5.3 with Symfony 2.x

Installation

Update Deps

Add the following lines to your deps file:

[WirecardBundle]
    git=http://github.com/domudall/DomUdallWirecardBundle.git
    target=bundles/DomUdall/WirecardBundle

Update your vendors in the usual way:

$ ./bin/vendors install

Configure Autoloader

Add the following to your autoloader:

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...

    'DomUdall'      => __DIR__.'/../vendor/bundles',
));

Enable the Bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new DomUdall\WirecardBundle\DomUdallWirecardBundle(),
    );
}

Register Routes

THIS NEEDS TO BE COMPLETED FIRST!

To Do's

At the moment, this bundle is being built for a single use case, however it would be great to extend it to include the following:

  • Reduce the min config! It's pretty mahoosive, don't know if this can be resolved though.
  • Multiple currencies (at present a single default is set in the configuration).
  • Custom fields via configuration (including validation based on if set to mandatory).
  • mongodb, couchdb and propel support.

Credits

Dom Udall

Licence

Licenced under the New BSD License