Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Atfawy interface for larvel

License

NotificationsYou must be signed in to change notification settings

maherelgamil/laravel-fawry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicenseStyleCI

Laravel interface forAtFawry

Table Of Contect

Installation

Install via composer

composer require maherelgamil/laravel-fawry

And then publish config

php artisan vendor:publish --tag="fawry-config"

Addmerchant_code ,security_key that's provided from Atfawry account

Now, Run migration

php artisan migrate

Usage

Create Card Token:

// Get user$user =App\User::find(1);$tokenResponse = Fawry::createCardToken($cardNumber,$expiryYear,$expiryMonth,$cvv,$user);

Get List Of Customer Tokens:

// Get user$user =App\User::find(1);Fawry::listCustomerTokens($user);

Delete Customer Token

// Get user$user =App\User::find(1);Fawry::deleteCardToken($user);

Charge:

Charge Via Card:

// Get user$user =App\User::find(1);Fawry::chargeViaCard($merchantRefNum,$user,$amount,$chargeItems = [],$description =null )

Charge Via Fawry

// Get user$user =App\User::find(1);Fawry::chargeViaFawry($merchantRefNum,$user,$paymentExpiry,$amount,$chargeItems = [],$description =null )

Refund

Fawry::refund($fawryRefNumber,$refundAmount,$reason =null)

License

Laravel Fawry is an open-sourced laravel package licensed under theMIT license

Enjoy!


[8]ページ先頭

©2009-2025 Movatter.jp