mrcyna/e-pay

Simple, Laravel package for e-commerce payments.

dev-master 2018-10-07 06:50 UTC

README

Simple, Laravel, package for e-commerce payments. You can pay the bills right now via your favorite payment method.

Installation

To use it, simply:

  1. Run composer require mrcyna/e-pay dev-master in your terminal.
  2. Add \MrCyna\EPay\EPayProvider::class, to providers array in config/app.php.
  3. Add 'EPay' => MrCyna\EPay\Facades\EPay::class, to aliases array in config/app.php.
  4. Run php artisan vendor:publish --force --tag=e-pay to publish vendor files.
  5. Checkout config/e-pay.php to configure your methods.

Methods

  • ZarinPal Payment Gateway
  • Mellat Bank Gateway
  • Parsian Bank Gateway

Usage Examples:

In your payment page:

EPay::method('ZarinPal')
	->amount(1000)
	->orderID(200)
	->description('Your Company Or Customer Description')
	->email('example@person.com')
	->mobile('0936*******')
	->callback( url('shop/checkout') )
	->paymentPage();

And in your callback page:

$transaction = EPay::method('ZarinPal')
	->amount(1000)
	->orderID(200)
	->inquiry();

The output result will be like:

{
	"result": true
	"message": "Transaction has been done successfully."
}