|
|
|
@ -573,7 +573,22 @@ class Orders extends CI_Controller {
|
|
|
|
|
);
|
|
|
|
|
$this->email_customer($email_data);
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
$paymentRequired = $this->input->post('payment_required');
|
|
|
|
|
if (empty($paymentRequired)) {
|
|
|
|
|
redirect(site_url('orders/thankyou?inquire'));
|
|
|
|
|
} else {
|
|
|
|
|
$this->load->library('Currency');
|
|
|
|
|
$addurl = '';
|
|
|
|
|
$totalprice = $this->input->post('total_price');
|
|
|
|
|
$total_rmb = $this->currency->get_USD_RMB_SUM($totalprice);
|
|
|
|
|
$signstr = 'currency=USD&order_id=' . $this->Orders_model->COLI_ID . '_T&rmb_amount=' . $total_rmb . '&total_amount=' . $totalprice . '&key=7a46484300f04031b42fdd44559578e4';
|
|
|
|
|
$sign = md5($signstr);
|
|
|
|
|
$addurl .= base64_encode('order_id=' . $this->Orders_model->COLI_ID . '_T&subject=Booking Yi Peng Festival Tickets&body=Booking Yi Peng Festival Tickets&total_amount=' . $totalprice . '¤cy=USD&rmb_amount=' . $total_rmb . '&sign=' . $sign . '&lg=en_US&return_url=https://www.asiahighlights.com/orders/thankyou?inquire');
|
|
|
|
|
$payurl = 'https://secure.chinahighlights.com/pay/paymentservice/?' . $addurl;
|
|
|
|
|
|
|
|
|
|
redirect($payurl);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//新版tailormade入库程序
|
|
|
|
|