3 Star 0 Fork 0

Gitee 极速下载 / bitcoin-virtuemart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mikegogulski/bitcoin-virtuemart
克隆/下载
extrainfo.php 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
include_once(CLASSPATH . "payment/ps_bitcoin.cfg.php");
require_once(CLASSPATH . "ps_order.php");
require_once(CLASSPATH . "bitcoin.inc");
$tot = number_format($db->f("order_total"), 2, ".", "");
$addr = $_SESSION["bitcoin_address"];
$oid = $db->f("order_id");
$addrinfo = "To make your payment and complete your order, please send BTC " . $tot . " to Bitcoin address " . $addr;
$confirminfo = "Your payment will be confirmed when " . BITCOIN_CONFIRMS . " confirmation";
if (BITCOIN_CONFIRMS != 1)
$confirminfo .= "s";
$confirminfo .= " of the transaction ha";
if (BITCOIN_CONFIRMS != 1)
$confirminfo .= "ve";
else
$confirminfo .= "s";
$confirminfo .= " been received.";
$confirminfo .= " If payment is not received within " . BITCOIN_TIMEOUT . " hours, your order will be canceled automatically.";
if (Bitcoin::checkAddress($addr)) {
$q = "UPDATE #__vm_order_payment SET order_payment_name='" . $addr . "' WHERE order_id='" . $oid . "'";
$db->query($q);
echo "<p><strong>" . $addrinfo . "</strong><p>";
echo "<p>" . $confirminfo . "</p>";
$d['include_comment'] = "Y";
$d['order_comment'] = $addrinfo . ". " . $confirminfo;
$d['current_order_status'] = "P";
$d['order_status'] = "P";
$d['notify_customer'] = "Y";
$d['order_id'] = $oid;
$order = new ps_order;
// TODO: hackish but it gets the info to the customer. revisit.
$order->order_status_update($d);
} else {
$vmLogger->err("Shopping cart expired.");
}
?>
PHP
1
https://gitee.com/mirrors/bitcoin-virtuemart.git
git@gitee.com:mirrors/bitcoin-virtuemart.git
mirrors
bitcoin-virtuemart
bitcoin-virtuemart
master

搜索帮助