2017 © Pedro Peláez
 

library epay

Laravel Epay is payment gateway adapter.

image

teepluss/epay

Laravel Epay is payment gateway adapter.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Epay for Laravel 4

Epay is deprecated. Please use the Gateway, (*1)

Epay is payment gateway adapters., (*2)

Installation

To get the lastest version of Epay simply require it in your composer.json file., (*3)

"teepluss/epay": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated., (*4)

Once Epay is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key., (*5)

'providers' => array(

    'Teepluss\Epay\EpayServiceProvider'

)

Epay also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file., (*6)

'aliases' => array(

    'Epay' => 'Teepluss\Epay\Facades\Epay'

)

Usage

Generate payment form., (*7)

$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setSuccessUrl('http://www.domain/foreground/success')
        ->setCancelUrl('http://www.domain/foreground/cancel')
        ->setBackendUrl('http://www.domain/background/invoice/00001');


$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setLanguage('TH')
        ->setCurrency('THB');

$adapter->setInvoice(00001)
        ->setPurpose('Buy a beer.')
        ->setAmount(100);

$adapter->setRemark('Short note');

$generated = $adapter->render();

var_dump($generated);

Checking foregound process., (*8)

$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setInvoice(00001);

$result = $adapter->getFrontendResult();

var_dump($result);

Checking background process (IPN), (*9)

$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setInvoice(00001);

$result = $adapter->getBackendResult();

var_dump($result);

Support or Contact

If you have some problem, Contact teepluss@gmail.com, (*10)

Support via PayPal, (*11)

The Versions

30/06 2015

dev-master

9999999-dev https://github.com/teepluss/laravel4-epay

Laravel Epay is payment gateway adapter.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel gateway laravel4 paypal

30/06 2015

1.0.1

1.0.1.0 https://github.com/teepluss/laravel4-epay

Laravel Epay is payment gateway adapter.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel gateway laravel4 paypal

29/06 2015

1.0.0

1.0.0.0 https://github.com/teepluss/laravel4-epay

Laravel Epay is payment gateway adapter.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel gateway laravel4 paypal