コード例 #1
0
ファイル: start.php プロジェクト: oalkhanishvili/track2
<?php

include 'tbcpay.lib.php';
use WeAreDe\TbcPay\TbcPayProcessor;
$Payment = new TbcPayProcessor('http://tsexpress.ge/class/securepay.ufc.ge_5300486_merchant_wp.pem', '0DhJ4AdxVuPZmz3F4y', $_SERVER['REMOTE_ADDR']);
$Payment->amount = 1;
// 1 = 1 tetri
$Payment->currency = 981;
// 981 = GEL
$Payment->description = 'Your product description, will be shown to client on card processing page!';
$Payment->language = 'GE';
// Interface language
$start = $Payment->sms_start_transaction();
if (isset($start['TRANSACTION_ID']) and !isset($start['error'])) {
    $trans_id = $start['TRANSACTION_ID'];
}
?>


<html>
<head>
    <title>TBCPAY</title>
    <script type="text/javascript" language="javascript">
        function redirect() {
          document.returnform.submit();
        }
    </script>
</head>

<?php 
if (isset($start['error'])) {