PHPackages                             segma/fawry-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. segma/fawry-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

segma/fawry-php-sdk
===================

A PHP plugin for Fawry payment gateway.

1.0.6(4y ago)2542MITPHPPHP &gt;=5.6.0

Since Dec 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/segma12/fawry-php-sdk)[ Packagist](https://packagist.org/packages/segma/fawry-php-sdk)[ RSS](/packages/segma-fawry-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

Fawry PHP Plugin
================

[](#fawry-php-plugin)

A PHP plugin for Fawry payment gateway.

Features
--------

[](#features)

- Create and manage card tokens
- Create a payment with cards with 3D secure
- Create a payment with card tokens with 3D secure
- Refund a payment
- Cancel an unpaid payment

Installation
------------

[](#installation)

Install with `Composer`

```
  composer require segma/fawry-php-sdk
```

Usage
-----

[](#usage)

### Initiating new instance

[](#initiating-new-instance)

First thing you have to create a new instance from Fawry class.

If you are you are using the staging server you have to set isStaging flag with true to call the staging base URL.
When you move to live you can set it false or ignore it.

```
