本文整理汇总了PHP中get_country_name函数的典型用法代码示例。如果您正苦于以下问题:PHP get_country_name函数的具体用法?PHP get_country_name怎么用?PHP get_country_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_country_name函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: country_list
function country_list()
{
global $serviceproviders;
$country_list = get_country_name("ALL");
foreach ($serviceproviders as $sp) {
foreach ($country_list as $country) {
if (strtoupper($sp['attr']['code']) == $country['code']) {
echo $country['name'] . ":" . $country['code'] . "\n";
}
}
}
}
示例2: get_person_location
function get_person_location($person)
{
$txts = array();
if ($person->living_local) {
if ($person->location) {
$person->location = str_ireplace('park', 'the Park', $person->location);
$txts[] = "currently living locally in {$person->location}";
} else {
$txts[] = 'currently living locally';
}
} elseif ($person->country_current && $person->country_current == $person->country_origin) {
$txts[] = 'currently living in and originally from ' . get_country_name($person->country_current);
} elseif ($person->country_current && $person->country_current != $person->country_origin) {
$txts[] = 'currently living in ' . get_country_name($person->country_current);
}
if ($person->country_origin && '?' != substr($person->country_origin, 0, 1) && $person->country_current != $person->country_origin) {
$txts[] = 'originally from ' . get_country_name($person->country_origin);
}
if (empty($txts)) {
return '';
}
$txts[0] = ucfirst($txts[0]);
return implode(', ', $txts) . '.';
}
示例3: build_country_list
function build_country_list()
{
global $serviceproviders;
$list = array();
// get_country_name is in pfSense-utils.inc
$country_list = get_country_name("ALL");
foreach ($country_list as $country) {
$list[$country['code']] = $country['name'];
}
return $list;
}
示例4: item_country_box
function item_country_box($country_txt, $country_select_txt)
{
$aCountries = osc_get_countries();
$item = osc_item() != null ? osc_item() : array();
switch (count($aCountries)) {
case 0:
// no country, show input
?>
<div class="clearfix">
<label><?php
echo $country_txt;
?>
</label>
<div class="input">
<input class="country_name" id="country_name" type="text" name="country" value="<?php
echo get_country_name($item);
?>
" />
</div>
</div>
<?php
break;
case 1:
// one country
?>
<input class="country_id" id="country_id" type="hidden" name="countryId" value="<?php
echo get_country_id($item);
?>
" />
<?php
break;
default:
// more than one country
?>
<div class="clearfix">
<label><?php
echo $country_txt;
?>
</label>
<div class="input">
<select class="country_id" id="country_id" name="countryId">
<option value=""><?php
echo $country_select_txt;
?>
</option>
<?php
foreach ($aCountries as $country) {
?>
<option value="<?php
echo $country['pk_c_code'];
?>
"><?php
echo $country['s_name'];
?>
</option>
<?php
}
?>
</select>
</div>
</div>
<?php
break;
}
}
示例5: get_country_name
}
if ($invoice->user_city && $invoice->user_zip) {
echo '<div>' . $invoice->user_city . ' ' . $invoice->user_zip . '</div>';
} else {
if ($invoice->user_city) {
echo '<div>' . $invoice->user_city . '</div>';
}
if ($invoice->user_zip) {
echo '<div>' . $invoice->user_zip . '</div>';
}
}
if ($invoice->user_state) {
echo '<div>' . $invoice->user_state . '</div>';
}
if ($invoice->user_country) {
echo '<div>' . get_country_name(trans('cldr'), $invoice->user_country) . '</div>';
}
echo '<br/>';
if ($invoice->user_phone) {
echo '<div>' . trans('phone_abbr') . ': ' . $invoice->user_phone . '</div>';
}
if ($invoice->user_fax) {
echo '<div>' . trans('fax_abbr') . ': ' . $invoice->user_fax . '</div>';
}
?>
</div>
</header>
<main>
示例6: column_default
function column_default($item, $column_name)
{
global $gourl;
$tmp = "";
switch ($column_name) {
case 'unrecognised':
case 'txConfirmed':
case 'processed':
if (!($column_name == "processed" && strpos($item->orderID, "file_") !== 0)) {
$title = "";
if ($column_name == 'processed') {
$title = "title='" . ($item->{$column_name} ? __('User already downloaded this file from your website', GOURL) : __('User not downloaded this file yet', GOURL)) . "'";
}
$tmp = gourl_checked_image($item->{$column_name});
}
break;
case 'boxID':
if ($item->{$column_name}) {
$tmp = "<a title='" . __('View Statistics', GOURL) . "' href='https://gourl.io/view/coin_boxes/" . $item->{$column_name} . "/statistics.html' target='_blank'>" . $item->{$column_name} . "</a>";
}
break;
case 'orderID':
if ($item->{$column_name}) {
$url = "";
if (strpos($item->{$column_name}, "product_") === 0) {
$url = GOURL_ADMIN . GOURL . "product&id=" . substr($item->{$column_name}, 8) . "&gourlcryptocoin=" . $this->coin_names[$item->coinLabel] . "&preview=true";
} elseif (strpos($item->{$column_name}, "file_") === 0) {
$url = GOURL_ADMIN . GOURL . "file&id=" . substr($item->{$column_name}, 5) . "&gourlcryptocoin=" . $this->coin_names[$item->coinLabel] . "&preview=true";
} elseif ($item->{$column_name} == "payperview") {
$url = GOURL_ADMIN . GOURL . "payperview";
} elseif (strpos($item->{$column_name}, "membership") === 0) {
$url = GOURL_ADMIN . GOURL . "paypermembership";
} elseif (strpos($item->{$column_name}, "gourlwoocommerce") === 0) {
$item->{$column_name} = __('woocommerce', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("post.php?post=" . str_replace("gourlwoocommerce.order", "", $item->{$column_name}) . "&action=edit") . "'>" . __('order', GOURL) . " " . str_replace("gourlwoocommerce.order", "", $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourlwpecommerce") === 0) {
$item->{$column_name} = __('wp ecommerce', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("index.php?page=wpsc-purchase-logs&c=item_details&id=" . str_replace("gourlwpecommerce.order", "", $item->{$column_name}) . "&action=edit") . "'>" . __('order', GOURL) . " " . str_replace("gourlwpecommerce.order", "", $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourljigoshop") === 0) {
$item->{$column_name} = __('jigoshop', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("post.php?post=" . $gourl->left($gourl->right($item->{$column_name}, ".order"), "_") . "&action=edit") . "'>" . __('order', GOURL) . " " . str_replace("_", " (", str_replace("gourljigoshop.order", "", $item->{$column_name})) . ")" . "</a>";
} elseif (strpos($item->{$column_name}, "gourlappthemes") === 0) {
$escrow = strpos($item->{$column_name}, "gourlappthemes.escrow") === 0 ? true : false;
$item->{$column_name} = __('appthemes', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("post.php?post=" . str_replace(array("gourlappthemes.order", "gourlappthemes.escrow"), array("", ""), $item->{$column_name}) . "&action=edit") . "'>" . ($escrow ? __('escrow', GOURL) : __('order', GOURL)) . " " . str_replace(array("gourlappthemes.order", "gourlappthemes.escrow"), array("", ""), $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourlmarketpress") === 0) {
$item->{$column_name} = __('marketpress', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("edit.php?post_type=product&page=marketpress-orders&s=" . str_replace("gourlmarketpress.", "", $item->{$column_name})) . "'>" . __('order', GOURL) . " " . str_replace("gourlmarketpress.", "", $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourlpmpro") === 0) {
$item->{$column_name} = __('pmpro', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("admin.php?page=pmpro-orders&order=" . $gourl->left($gourl->right($item->{$column_name}, ".order"), "_")) . "'>" . __('order', GOURL) . " " . str_replace("gourlpmpro.order", "", $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourlgive") === 0) {
$item->{$column_name} = __('give', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("edit.php?post_type=give_forms&page=give-payment-history&view=view-order-details&id=" . $gourl->left($gourl->right($item->{$column_name}, ".donation"), "_")) . "'>" . __('donation', GOURL) . " " . str_replace("gourlgive.donation", "", $item->{$column_name}) . "</a>";
} elseif (strpos($item->{$column_name}, "gourledd") === 0) {
$item->{$column_name} = __('edd', GOURL) . ", <a class='gourlnowrap' href='" . admin_url("edit.php?post_type=download&page=edd-payment-history&view=view-order-details&id=" . $gourl->left($gourl->right($item->{$column_name}, ".order"), "_")) . "'>" . __('order', GOURL) . " " . str_replace("gourledd.order", "", $item->{$column_name}) . "</a>";
} else {
$item->{$column_name} = str_replace(".", ", ", str_replace("gourl", "", $item->{$column_name}));
}
$tmp = $url ? "<a href='" . $url . "'>" . $item->{$column_name} . "</a>" : $item->{$column_name};
}
break;
case 'userID':
if ($item->{$column_name}) {
$tmp = strpos($item->{$column_name}, "user") === 0 ? gourl_userdetails($item->{$column_name}) : __('Guest', GOURL);
} elseif ($item->unrecognised) {
$tmp = "? <small>" . __('wrong paid amount', GOURL) . "</small>";
}
break;
case 'amountUSD':
$num = gourl_number_format($item->{$column_name}, 8);
$tmp = $num . ' ' . __('USD', GOURL);
break;
case 'amount':
$num = gourl_number_format($item->{$column_name}, 8);
$tmp = $num . ' ' . $item->coinLabel;
break;
case 'coinLabel':
if ($item->{$column_name}) {
$val = $this->coin_names[$item->{$column_name}];
$tmp = "<a href='" . GOURL_ADMIN . GOURL . "payments&s=" . $val . "'><img width='40' alt='" . $val . "' title='" . __('Show this coin transactions only', GOURL) . "' src='" . plugins_url('/images/' . $val . '.png', __FILE__) . "' border='0'></a>";
}
break;
case 'countryID':
if ($item->{$column_name}) {
$tmp = "<a title='" . __('Show Only Visitors from this Country', GOURL) . "' href='" . GOURL_ADMIN . GOURL . "payments&s=" . $item->{$column_name} . "'><img width='16' border='0' style='margin-right:7px' alt='" . $item->{$column_name} . "' src='" . plugins_url('/images/flags/' . $item->{$column_name} . '.png', __FILE__) . "' border='0'></a>" . get_country_name($item->{$column_name});
}
break;
case 'txID':
if ($item->{$column_name}) {
$tmp = "<a title='" . __('Transaction Details', GOURL) . " - " . $item->{$column_name} . "' href='" . $this->coin_chain[$this->coin_names[$item->coinLabel]] . (stripos($this->coin_chain[$this->coin_names[$item->coinLabel]], 'cryptoid.info') ? 'tx.dws?' : 'tx/') . $item->{$column_name} . "' target='_blank'>" . $item->{$column_name} . "</a>";
}
break;
case 'addr':
if ($item->{$column_name}) {
$tmp = "<a title='" . __('Wallet Details', GOURL) . " - " . $item->{$column_name} . "' href='" . $this->coin_chain[$this->coin_names[$item->coinLabel]] . (stripos($this->coin_chain[$this->coin_names[$item->coinLabel]], 'cryptoid.info') ? 'address.dws?' : 'address/') . $item->{$column_name} . "' target='_blank'>" . $item->{$column_name} . "</a>";
}
break;
case 'txDate':
case 'txCheckDate':
case 'recordCreated':
case 'processedDate':
if (!($column_name == "processedDate" && strpos($item->orderID, "file_") !== 0)) {
$tmp = $item->{$column_name} != '0000-00-00 00:00:00' ? date("d M Y, H:i A", strtotime($item->{$column_name})) : '-';
}
break;
default:
//.........这里部分代码省略.........
示例7: payment_info
public function payment_info()
{
$obj = $this->paymentID ? run_sql("SELECT * FROM crypto_payments WHERE paymentID = {$this->paymentID} LIMIT 1") : false;
if ($obj) {
$obj->countryName = get_country_name($obj->countryID);
}
return $obj;
}
示例8: act_addDistributorOrder
function act_addDistributorOrder()
{
$orderArrJson = json_decode($_POST["orderArr"], true);
$app_key = trim($_POST['app_key']);
$account = $this->getOrderSystemAccount($app_key);
$accountInfo = omAccountModel::getAccountInfoByName($account);
$accountId = $accountInfo['id'];
$orderAddAct = new OrderAddAct();
$rtnArr = array();
foreach ($orderArrJson as $val) {
$itemRtn = array();
$orderId = $val['orderId'];
$check = $orderAddAct->checkDuplicateOrder($orderId, '16');
if ($check) {
$itemRtn["errcode"] = 80001;
$itemRtn["orderId"] = $orderId;
$itemRtn["msg"] = "系统已经存在[" . $orderId . "]这个订单";
$rtnArr[] = $itemRtn;
continue;
}
//return $rtnArr;
$insertOrder = array();
/***************BEGIN 订单表数据***************/
//$unshipedOrder = array();
$orderdata['recordNumber'] = $orderId;
$orderdata['platformId'] = 16;
//国内销售部
$orderdata['accountId'] = $accountId;
$orderdata['orderStatus'] = C('STATEPENDING');
$orderdata['orderType'] = C('STATEPENDING');
//daichu
//$gmtCreate = time_shift($val['gmtCreate']);
$orderdata['ordersTime'] = $val['gmtCreate'];
$orderdata['paymentTime'] = "";
//$pay_time[0];
$orderdata['onlineTotal'] = "";
//$order['initOderAmount']['amount']; //线上总金额
$orderdata['actualTotal'] = "";
//$orderDetail2['payAmount']['amount'];//付款总金额
$orderdata['calcShipping'] = $orderdata['orderAddTime'] = time();
$orderdata['isFixed'] = 1;
/***************END 订单表数据***************/
/***************BEGIN 订单扩展表数据***************/
$orderExtAli = array();
//
$orderExtAli['declaredPrice'] = $val['orderAmount']['amount'];
$orderExtAli['paymentStatus'] = "";
//$order['fundStatus'];
$orderExtAli['transId'] = "";
//$val['tradeID'];//$order['id'];//$orderdetail["id"]; // 交易id;;
//$orderExtAli[PayPalPaymentId"] = '';
//$orderExtAli["site"] = '';
$orderExtAli['orderId'] = $val['orderId'];
$orderExtAli['platformUsername'] = "";
//$order['buyerSignerFullname'];;
$orderExtAli['currency'] = $val['orderAmount']['currencyCode'];
$orderExtAli['PayPalEmailAddress'] = "";
//$order['buyerInfo']['email'];;
$orderExtAli['eBayPaymentStatus'] = "";
//1?//$order['orderStatus']; //订单状态;
/***************END 订单扩展表数据***************/
/***************BEGIN 订单用户表数据***************/
$orderUserInfo = array();
$orderUserInfo['username'] = $val['receiptAddress']['contactPerson'];
$orderUserInfo['platformUsername'] = "";
//$order['buyerSignerFullname'];
$orderUserInfo['email'] = "";
//$order['buyerInfo']['email'];
$orderUserInfo['countryName'] = get_country_name($val['receiptAddress']['country']);
$orderUserInfo['countrySn'] = $val['receiptAddress']['country'];
$orderUserInfo['currency'] = $val['orderAmount']['currencyCode'];
$orderUserInfo['state'] = $val['receiptAddress']['province'];
$orderUserInfo['city'] = $val['receiptAddress']['city'];
$orderUserInfo['street'] = $val['receiptAddress']['address1'];
//?//$val['receiptAddress']['detailAddress'];
$orderUserInfo['address2'] = isset($val['receiptAddress']['address2']) ? $val['receiptAddress']['address2'] : "";
$orderUserInfo['zipCode'] = $val['receiptAddress']['zip'];
$orderUserInfo['phone'] = $val['receiptAddress']['phoneNumber'];
/*************END 订单用户表数据***************/
$carrier = array();
$item_notes = array();
$noteb = array();
$insertOrder = array('orderData' => $orderdata, 'orderExtenData' => $orderExtAli, 'orderUserInfoData' => $orderUserInfo);
$orderweight = "";
$obj_order_detail_data = array();
foreach ($val['childOrderList'] as $orderdetail) {
//明细表
$orderdata_detail = array();
//$orderdata_detail['omOrderId'] = $insertId;//$order["id"];
$orderdata_detail['recordNumber'] = $orderId;
$orderdata_detail['sku'] = $orderdetail['productAttributes']['sku'];
//substr($orderdetail['skuCode'],0,stripos($orderdetail['skuCode'],'#'));
$orderdata_detail['itemPrice'] = $orderdetail['productAttributes']['itemPrice'];
$orderdata_detail['amount'] = $orderdetail['lotNum'];
//$orderdata_detail["shippingFee"] = '';
//$orderdata_detail["reviews"] = '';
$orderdata_detail['createdTime'] = time();
//明细扩展表
$orderDetailExtAli = array();
$orderDetailExtAli['itemTitle'] = $orderdetail['productAttributes']['itemTitle'];
//.........这里部分代码省略.........
示例9: get_country_name
}
if ($quote->user_city && $quote->user_zip) {
echo '<div>' . $quote->user_city . ' ' . $quote->user_zip . '</div>';
} else {
if ($quote->user_city) {
echo '<div>' . $quote->user_city . '</div>';
}
if ($quote->user_zip) {
echo '<div>' . $quote->user_zip . '</div>';
}
}
if ($quote->user_state) {
echo '<div>' . $quote->user_state . '</div>';
}
if ($quote->user_country) {
echo '<div>' . get_country_name(lang('cldr'), $quote->user_country) . '</div>';
}
echo '<br/>';
if ($quote->user_phone) {
echo '<div>' . lang('phone_abbr') . ': ' . $quote->user_phone . '</div>';
}
if ($quote->user_fax) {
echo '<div>' . lang('fax_abbr') . ': ' . $quote->user_fax . '</div>';
}
?>
</div>
</header>
<main>
示例10: get_country_name
echo $client->client_address_1 ? $client->client_address_1 . '<br>' : '';
?>
<?php
echo $client->client_address_2 ? $client->client_address_2 . '<br>' : '';
?>
<?php
echo $client->client_zip ? $client->client_zip : '';
?>
<?php
echo $client->client_city ? $client->client_city : '';
?>
<?php
echo $client->client_state ? '(' . $client->client_state . ')' : '';
?>
<?php
echo $client->client_country ? '<br>' . get_country_name(lang('cldr'), $client->client_country) : '';
?>
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-4">
<table class="table table-condensed table-bordered items">
<tr class="">
<td>
<b><?php
echo lang('total_billed');
?>
</b>
</td>
<td class="td-amount">
<?php
echo format_currency($client->client_invoice_total);
示例11: gourlcallback
public function gourlcallback($user_id, $order_id, $payment_details, $box_status)
{
if (!in_array($box_status, array("cryptobox_newrecord", "cryptobox_updated"))) {
return false;
}
if (strpos($order_id, "order") === 0) {
$order_id = substr($order_id, 5);
} else {
return false;
}
if (!$user_id || $payment_details["status"] != "payment_received") {
return false;
}
$order = new WC_Order($order_id);
if ($order === false) {
return false;
}
$coinName = ucfirst($payment_details["coinname"]);
$amount = $payment_details["amount"] . " " . $payment_details["coinlabel"] . "  ( \$" . $payment_details["amountusd"] . " )";
$payID = $payment_details["paymentID"];
$status = $payment_details["is_confirmed"] ? $this->ostatus2 : $this->ostatus;
$confirmed = $payment_details["is_confirmed"] ? __('Yes', GOURLWC) : __('No', GOURLWC);
// New Payment Received
if ($box_status == "cryptobox_newrecord") {
$order->add_order_note(sprintf(__("%s Payment Received<br>%s<br>Payment id <a href='%s'>%s</a> / <a href='%s'>order page</a> <br>Awaiting network confirmation...", GOURLWC), __($coinName, GOURLWC), $amount, GOURL_ADMIN . GOURL . "payments&s=payment_" . $payID, $payID, $order->get_checkout_order_received_url() . "&gourlcryptocoin=" . $payment_details["coinname"]) . '<br>');
update_post_meta($order->id, 'coinname', $coinName);
update_post_meta($order->id, 'amount', $payment_details["amount"] . " " . $payment_details["coinlabel"]);
update_post_meta($order->id, 'userid', $payment_details["userID"]);
update_post_meta($order->id, 'country', get_country_name($payment_details["usercountry"]));
update_post_meta($order->id, 'tx', $payment_details["tx"]);
update_post_meta($order->id, 'confirmed', $confirmed);
update_post_meta($order->id, 'details', $payment_details["paymentLink"]);
}
// Update Status
$order->update_status($status);
// Existing Payment confirmed (6+ confirmations)
if ($payment_details["is_confirmed"]) {
update_post_meta($order->id, 'confirmed', $confirmed);
$order->add_order_note(sprintf(__("%s Payment id <a href='%s'>%s</a> Confirmed", GOURLWC), __($coinName, GOURLWC), GOURL_ADMIN . GOURL . "payments&s=payment_" . $payID, $payID) . '<br>');
}
// Completed
if ($status == "completed") {
$order->payment_complete();
}
return true;
}
示例12: error_reporting
error_reporting(E_ALL);
//create Arrays
$aLanguages = explode(",", $sLanguages);
$aTypes = explode(",", $sTypes);
//Main loop
foreach ($aLanguages as $sLang) {
$sFile = $sLang . ".php";
echo $sLang . ", ";
//combining both files allows it to keep already translated stuff
include $sDefaultLanguage . ".php";
if (!isset($_GET['overwrite']) and !isset($_GET['trans'])) {
@(include $sFile);
}
// Set the language information
$language_code = $sLang;
$language_name = get_country_name($sLang);
//get new Language Variables from Array
$sLangVars = "\n\n\n";
foreach ($aTypes as $value) {
foreach (${$value} as $key => $subvalue) {
$sLangVars .= '$' . $value . '[\'' . $key . '\'] = \'' . maketext($subvalue) . '\'' . ";\n";
}
$sLangVars .= "\n\n\n";
}
/* echo "<pre>";
echo $sLangVars;
echo "</pre>";
*/
//compose File
$sFileContent = '<?php
/**
示例13: header
<?php
// process client request (via URL)
header("Content-Type:application/json");
include "country.php";
if (!empty($_GET['name'])) {
//gets the variable name in url
$name = $_GET['name'];
$country_name = get_country($name);
if (empty($country_name)) {
get_country_name(200, "{$name} not found", NULL);
} else {
get_country_name(200, "{$name} found", $country_name);
}
} else {
get_country_name(400, "Invalid Request", NULL);
}
// function returns the search result in json format
// $status :http status
// $status_message :http status_message
// $data : country name
function get_country_name($status, $status_message, $data)
{
//sends raw http data to client
header("HTTP/1.1 {$status} {$status_message}");
$response['status'] = $status;
$response['status_message'] = $status_message;
$response['data'] = $data;
$json_response = json_encode($response);
echo $json_response;
}
示例14: array
//$orderdetail["id"]; // 交易id;;
//$orderExtAli[PayPalPaymentId"] = '';
//$orderExtAli["site"] = '';
$orderExtAli['orderId'] = $orderDetail2['orderId'];
$orderExtAli['platformUsername'] = $order['buyerSignerFullname'];
$orderExtAli['currency'] = $order['orderAmount']['currencyCode'];
$orderExtAli['PayPalEmailAddress'] = $order['buyerInfo']['email'];
$orderExtAli['eBayPaymentStatus'] = $order['orderStatus'];
//订单状态;
/***************END 订单扩展表数据***************/
/***************BEGIN 订单用户表数据***************/
$orderUserInfo = array();
$orderUserInfo['username'] = $order['receiptAddress']['contactPerson'];
$orderUserInfo['platformUsername'] = $order['buyerSignerFullname'];
$orderUserInfo['email'] = $order['buyerInfo']['email'];
$orderUserInfo['countryName'] = get_country_name($order["receiptAddress"]["country"]);
$orderUserInfo['countrySn'] = $order['receiptAddress']['country'];
$orderUserInfo['currency'] = $order['orderAmount']['currencyCode'];
$orderUserInfo['state'] = $order['receiptAddress']['province'];
$orderUserInfo['city'] = $order['receiptAddress']['city'];
$orderUserInfo['street'] = $order['receiptAddress']['detailAddress'];
$orderUserInfo['address2'] = isset($order['receiptAddress']['address2']) ? $order['receiptAddress']['address2'] : "";
$orderUserInfo['zipCode'] = $order['receiptAddress']['zip'];
if (isset($order['receiptAddress']['phoneNumber'])) {
if (isset($order['receiptAddress']['phoneArea'])) {
$orderUserInfo['landline'] = $order['receiptAddress']['phoneCountry'] . '-' . $order['receiptAddress']['phoneArea'] . '-' . $order['receiptAddress']['phoneNumber'];
$orderUserInfo['phone'] = isset($order['receiptAddress']['mobileNo']) ? $order['receiptAddress']['mobileNo'] : "";
} else {
$orderUserInfo['landline'] = $order['receiptAddress']['phoneNumber'];
$orderUserInfo['phone'] = isset($order['receiptAddress']['mobileNo']) ? $order['receiptAddress']['mobileNo'] : "";
}