dev-master
9999999-dev http://github.com/djoo/Symfony2HipayLibHipay Payment Libs for Symfony2
MIT
The Requires
- php >=5.2.6
by djoo
payment hipay
Hipay Payment Libs for Symfony2
This is a package who contains libraries of the payment method Hipay. This is for use in a Symfony2 Application. It's not a bundle with method, just the libraries of Hipay ready to use in Symfony2., (*1)
The folder lib is the same of the lib provided by Hipay. I don't change the files., (*2)
How to use ?, (*3)
Install with composer :, (*4)
"require": { "djoo/symfony2hipaylib": "*" }
Configure your app/autoload.php, (*5)
add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs') ->add('HIPAY', __DIR__.'/../vendor/djoo/symfony2hipaylib/lib/hipay') //Add This line ; } AnnotationRegistry::registerLoader(array($loader, 'loadClass')); require __DIR__.'/../vendor/djoo/symfony2hipaylib/lib/hipay/mapi_package.php'; //Add This line return $loader;
And after in your controller you can use the method developped by Hipay. Don't forget to use this at the top of your controller :, (*6)
use HIPAY;
And if you need to call method of Hipay can use this for example :, (*7)
$params = new \HIPAY_MAPI_PaymentParams();
Idem for static method :, (*8)
$output = \HIPAY_MAPI_SEND_XML::sendXML($xmlTx,$urlHipay);
Hipay Payment Libs for Symfony2
MIT
payment hipay