本文整理匯總了PHP中shopFunctionsF::mask_string方法的典型用法代碼示例。如果您正苦於以下問題:PHP shopFunctionsF::mask_string方法的具體用法?PHP shopFunctionsF::mask_string怎麽用?PHP shopFunctionsF::mask_string使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類shopFunctionsF
的用法示例。
在下文中一共展示了shopFunctionsF::mask_string方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getMaskedCCnumber
/**
* Remove some numbers from the CC when displaying it
* when debug or log option is on
*
*/
function getMaskedCCnumber()
{
if (!class_exists('shopFunctionsF')) {
require JPATH_VM_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
}
return shopFunctionsF::mask_string($this->getVar('cc_number'), '*');
$this->getVar('cc_number');
}
示例2: getPaymentRef
/**
* @param $realex_data
* @return mixed
*/
function getPaymentRef($realex_data)
{
$fields = array('SAVED_PMT_TYPE', 'SAVED_PMT_REF', 'SAVED_PMT_DIGITS', 'SAVED_PMT_EXPDATE', 'SAVED_PMT_NAME');
$userfield['virtuemart_user_id'] = $this->order['details']['BT']->virtuemart_user_id;
$userfield['merchant_id'] = $this->_method->merchant_id;
foreach ($fields as $field) {
if (isset($realex_data[$field])) {
if ($field == 'SAVED_PMT_DIGITS') {
$realex_data[$field] = shopFunctionsF::mask_string($realex_data[$field], '*');
}
$userfield['realex_hpp_api_' . strtolower($field)] = $realex_data[$field];
}
}
return $userfield;
}
示例3: manageSetNewPayment
/**
* @param $response
* @param $realexInterface
* @return bool
*/
function manageSetNewPayment($response, $newPayerRef, $newPaymentRef)
{
$this->plugin->_storeRealexInternalData($response, $this->_method->virtuemart_paymentmethod_id, $this->order['details']['BT']->virtuemart_order_id, $this->order['details']['BT']->order_number, $this->request_type);
$xml_response = simplexml_load_string($response);
$success = $this->isResponseSuccess($xml_response);
if (!$success) {
$error = $xml_response->message . " (" . (string) $xml_response->result . ")";
$this->displayError($error);
vmInfo('VMPAYMENT_REALEX_HPP_API_CARD_STORAGE_FAILED');
return false;
}
$userfield['virtuemart_user_id'] = $this->order['details']['BT']->virtuemart_user_id;
$userfield['merchant_id'] = $this->_method->merchant_id;
$userfield['realex_hpp_api_saved_pmt_ref'] = $newPaymentRef;
//$userfield['realex_saved_payer_ref'] = $newPayerRef;
$userfield['realex_hpp_api_saved_pmt_type'] = $this->customerData->getVar('cc_type');
if (!class_exists('shopFunctionsF')) {
require VMPATH_SITE . DS . 'helpers' . DS . 'shopfunctionsf.php';
}
$userfield['realex_hpp_api_saved_pmt_digits'] = shopFunctionsF::mask_string($this->customerData->getVar('cc_number'), '*');
$userfield['realex_hpp_api_saved_pmt_name'] = $this->customerData->getVar('cc_name');
$userfield['realex_hpp_api_saved_pmt_expdate'] = $this->getFormattedExpiryDateForRequest();
return $userfield;
}