代码拉取完成,页面将自动刷新
<?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.");
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。