maq89/faturah-laravel

Faturah Laravel
10
Install
composer require maq89/faturah-laravel
License:LGPL-3.0
Last Updated:Jul 27, 2017
Links: GitHub  ·  Packagist
Maintainer: maq89

Fatural Laravel

Installation

Begin by installing this package through Composer. Just run following command to terminal-

composer require maq89/faturah-laravel

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array.

'providers' => [
	...
	Damas\Faturah\FaturahServiceProvider::class,
],

Now add the alias.

'aliases' => [
	...
	'Faturah' => Damas\Faturah\Facades\FaturahFacade::class,
],

Example:

Route::get('/faturah', function () {
    $merchantCode = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx1012';
    $secureKey = 'ece00dc2-9a57-4403-a86b-a2be3eccae53';
    $faturah = Faturah::getInstance($merchantCode, $secureKey);
    $faturah->order->addItem('2', 'Sumsung', 'Sumsung Mobile 6600 Silver Color', '1', 20);
    //$faturah->order->addItem('1', 'Nokia Mobile', 'Nokia Mobile 6600 Silver Color', '1', 10); // Add another Item
    $faturah->order->customerInfo('cutomer name', 'customer@domain.com', '1234567890', 'en');
    //$faturah->order->deliveryCharges(5); // If you want to charge delivery Charges
    $faturah->send();
    return '';
});

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

625,281,324 9,703
laravel/framework

The Laravel Framework.

572,249,171 34,893
laravel/tinker

Powerful REPL for the Laravel framework.

481,927,243 7,441