本文整理汇总了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;
}