slvler/posnet-payment-service

posnet payment system from turkish banks

v1.1.2 2024-10-20 21:36 UTC

This package is auto-updated.

Last update: 2024-10-20 21:41:34 UTC


README

tests Latest Stable Version Latest Unstable Version License Total Downloads

a Turkish YapiKredi Bank POS service connection for PHP.

Composer

composer require slvler/posnet-payment-service
<?php
$conf = [
    'mid' => 'xxxxxxxxxx',
    'tid' => 'xxxxxxxx',
    'clientId' => 'xxxx',
    'clientUser' => 'xxxxxxxx',
    'clientPass' => 'xxxxxxxx',
    'encKey' => 'x,xx,xx,xxx,xxx,xxx,xxx,xxx'
];

$config = new Config($conf); 
?>
<?php
$orderData = [
    'amount' => "x",
    'installment' => 'x',
    'tranType' =>  'Sale',
    'cardName' => 'xxxxx xxxxxxxxx',
    'ccno' => 'xxxx xxxx xxxx xxxx',
    'expDate' => 'xxxx',
    'cvc' => 'xxx',
    'currencyCode' => 'TL'
];
$order = new OrderClass($orderData);
?>