Skip to content

qrotux/qazkom-epay

This branch is 4 commits behind kolesa-team/qazkom-epay:master.

Folders and files

NameName
Last commit message
Last commit date
Apr 24, 2015
Apr 24, 2015
Nov 29, 2017
Feb 24, 2016
Dec 14, 2015
Feb 24, 2016
Jan 11, 2017
Mar 27, 2017
Nov 29, 2017
Dec 14, 2015
Nov 29, 2017

Repository files navigation

Qazkom-epay

PHP library for Qazkom ePay integration

Installation

$ composer require kolesa-team/qazkom-epay

Basic usage

$client = new \Epay\Client(array(
    'MERCHANT_CERTIFICATE_ID' => 'merchant certificate id',
    'MERCHANT_NAME'           => 'merchant name',
    'PRIVATE_KEY_FN'          => 'private key filename',
    'PRIVATE_KEY_PASS'        => 'private key password',
    'PRIVATE_KEY_ENCRYPTED'   => 1,
    'XML_TEMPLATE_FN'         => 'xml template filename',
    'XML_TEMPLATE_CONFIRM_FN' => 'xml confirmation template filename',
    'PUBLIC_KEY_FN'           => 'public key filename',
    'MERCHANT_ID'             => 'merchant id',
));

// Sign request for payment
$signature = $client->processRequest($orderId, $client->getCurrencyId('KZT'), $amount);

// Process payment system response
$result = $client->processResponse($response);

// Confirm request to unblock amount
$result = $client->processConfirmation($reference, $approvalCode, $orderId, $client->getCurrencyId('KZT'), $amount);

More information at https://testpay.kkb.kz/doc/htm/

About

PHP library for Qazkom ePay integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.8%
  • Shell 1.2%