Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

simenandre/payex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PACKAGE IS DEPRECIATED

Please use payex-sdk-php instead, a supported and maintained package from Payex.

PAYEX PHP CLASS

This class was made to make the way we communicate with PayEx a bit more intutive as well as modern.

The classes are all static, and fairly easy to manage.

How to install?

  1. Install the class somewhere.

  2. Include

include("payex.php");

  1. Set your configuration in config.php.

  2. Do your transaction.

$transaction = PayEx::transaction(123, 1000.31);
if($transaction->isOK()) $transaction->Redirect();

ToDo

This project is pretty fresh. We are still working heavly on it, and there are no production package released yet.

  • Clean up the class.
  • Make a nice documentation
  • Add support for refund.
  • Add more awesome Payex features.

Licence

The project is released under GNU-license. The class are provided as is. And the class are in no way an offical class by PayEx. The initial creators are however a sertified partner with PayEx.

What about Laravel support?

This project had a Laravel-bundle here when Laravel 3 what the coolest. Now that people has began using Laravel Four, we're removing the Laravel version. To make this class work with Laravel, you only need to replace line 163:

header('Location: '.self::$status['redirectUrl']); exit;

with:

return Redirect::to(self::$status['redirectUrl']);

We're planning on making a much better class to support Laravel in the future.

Support

Do you need help with the class, send us an e-mail at [email protected] for assistance.

About

Payex PHP-Class (Depreciated)

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages