/posnet-payment-service

posnet payment system from turkish banks

Primary LanguagePHPMIT LicenseMIT

Yapikredi-Posnet-Service

tests Latest Stable Version Latest Unstable Version License

a Turkish YapiKredi Bank POS service connection for PHP.

Composer

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);

?>