Skip to content

ck-developer/payline-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaylineModule

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

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.

Installation

Installation of DoctrineModule uses composer. For composer documentation, please refer to getcomposer.org.

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

Then add PaylineModule to your config/application.config.php

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 :

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,
            ]
        ]);

About

Payline module for Zend Framework 2

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages