a Turkish YapiKredi Bank POS service connection for PHP.
composer require slvler/posnet-payment-service
<?php
$conf = array(
'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 = array(
'amount' => "x",
'installment' => 'x',
'tranType' => 'Sale',
'cardName' => 'xxxxx xxxxxxxxx',
'ccno' => 'xxxx xxxx xxxx xxxx',
'expDate' => 'xxxx',
'cvc' => 'xxx',
'currencyCode' => 'TL'
);
$order = new OrderClass($orderData);
?>