Skip to content

luismarto/easypay

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 14 commits ahead of jpcarvalho1992:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

PHP wrapper for Easypay API integration

This package provides wrapper methods to call Easypay payment system API.

This package was forked from Easypay PHP-Wrapper and allows you to integrate the wrapper with any PHP framework or project that uses Composer.

Installation

Require the package in your composer.json file and update composer:

"luismarto/easypay": "1.*"

Basic usage

Require the package in your composer.json file and update composer:

use Easypay\Easypay;

/**
 * @var Easypay $easypay
 */
protected $easypay;

public function __construct() {
    $this->easypay = new Easypay([
        'ep_user'   => 'ABCDEF',
        'ep_entity' => '12345',
        'ep_cin'    => '123456',
        's_code'    => 'ABCDEFGJI',
    ]);
}

public function createReference() {
    $this->easypay->setValue('t_value', '43.18');
    $this->easypay->setValue('t_key', 1);
    
    $result = $this->client->createReference('normal');
    
}

Documentation & examples

In examples/ you can find a sample database schema and fully functional code that integrates with Easypay and uses this package.

For further details and documentation, you can read the following articles:

Introduction to Easypay API integration (portuguese)

Multibanco integration - soon

Débito Direto integration - soon

License

This package is open-sourced software licensed under the MIT license.

About

PHP package for integration with Easypay Payment System

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%