PHP code example of ahyadessam / payfort

1. Go to this page and download the library: Download ahyadessam/payfort library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ahyadessam / payfort example snippets


    Payfort\PayfortServiceProvider::class,

    

    'PayFort' => Payfort\PayFortFacade::class,

    

use PayFort;

$requestParams = array(
  'merchant_reference' => '11',
  'amount' => '1000',
  'currency' => 'SAR',
  'customer_email' => '[email protected]',
  'order_description' => 'iPhone 6-S',
  'return_url'    => url('test_r')
);
PayFort::RedirectionPay($requestParams);

    php artisan vendor:publish