1. Go to this page and download the library: Download maherelgamil/laravel-fawry 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/ */
maherelgamil / laravel-fawry example snippets
// Get user
$user = App\User::find(1);
$tokenResponse = Fawry::createCardToken($cardNumber, $expiryYear, $expiryMonth, $cvv, $user);
// Get user
$user = App\User::find(1);
Fawry::listCustomerTokens($user);
// Get user
$user = App\User::find(1);
Fawry::deleteCardToken($user);
// Get user
$user = App\User::find(1);
Fawry::chargeViaCard($merchantRefNum, $user, $amount, $chargeItems = [], $description = null )
// Get user
$user = App\User::find(1);
Fawry::chargeViaFawry($merchantRefNum, $user, $paymentExpiry, $amount, $chargeItems = [], $description = null )