Download the PHP package feexpay/feexpay-php without Composer
On this page you can find all versions of the php package feexpay/feexpay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download feexpay/feexpay-php
More information about feexpay/feexpay-php
Files in feexpay/feexpay-php
Package feexpay-php
Short Description Php sdk of Feexpay - Online payment solution by credit card and mobile money
License MIT
Informations about the package feexpay-php
FeexpayPhp
Feexpay SDK PHP Project - User Guide
This guide explains how to use the Feexpay PHP SDK to easily integrate mobile and card payment methods into your PHP or Laravel application. Follow these steps to get started:
Version 3.0.0 — the SDK uses the Feexpay API v2 (
https://api-v2.feexpay.me). The previous host (https://api.feexpay.me) is no longer available, so older versions of the SDK no longer work: please upgrade.Upgrading from 2.x:
paiementCard()has a new signature,paiementCard(amount, currency, firstName, lastName, email, phoneNumber, city, zip, country), and returnsnullon failure. Update your calls before upgrading.
Requirements
- PHP 7.1 or higher
- The
curlandjsonPHP extensions - Your shop's id and your API key (it starts with
fp_), available in your Feexpay dashboard
Installation
-
Install a local server like Xampp or Wamp etc ...
-
Install Composer if not already done.
-
Check that Composer is installed by running the following command:
-
Install the Feexpay package in your project:
To upgrade an existing project:
Usage in a Simple PHP Environment
-
Create your PHP project and install the package with Composer (see above).
You can also download the Git repository instead:
-
Create a PHP file, for example,
index.php. -
Use the SDK methods in your PHP file:
-
Check the status of a payment with its reference:
getPaiementStatus()returnsfalsewhen the reference is empty. -
Use the web payment method for the networks that redirect the customer to a payment page:
-
Use the card payment method (VISA, MASTERCARD):
- You can also integrate a payment button in your PHP page:
Usage with Laravel
-
In a Laravel project, run the following command to install the Feexpay package:
-
Create the routes in your
web.phpfile: -
Create a controller, for example,
YourController.php, and use the Feexpay SDK inside this controller to handle payments: - Integrate the Feexpay button in a view, for example,
welcome.blade.php:
Create a route:
Create a controller by example YourController.php
Make sure you have your views file for our example is welcome.blade.php
You can now access the URL defined in the route to perform payments using Feexpay.
Security
Never commit your API key to a repository: keep it in an environment variable (for example in your .env file with Laravel) and read it from there.
Documentation
The full API documentation (networks, countries, webhooks) is available at https://docs.feexpay.me.
Make sure to adapt values like "shop's id", "token key API", addresses, amounts, and other details according to your own configuration and needs.
All versions of feexpay-php with dependencies
ext-curl Version *
ext-json Version *