Skip to content

This is a package who contains libraries of the payment method Hipay. This is for use in a Symfony2 Application

Notifications You must be signed in to change notification settings

djoo/Symfony2HipayLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony2HipayLib

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);

About

This is a package who contains libraries of the payment method Hipay. This is for use in a Symfony2 Application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages