Skip to content

slvler/posnet-payment-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yapikredi-Posnet-Service

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