本文整理汇总了PHP中payment::setPaymentOrderId方法的典型用法代码示例。如果您正苦于以下问题:PHP payment::setPaymentOrderId方法的具体用法?PHP payment::setPaymentOrderId怎么用?PHP payment::setPaymentOrderId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类payment
的用法示例。
在下文中一共展示了payment::setPaymentOrderId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: orderCreate
function orderCreate($orderId)
{
$systemSetting = new systemSetting();
$order = new order();
$customer = new customer();
$currency_object = new CurrencyWord();
$currency = new currency();
$orderProduct = new orderProduct();
$payment = new payment();
$country = new country();
$order->setOrderId($orderId);
$order->extractor($order->getOrderById());
$orderProduct->setOrderPOrderId($order->orderId());
$orderProduct_rows = $orderProduct->getProductsByOrderId();
$payment->setPaymentOrderId($order->orderId());
$result = $orderProduct->getTotalDetailByOrderId();
$systemSetting->extractor($systemSetting->getSettings());
$customer->setCustomerId($order->orderCustomerId());
$customer->extractor($customer->getCustomerById());
$currency->setCurrId(1);
$currencyName = $currency->getCurrencyNameById();
$country->setCountryId($order->orderDeliveryCity());
$countryName = $country->getCountryNameById();
$filename = $systemSetting->sySettingDocumentName() . 'Invoice_' . $order->orderInvoiceRefNumber() . '.pdf';
$subject = $systemSetting->sySettingCompanyName() . " - New Order Place....!";
$strContent = '
<table width="800" border="0" style="font-family:Arial, Helvetica, sans-serif; background:#eee; font-size:12px; color:#333333;">
<tr>
<td colspan="3" rowspan="8" align="left" valign="top">
<img src="' . DOC_ROOT . 'uplode-img/company-logo/' . $systemSetting->sySettingCompanyLogo() . '" />
</br>
<div style="padding-left:20px;font-size:16px; font-weight:bold; margin-bottom:8px;margin-top:20px;">' . $systemSetting->sySettingCompanyName() . ' </div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">' . $systemSetting->sySettingCompanyAddress() . '</div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">Telephone : ' . $systemSetting->sySettingCompanyPhon() . '</div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">Email : ' . $systemSetting->sySettingCompanyEmail() . '</div>
</td>
<td colspan="3" bgcolor="#CC0000" style="color:#FFF; font-size:14px; padding:5px; text-align:right; font-weight:700; letter-spacing:1px;">C u s t o m e r I n v o i c e</td>
</tr>
<tr>
<td > </td>
<td colspan="2"> </td>
</tr>
<tr>
<td > </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Date</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . date('l jS \of F Y ', strtotime($order->orderCreatedDate())) . '</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Invoice No</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . $order->orderInvoiceRefNumber() . '</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Order No</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . $order->orderRefNumber() . '</td>
</tr>
<tr>
<td colspan="3" > </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="6" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">To</td>
</tr>
<tr>
<td colspan="6" style="padding:3px; border-bottom:1px #484848 dotted;">
<div style="margin-bottom:5px; margin-top:5px; font-weight:700;">' . $customer->customerName() . ' </div>
<div style="font-size:10px;font-size:10px;">' . $customer->customerAddress() . '</div></td>
</tr>
<tr>
<td colspan="6"> </td>
</tr>
<tr>
<td width="19%" align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px; width:5%;">No</td>
<td width="11%" align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px; width:15%">Item Code</td>
//.........这里部分代码省略.........