kolesa-team/qazkom-epay

There is no license information available for the latest version (1.0.0) of this package.

PHP library for Qazkom ePay

Installs: 7 634

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 15

Forks: 10

Open Issues: 1

pkg:composer/kolesa-team/qazkom-epay

1.0.0 2017-11-29 05:12 UTC

This package is auto-updated.

Last update: 2025-10-05 16:44:33 UTC


README

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/