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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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 returns null on failure. Update your calls before upgrading.

Requirements

Installation

  1. Install a local server like Xampp or Wamp etc ...

  2. Install Composer if not already done.

  3. Check that Composer is installed by running the following command:

  4. Install the Feexpay package in your project:

    To upgrade an existing project:

Usage in a Simple PHP Environment

  1. Create your PHP project and install the package with Composer (see above).

    You can also download the Git repository instead:

  2. Create a PHP file, for example, index.php.

  3. Use the SDK methods in your PHP file:

  4. Check the status of a payment with its reference:

    getPaiementStatus() returns false when the reference is empty.

  5. Use the web payment method for the networks that redirect the customer to a payment page:

  6. Use the card payment method (VISA, MASTERCARD):

  7. You can also integrate a payment button in your PHP page:

Usage with Laravel

  1. In a Laravel project, run the following command to install the Feexpay package:

  2. Create the routes in your web.php file:

  3. Create a controller, for example, YourController.php, and use the Feexpay SDK inside this controller to handle payments:

  4. 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

PHP Build Version
Package Version
Requires php Version >=7.1
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package feexpay/feexpay-php contains the following files

Loading the files please wait ...