-
- This package is not a official package from PayFort just my develop *
- it's a laravel package for PayFort Integration
-
Require the package using composer:
composer require ahyadessam/payfort -
Add the service provider to the
providersinconfig/app.php:Payfort\PayfortServiceProvider::class, -
Add alias provider to the
aliasesinconfig/app.php:'PayFort' => Payfort\PayFortFacade::class,
-
Publish the public assets:
php artisan vendor:publish -
Configure your
PayFortaccount data inconfig/payfort.php:
RedirectionPay: Go to payment page.SADAD: Got to SADAD page.statusMsg: Return what status number mean.
You can lookup PayFort Documentations on this URL PayFort Documentations
use PayFort;
$requestParams = array(
'merchant_reference' => '11',
'amount' => '1000',
'currency' => 'SAR',
'customer_email' => 'test@payfort.com',
'order_description' => 'iPhone 6-S',
'return_url' => url('test_r')
);
PayFort::RedirectionPay($requestParams);You must add return URL route to app/Http/Middleware/VerifyCsrfToken.php to allow to it receive POST without token
for any question you can contact with me on twitter @AhyadEssam, thanks