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

include 'class/tbcpay.lib.php';
use WeAreDe\TbcPay\TbcPayProcessor;
$Payment = new TbcPayProcessor('/home/tsexpres/domains/tsexpress.ge/public_html/class/tbc.pem', 'dzroxuna90', $_SERVER['REMOTE_ADDR']);
$result = $Payment->close_day();
?>


<html>
<head>
    <title>TBCPAY</title>
</head>

<body>
 <h2>Response:</h2>
    <?php 
echo date('m/d/Y h:i:s a', time());
?>
    <p><?php 
print_r($result);
?>
</p>
   
   <?php 
$message = "Line 1\r\nLine 2\r\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70, "\r\n");
mail('*****@*****.**', 'My Subject', $message);
?>
コード例 #2
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'])) {