2017 © Pedro Peláez
 

package payline-module

Payline module for Zend Framework 2

image

ck-developer/payline-module

Payline module for Zend Framework 2

  • Wednesday, June 29, 2016
  • by ck-developer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

PaylineModule

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Based on Payline SDK, PaylineModule allows you to use it in a zend Framework 2 service. Payline is a way to do credit card payments online., (*2)

Installation

Installation of DoctrineModule uses composer. For composer documentation, please refer to getcomposer.org., (*3)

php composer.phar require ck-developer/payline-module

Then add PaylineModule to your config/application.config.php, (*4)

Usage

Configuration

First, Copy the payline.local.php.dist in your application config and set the file with your own configuration. Then, you can get the payline service with the following code :, (*5)

Basic Usage

       use PaylineModule\Utils\Action;
       use PaylineModule\Utils\Currency;
       use PaylineModule\Utils\Payment;

       $response = $this->getServiceLocator->get('payline')->doWebPayment([
            'payment'      => [
                'amount'         => 100,
                'action'         => Action::AUTHORIZATION_VALIDATION,
                'currency'       => Currency::EURO,
                'mode'           => Payment::CASH,
            ],
            'order'        => [
                'ref'      => 1,
            ]
        ]);

The Versions

29/06 2016

dev-master

9999999-dev

Payline module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

29/06 2016

1.0.0

1.0.0.0

Payline module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires