djoo / symfony2hipaylib
Hipay Payment Libs for Symfony2
Installs: 93
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.2.6
This package is not auto-updated.
Last update: 2025-07-05 18:08:31 UTC
README
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.
The folder lib is the same of the lib provided by Hipay. I don't change the files.
How to use ?
Install with composer :
"require": { "djoo/symfony2hipaylib": "*" }
Configure your app/autoload.php
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 :
use HIPAY;
And if you need to call method of Hipay can use this for example :
$params = new \HIPAY_MAPI_PaymentParams();
Idem for static method :
$output = \HIPAY_MAPI_SEND_XML::sendXML($xmlTx,$urlHipay);