2017 © Pedro Peláez
 

library paysec

Paysec driver for the Omnipay payment processing library

image

antonis0490/paysec

Paysec driver for the Omnipay payment processing library

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Paysec: Paysec

Paysec driver for the Paysec PHP payment processing library, (*1)

Installation

Paysec is installed via Composer. To install, simply add it to your composer.json file:, (*2)

{
    "require": {
        "Paysec/paysec": "dev-master"
    }
}

And run composer to update your dependencies:, (*3)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

To make a request:, (*4)

use Omnipay\Omnipay;
use Omnipay\Paysec\Message\StatusCallback;

$gateway = Omnipay::create('Paysec');

$gateway->initialize(array(
    'clientId' => "your client id",
    'secret' => "your secret,
    'testMode' =>  // Or false when you are ready for live transactions
));

$options = array
(

    "header" => "3",
    "clientId" => "",
    "channelCode" => "BANK_TRANSFER",
    "notifyURL" => "",
    "returnURL" => "",
    "amount" => "",
    "orderTime" => (string)round(microtime(true) * 1000),
    "cartId" => "",
    "currency" => "",
    "email" => "",
    "name" => "",
    "lname" => ""

);

$transaction = $gateway->purchase($options);
$response = $transaction->send();
$resData = $response->getData();

Notify function:, (*5)

$status = new StatusCallback($_REQUEST);

$secret = "";
$wallet = "";
$validSignature = "";

if ($validSignature && $status->isSuccessful()) {
    //sucess
} else if ($validSignature && $status->isPending()) {
    //pending
} else if ($validSignature) {
    //failed
} else {
    //error
}

The following gateways are provided by this package:, (*6)

  • Paysec

For general usage instructions, please see the main Omnipay site., (*7)

The Versions

12/03 2018

dev-master

9999999-dev https://github.com/antonis0490/paysec

Paysec driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

payment pay gateway merchant omnipay paysec

12/03 2018

dev-dev-master

dev-dev-master https://github.com/antonis0490/paysec

Paysec driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

payment pay gateway merchant omnipay paysec