本文整理汇总了PHP中payment::get_CurrentCurrency方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::get_CurrentCurrency方法的具体用法?PHP payment::get_CurrentCurrency怎么用?PHP payment::get_CurrentCurrency使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类payment
的用法示例。
在下文中一共展示了payment::get_CurrentCurrency方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Table
$_SESSION["p_module"] = $payment;
$_SESSION["p_amount"] = 3;
$paymentTable = new Table();
$time_stamp = date("Y-m-d H:i:s");
$amount_string = sprintf("%.3F", $total_amount);
$payment_modules = new payment($payment);
$order = new order($amount_string);
if (!isset($wm_purse_type)) {
$paycur = 1;
$getcur = strtoupper(BASE_CURRENCY);
} else {
if (is_array($payment_modules->modules)) {
$getcur = $payment_modules->get_CurrentCurrency();
}
}
$paycur = $currencies_list[$getcur][2];
if (strtoupper($payment)=='PLUGNPAY') {
$QUERY_FIELDS = "cardid, amount, vat, paymentmethod, cc_owner, cc_number, cc_expires, creationdate, cvv, credit_card_type, currency , item_id , item_type";
$QUERY_VALUES = "'".$_SESSION["card_id"]."','$amount_string', '".$_SESSION["vat"]."', '$payment','$plugnpay_cc_owner','".substr($plugnpay_cc_number,0,4)."XXXXXXXXXXXX','".$plugnpay_cc_expires_month."-".$plugnpay_cc_expires_year."','$time_stamp', '$cvv', '$credit_card_type', '".BASE_CURRENCY."' , '$item_id', '$item_type'";
} else if(strtoupper($payment)=='IRIDIUM'){
$QUERY_FIELDS = "cardid, amount, vat, paymentmethod, cc_owner, cc_number, cc_expires, creationdate, currency, item_id, item_type";
$QUERY_VALUES = "'".$_SESSION["card_id"]."','$amount_string', '".$_SESSION["vat"]."', '$payment','$CardName','".substr($CardNumber,0,4)."XXXXXXXXXXXX','".$ExpiryDateMonth."-".$ExpiryDateYear."','$time_stamp', '".BASE_CURRENCY."' , '$item_id','$item_type'";
} else {
$QUERY_FIELDS = "cardid, amount, vat, paymentmethod, cc_owner, cc_number, cc_expires, creationdate, currency, item_id, item_type";
$QUERY_VALUES = "'".$_SESSION["card_id"]."','$amount_string', '".$_SESSION["vat"]."', '$payment','$authorizenet_cc_owner','".substr($authorizenet_cc_number,0,4)."XXXXXXXXXXXX','".$authorizenet_cc_expires_month."-".$authorizenet_cc_expires_year."','$time_stamp', '".$getcur."' , '$item_id','$item_type'";
}
示例2: strtoupper
: </div></td>
<td width=50%><?php
echo strtoupper($payment);
?>
</td>
</tr>
<tr>
<td align=right><?php
echo gettext("Total Amount");
?>
: </td>
<td align=left><?php
echo $amount;
?>
<?php
echo $payment_modules->get_CurrentCurrency();
?>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<br>
<table class="infoBox" width="80%" cellspacing="0" cellpadding="2" align=center>
<tr height="25">
<td align=left class="main"> <b><?php
echo gettext("Please click button to confirm your order");
?>
.</b>