Commit 6f83a0e4 authored by Antonio.Suerte's avatar Antonio.Suerte

Card Deposit Solution Launching

parent 4398883a
<?php
$page_title = "Credit Card Deposit Solution";
$page_title = "Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
......@@ -22,7 +22,7 @@ include_once('template/base_head.php');
<div id="confirm_main_content">
<p class="pleft40 mb20 respM">Please review the deposit details and read the note below before making any transactions.</p>
<p class="pleft40 mb20 respM">Please review the deposit details and read the notes below before making any transactions.</p>
<div class="pleft40">
......@@ -48,11 +48,22 @@ include_once('template/base_head.php');
<br />
<div class="container_wi650">
<ul class="pleft40 ul_list">
<li>A transaction fee, 6% of the deposited amount will be charged to the member.</li>
<li>This option is only available for members with Credit Card.</li>
<li>The deposited amount will be instantly credited into your credit card balance of your iWallet account.</li>
</ul>
<div style="margin-top:50px" class="red pleft40">※To continue your transaction, click "Next." You will be redirected to the bank information page to settle your deposit transaction.
<li>A transaction fee, 7% of the deposited amount will be charged to the member.</li>
<li>This option is only available for Executive-account members with 3DS-enabled Visa or MasterCard Credit/Debit/Prepaid Card.</li>
<li>The deposited amount will be credited into the balance of your iWallet account upon successful completion of transaction.</li>
<li>Daily limits are set to 1000 USD total, for a maximum of 5 transactions. This limit resets 24 hours from your last successful payment.</li>
</ul>
<div style="margin-top:50px" class="red pleft40">
<span style="font-size:16.5px;">
<b>Important Reminder:</b>
Please be advised that you will be billed on your Card Statement as "ALTPAY*NOSAKA CHIBA" for usage of this solution
</span>
<br/><br/>
&nbsp;&nbsp;<input type="checkbox" id="agreementCheckbox" name="agreementCheckbox"/>&nbsp;Yes, I would like to proceed
<br/><br/>
<span style="font-size:14.5px;">
To proceed, make sure that the above tick box is checked before clicking "Next." Otherwise, you may go back to the Deposit menu for other deposit options.
</span>
</div>
</div>
<div class="calign nextwbtn" style=" margin-top: 10px;">
......@@ -63,6 +74,7 @@ include_once('template/base_head.php');
</div>
<form id="acForm" action="" method="post">
<input type="hidden" name="cdagreementflg" id="cdagreementflg" />
<input type="hidden" name="type" id="type" />
<input type="hidden" name="amount" value="<?php $this -> echoAmountPure(); ?>" />
<input type="hidden" name="currency" value="<?php echo $this -> getCurrency(); ?>" />
......
<?php
$page_title = "Credit Card Deposit Solution";
$page_title = " Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
......@@ -18,7 +18,7 @@ include_once('template/base_head.php');
</div>
<div class="mb10 pleft40"><?php echo $this -> echoMessage(); ?></div>
<p class="pleft40 mb20 respM">
Please enter the amount you want to deposit.<br/>
Please select the amount you want to deposit.<br/>
</p>
<form id="acForm" action="" method="post" class="form1">
<div class="pleft40">
......@@ -44,16 +44,16 @@ include_once('template/base_head.php');
<li onClick="clicknum(li03)" id="li03">1000</li>
<li onClick="clicknum(li04)" id="li04">3000</li>
<li onClick="clicknum(li01)" id="li01">5000</li>
<li onClick="clickothers()">others</li>
</ul>
</div>
<div id="damount" class="hidediv">
<div class="con">
<input type="text" value="0.00" placeholder="" id="depositmoney" name="depositmoney"
onchange="setAmount();" maxlength = "5" class="px200">
</div>
<div id="damount" class="hidediv">
<div class="con">
<input type="text" placeholder="0.00" id="depositmoney" name="depositmoney"
onchange="setAmount();" maxlength="10" class="px200">
</div>
</div>
<br/>
<span class="red" style="display:none;" id="ccdInputNotice">※Please enter an amount not exceeding the <b>{amount} {currency}</b> limit per transaction</span>
</td>
</tr>
......@@ -61,10 +61,17 @@ include_once('template/base_head.php');
<br>
<strong class="ml20">Note:</strong>
<ol class="ol_list ml50">
<li>A transaction fee, 6% of the deposited amount will be charged to the member.</li>
<li>This option is only available for members with Credit Card.</li>
<li>The deposited amount will be instantly credited into the balance of your iWallet account.</li>
<li>A transaction fee, 7% of the deposited amount will be charged to the member.</li>
<li>This option is only available for Executive-account members with 3DS-enabled Visa or MasterCard Credit/Debit/Prepaid Card.</li>
<li>The deposited amount will be credited into the balance of your iWallet account upon successful completion of transaction.</li>
<li>Daily limits are set to 1000 USD total, for a maximum of 5 transactions. This limit resets 24 hours from your last successful payment.</li>
</ol>
<div style="margin-top:30px" class="red pleft40">
<span style="font-size:16.5px;">
<b>Important Reminder:</b>
Please be advised that you will be billed on your Card Statement as "ALTPAY*NOSAKA CHIBA" for usage of this solution
</span>
</div>
</div>
<p class="calign nextwbtn" style="margin-top: 40px;"><input type="submit" class="btn bg-grad px180" id="btnCCDSend" value="Next"></p>
<input type="hidden" value="<?php $this -> echoAmount() ?>" name="amount" id="amount"/>
......@@ -83,12 +90,10 @@ include_once('template/base_head.php');
<script src="../js/ui-choose-bind-APN.js"></script>
<script type="text/javascript">
(function(){
var selectedCurrency = "<?php echo $this -> getCurrency(); ?>";
$("#APNcurrency").val(selectedCurrency)
setTimeout(function(){
$("#APNcurrency option[value=USD]").prop("selected", true)
$("#APNcurrency").change()
}, 1200)
}, 800)
})()
</script>
</body>
......
......@@ -57,6 +57,9 @@ include_once('template/base_head.php');
}else if($value['method'] == 'CPS'){
$tmpStr3 = '<br><span class="red">*Available Cryptocurrency: BTC, XRP, LTC, BCH, ETH, DASH, ZEC</span>';
}
else if($value['method'] == 'CCD'){
$tmpStr3 = '<br><span class="red">*Supports 3DS-enabled Visa/MasterCard-branded card</span>';
}
if($value['method'] == 'CARDPAY'){
$tmpStr = 'EUR '.CASHFLOW_RISK_FEE_EUR.' per deposit';
......
<?php
$page_title = "クレジットカード入金";
$page_title = "カード入金";
include_once('./config.php');
include_once('template/base_head.php');
?>
......@@ -47,11 +47,22 @@ include_once('template/base_head.php');
<br />
<div class="container_wi650">
<ul class="pleft40 ul_list">
<li>取引一回につきご入金額の6%の手数料が発生します。</li>
<li>こちらの入金手段は、クレジットカードをお持ちのお客様のみご利用いただけます。</li>
<li>お手続き後、ご入金額は即座にお客様のiWallet口座残高に反映されます。</li>
<li>取引一回につきご入金額の7%の手数料が発生します。</li>
<li>この入金手段は、3Dセキュアが有効化されたVisaまたはMasterCardクレジット / デビット / プリペイドカードをお持ちのエグゼクティブ会員のお客様のみご利用いただけます。</li>
<li>お手続き後、ご入金額は即座にお客様のiWallet口座残高に反映されます。</li>
<li>取引制限として、1日の入金回数は5回まで、1日の合計額上限は1000USDまでとなっております。この制限は最後の取引から24時間後にリセットされます。</li>
</ul>
<div style="margin-top:50px" class="red pleft40">※問題がなければ、[次へ] ボタンを押してください。
<div style="margin-top:50px" class="red pleft40">
<span style="font-size:16.5px;">
<b>重要:</b>本カード入金のご利用はカード明細にて「ALTPAY*NOSAKA CHIBA」と記載されます。
</span>
<br/><br/>
&nbsp;&nbsp;<input type="checkbox" id="agreementCheckbox" name="agreementCheckbox"/>&nbsp;はい、続行します
<br/><br/>
<span style="font-size:14.5px;">
実行する場合は、チェックボックスにチェックを入れた上で、[次へ]ボタンを押してください。<br/>
他の入金手段をご利用いただく場合は、[戻る]ボタンを押すことで、入金方法一覧に戻ることができます。
</span>
</div>
</div>
<div class="calign nextwbtn" style=" margin-top: 10px;">
......@@ -62,6 +73,7 @@ include_once('template/base_head.php');
<form id="acForm" action="" method="post">
<input type="hidden" name="type" id="type" />
<input type="hidden" name="cdagreementflg" id="cdagreementflg" />
<input type="hidden" name="amount" value="<?php $this -> echoAmountPure(); ?>" />
<input type="hidden" name="currency" value="<?php echo $this -> getCurrency(); ?>" />
<input type="hidden" name="fee" value="<?php $this -> echoFee() ?>" />
......
<?php
$page_title = "クレジットカード入金";
$page_title = "カード入金";
include_once('./config.php');
include_once('template/base_head.php');
?>
......@@ -44,16 +44,16 @@ include_once('template/base_head.php');
<li onClick="clicknum(li03)" id="li03">1000</li>
<li onClick="clicknum(li04)" id="li04">3000</li>
<li onClick="clicknum(li01)" id="li01">5000</li>
<li onClick="clickothers()">他の金額</li>
</ul>
</div>
<div id="damount" class="hidediv">
<div class="con">
<input type="text" value="0.00" placeholder="" id="depositmoney" name="depositmoney"
onchange="setAmount();" maxlength = "5" class="px200">
</div>
</div>
<div id="damount" class="hidediv">
<div class="con">
<input type="text" placeholder="0.00" id="depositmoney" name="depositmoney"
onchange="setAmount();" class="px200">
</div>
</div>
<br/>
<span class="red" id="ccdInputNotice" style="display:none;">上限額<b>{amount}{currency}</b>以下の金額をご入力ください。</span>
</td>
</tr>
......@@ -61,10 +61,16 @@ include_once('template/base_head.php');
<br>
<strong class="ml20">注意:</strong>
<ol class="ol_list ml50">
<li>取引一回につきご入金額の6%の手数料が発生します。</li>
<li>ちらの入金手段は、クレジットカードをお持ちのお客様のみご利用いただけます。</li>
<li>取引一回につきご入金額の7%の手数料が発生します。</li>
<li>の入金手段は、3Dセキュアが有効化されたVisaまたはMasterCardクレジット / デビット / プリペイドカードをお持ちのエグゼクティブ会員のお客様のみご利用いただけます。</li>
<li>お手続き後、ご入金額は即座にお客様のiWallet口座残高に反映されます。</li>
<li>取引制限として、1日の入金回数は5回まで、1日の合計額上限は1000USDまでとなっております。この制限は最後の取引から24時間後にリセットされます。</li>
</ol>
<div style="margin-top:30px" class="red pleft40">
<span style="font-size:16.5px;">
<b>重要:</b>本カード入金のご利用はカード明細にて「ALTPAY*NOSAKA CHIBA」と記載されます。
</span>
</div>
</div>
<p class="calign nextwbtn" style="margin-top: 40px;"><input type="submit" class="btn bg-grad px180" id="btnCCDSend" value="次へ"></p>
<input type="hidden" value="<?php $this -> echoAmount() ?>" name="amount" id="amount"/>
......@@ -83,12 +89,10 @@ include_once('template/base_head.php');
<script src="../js/ui-choose-bind-APN.js"></script>
<script type="text/javascript">
(function(){
var selectedCurrency = "<?php echo $this -> getCurrency(); ?>";
$("#APNcurrency").val(selectedCurrency)
setTimeout(function(){
$("#APNcurrency option[value=USD]").prop("selected", true)
$("#APNcurrency").change()
}, 1200)
}, 800)
})()
</script>
</body>
......
......@@ -19,7 +19,7 @@ include_once('template/base_head.php');
<?php echo $page_title; ?>
</h2>
</div>
<p class="pleft40 mb20 respM">入金額が成功にクレジット致しました。</p>
<p class="pleft40 mb20 respM">入金額が口座に反映されました。</p>
<div class="pleft40" style="margin-top:30px;">
<table class="table col bdr default odd fontM summaryT">
<tr><th colspan="2">入金詳細</th></tr>
......
......@@ -68,16 +68,20 @@ include_once('template/base_head.php');
$tmpStr3 = '<br><span class="red">*対応通貨:BTC,XRP,LTC,BCH,ETH,DASH,ZEC</span>';
}
if($value['method'] == 'CCD'){
$tmpStr3 = "<br><span class=\"red\">*3Dセキュア認証が有効化されたVisaまたはMasterCardブランドのカードに対応</span>";
}
if($value['method'] == 'FLAT3'){
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."%".$transactionFee.' '.$tmpStr."</span></span></li>" : '</span></li>';
}else if($value['method'] == 'BIT'){
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."%".$transactionFee.''.$tmpStr."</span></span></li>" : '</span></li>';
}else if($value['method'] == 'CARDPAY'){
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% + ".$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% + ".$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
}else if($value['method'] == 'UNIONPAY'){
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% + ".$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% + ".$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
}else{
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% ".$transactionFee.' '.$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
$str .= isset($value['fee']) ? "<span class='grey'>".$tmpStr2 .$value['fee']."% ".$transactionFee.' '.$tmpStr."</span>".$tmpStr3."</span></li>" : $tmpStr3."</span></li>";
}
}
......
......@@ -75,8 +75,20 @@ function randomStr(length) {
}
$(function() {
$("#depositmoney").inputFilter(function(value) {
return /^-?\d*$/.test(value); });
var isDecimalNumber = function(evt, element) {
var charCode = (evt.which) ? evt.which : event.keyCode
if ((charCode != 45 || $(element).val().indexOf('-') != -1) && // Check minus and only once.
(charCode != 46 || $(element).val().indexOf('.') != -1) && // Check dot and only once.
(charCode < 48 || charCode > 57))
return false;
return true;
}
$("#depositmoney").keypress(function (event) {
return isDecimalNumber(event, this)
});
// $.ajaxSetup({async: false});
var h2pbank = [];
......@@ -238,6 +250,10 @@ $(function() {
$('#btnCCDComplete').click(function() {
$('#btnCCDComplete').prop('disabled', true);
$('#type').val('cc_deposit_send');
if($("#agreementCheckbox").is(":checked"))
$("#cdagreementflg").val("1")
submitForm();
});
......@@ -245,16 +261,14 @@ $(function() {
let cur = $(this).val();
// alert(cur);
if (cur.length != 0) {
$('.depositAmt_cont').show()
let amounts = [];
amounts["USD"] = {
"li05" : 100,
"li02" : 500,
"li03" : 1000,
"li04" : 3000,
"li01" : 5000
"li05" : 50,
"li02" : 100,
"li03" : 200,
"li04" : 500,
"li01" : 1000
};
amounts["EUR"] = {
"li05" : 100,
......@@ -278,19 +292,25 @@ $(function() {
"li01" : 50000
};
for(var ids in amounts[cur]){
$("#"+ids).html(amounts[cur][ids])
}
$.post("deposit?type=cc_deposit_check_limits",
{"currency" : cur},
function(data){
$('.depositAmt_cont').show()
for(var ids in amounts[cur]){
$("#"+ids).html(amounts[cur][ids])
}
}).fail(function(response){
console.log(response.responseText);
})
}
else{
$("#ccdInputNotice").hide()
$('.depositAmt_cont').hide()
}
});
//CCD functions 05312021 end
//Add by Robby 20170609 start
......
......@@ -219,7 +219,10 @@ class ControlDeposit extends LogicDeposit {
}else if($this -> getType() == TYPE_CCD_SUCCESS) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_SUCCESS_PATH', $this -> dispHTML()));
}else { // 画面の表示(初期画面)
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_INPUT_PATH', $this -> dispHTML()));
$ajaxTypes = [TYPE_CCD_CHECK_LIMITS];
if(!in_array($this -> getType(), $ajaxTypes))
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_INPUT_PATH', $this -> dispHTML()));
}
} catch (Exception $e) {
header('Location: /' . $this -> getLangage() . '/login');
......
......@@ -48,53 +48,59 @@ class LogicDeposit extends DepositModelClass {
-------------------------------------------------------------------------*/
private function biz() {
if($this -> getType() == CONTROL_ACTION) { // 完了画面へ遷移
// タイプの変更
$this -> setType(TYPE_COMPLETE);
} else if($this -> getType() == TYPE_SEND) { // メールの送信
$this -> send();
} else if($this -> getType() == TYPE_COMPLETE) { // 完了タイプの場合
if($this -> getMethod() != NO_STRING) { // 通常入金以外
$this -> setType(TYPE_CONFIRM);
}
} else if($this -> getType() == TYPE_SUCCESS) { // GPS完了タイプの場合
$this -> sendSuccess();
} else if($this -> getType() == TYPE_PENDING
|| $this -> getType() == TYPE_FAIL) { // GPS保留タイプの場合
$this -> sendPending();
} else if($this -> getType() == VAL_STR_FLAT3_MAILSEND){
$this -> flat3send();
} else if($this -> getType() == VAL_STR_LBTF3_MAILSEND){
$this -> lbtf3send();
} else if($this -> getType() == VAL_STR_JPV_MAILSEND){
$this -> jpvsend();
} elseif($this -> getType() == TYPE_LBTJ_COMPLETE) {
//define variables
$language = $this -> getLangage();
$file = $this -> getFile();
//get send data
$params = $this -> getLBTJEmailParams();
//send email with attachment (to zendesk)
$this -> sendMailByTmp('send_lbtj_mail_for_admin.xml'
, $params
, VAR_CS_MAIL_ADDRESS
, $params[1]
, $language
, $file);
//send confirmation email to user
$this -> sendMailByTmp('send_lbtj_mail_for_user.xml'
, $params
, $params[1]
, VAR_CS_MAIL_ADDRESS
, $language);
}
switch($this -> getType()){
case CONTROL_ACTION:
// タイプの変更
$this -> setType(TYPE_COMPLETE);
break;
case TYPE_SEND:
$this -> send();
break;
case TYPE_COMPLETE:
if($this -> getMethod() != NO_STRING) // 通常入金以外
$this -> setType(TYPE_CONFIRM);
break;
case TYPE_SUCCESS:
$this -> sendSuccess();
break;
case TYPE_CCD_CHECK_LIMITS: // AJAX
$this -> echoCardDepositLimitation();
break;
case TYPE_PENDING:
case TYPE_FAIL:
$this -> sendPending();
break;
case VAL_STR_FLAT3_MAILSEND:
$this -> flat3send();
break;
case VAL_STR_LBTF3_MAILSEND:
$this -> lbtf3send();
break;
case VAL_STR_JPV_MAILSEND:
$this -> jpvsend();
break;
case TYPE_LBTJ_COMPLETE:
//define variables
$language = $this -> getLangage();
$file = $this -> getFile();
//get send data
$params = $this -> getLBTJEmailParams();
//send email with attachment (to zendesk)
$this -> sendMailByTmp('send_lbtj_mail_for_admin.xml'
, $params
, VAR_CS_MAIL_ADDRESS
, $params[1]
, $language
, $file);
//send confirmation email to user
$this -> sendMailByTmp('send_lbtj_mail_for_user.xml'
, $params
, $params[1]
, VAR_CS_MAIL_ADDRESS
, $language);
break;
}
}
/*-------------------------------------------------------------------------
......
......@@ -31,6 +31,7 @@ class DepositModelClass extends ModelClassEx {
private $bank = NO_STRING; // 一般的な
private $eplconf = null; // CCD
private $ccdTransDetails = null; // CCD
private $ccdAgreement = null; // CCD
/*-------------------------------------------------------------------------
......@@ -88,6 +89,7 @@ class DepositModelClass extends ModelClassEx {
// 別の入金Solutionの変数
$this -> token = $this -> getDataPost("token");
$this -> ccdAgreement = $this -> getDataPost("cdagreementflg");
if($this -> method == VAL_STR_VSMS_METHOD){
$this -> setType(CASHFLOW_DEPOSIT_INPUT);
......@@ -2793,13 +2795,19 @@ class DepositModelClass extends ModelClassEx {
}
}
}if($this -> getType() == TYPE_CCD_INPUT ||
$this -> getType() == TYPE_CCD_CONFIRM ||
$this -> getType() == TYPE_CCD_COMPLETE ||
$this -> getType() == TYPE_CCD_SEND ||
$this -> getType() == TYPE_CCD_SUCCESS ||
$this -> getType() == TYPE_CCD_FAIL){
}
$ccdTypes = [
TYPE_CCD_INPUT,
TYPE_CCD_CONFIRM,
TYPE_CCD_COMPLETE,
TYPE_CCD_SEND,
TYPE_CCD_SUCCESS,
TYPE_CCD_FAIL,
TYPE_CCD_CHECK_LIMITS
];
if(in_array($this -> getType(), $ccdTypes)){
$this -> eplconf = $this -> getSettingConfiguration("easy_payment_link");
$midconf = $this -> getSettingConfiguration("middleware_conf");
......@@ -2808,9 +2816,25 @@ class DepositModelClass extends ModelClassEx {
$this -> setType();
return false;
}
// validation
switch($this -> getType()){
case TYPE_CCD_CHECK_LIMITS:
header("Content-type: text/json");
$invalid = [];
$this -> validateAJAXRequest($invalid);
$currencies = explode(DELIMIT_COMMA, $this -> eplconf -> currencies);
if(!in_array($this -> currency, $currencies)){
$invalid[] = "Not supported currency";
}
if($this -> isLoopData($invalid))
die(print_r($invalid, true));
break;
case TYPE_CCD_FAIL:
case TYPE_CCD_SUCCESS:
$callbackData = $this -> getDataGet("ccback");
......@@ -2846,8 +2870,17 @@ class DepositModelClass extends ModelClassEx {
$terminate();
break;
case TYPE_CCD_SEND:
case TYPE_CCD_CONFIRM:
if($this -> getType() == TYPE_CCD_SEND){
if(!$this -> ccdAgreement){
$this -> popUpSessionMessage(ERROR, 'E_REQUIRED_VALUE', array("Agreement"));
$this -> setType(TYPE_CCD_INPUT);
return false;
}
}
if(!$this -> checkNull($this -> currency)){
$this -> popUpSessionMessage(ERROR, 'E_INVALID_CURRENCY_VALUE', array());
$rtn = false;
......@@ -2860,6 +2893,14 @@ class DepositModelClass extends ModelClassEx {
}
}
$maxAmounts = (Array) $this -> eplconf -> max_deposit_amount;
if($this -> amount > $maxAmounts[$this -> currency]){
$this -> popUpSessionMessage(ERROR, 'E_ERROR_GREATER_THAN',
array($maxAmounts[$this -> currency], $this -> currency));
$rtn = false;
}
if(!$this -> checkNull($this -> amount)){
$this -> popUpSessionMessage(ERROR, 'E_REQUIRED_VALUE', array(VAL_STR_AMOUNT));
$rtn = false;
......@@ -2878,11 +2919,12 @@ class DepositModelClass extends ModelClassEx {
if($this -> getType() == TYPE_CCD_SEND) {
$this -> fee = round($this -> amount * (VAL_STR_CCDEPOSIT_FEE / 100.00), 3);
$debitAmount = sprintf("%.2f", $this -> amount + $this -> fee);
$eplAPI = EasyPaymentLinkAPI::getInstance()
-> setUserAccount($this -> getUserData(PARAM_USER_ACCOUNT))
-> setLanguage($this -> getLangage())
-> setAmount($this -> amount + $this -> fee)
-> setAmount($debitAmount)
-> setFee($this -> fee)
-> setCurrency($this -> currency)
-> generatePayload();
......@@ -2900,6 +2942,15 @@ class DepositModelClass extends ModelClassEx {
return true;
}
public function echoCardDepositLimitation(){
$maxAmounts = (Array) $this -> eplconf -> max_deposit_amount;
/**
* echoes json result
*/
echo json_encode([$this -> currency => $maxAmounts[$this -> currency]]);
}
/**
*
* @param unknown $paramName
......@@ -3982,6 +4033,19 @@ class DepositModelClass extends ModelClassEx {
return $params;
}
private function validateAJAXRequest(Array &$invalid){
$requestMethod = $this -> getColumnData($_SERVER, "REQUEST_METHOD");
$sessionVerifier = $this -> getUserData(PARAM_USER_ACCOUNT);
if($requestMethod != "POST"){
$invalid[] = "Invalid Request Method: {$requestMethod}";
}
if($sessionVerifier == NO_STRING){
$invalid[] = "Request cannot be utilized.";
}
}
//检查必要信息是否已经填写
private function checkUserProfile(){
$rtn = True;
......
......@@ -114,6 +114,8 @@ class EasyPaymentLink extends System {
*
*/
private function processTransaction(){
$this -> createTime = date("Y-m-d H:i:s");
switch($this -> remarks){
case self::APN_INTERNAL_ERROR:
case self::INVALID_TRANSACTION:
......@@ -122,7 +124,6 @@ class EasyPaymentLink extends System {
return;
}
$this -> createTime = date("Y-m-d H:i:s");
$method = VAL_STR_CCDEPOSIT_METHOD;
$this -> accessModify("INSERT_WB_DEPOSIT_TRANSACTION", [
......@@ -134,11 +135,11 @@ class EasyPaymentLink extends System {
"Credit Card Deposit",
$this -> createTime,
$this -> getColumnData($this -> data, COLUMN_FEE),
NO_STRING,
"APN-EPL: {$this -> eplTransactionId}",
$this -> createTime,
NO_COUNT,
NO_COUNT,
"APN-EPL: {$this -> eplTransactionId}",
NO_STRING,
], false);
$this -> data["APN_EPL"] = $this -> eplTransactionId;
......
......@@ -4,36 +4,36 @@
<body>
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます
iWalletを愛顧頂きまして誠にありがとうございました
客様のごクレジットカード入金を確認いたしましたので、
iWallet口座にチャージさせて頂きました
手続きなられましたカード入金がお客様のiWallet口座へ正常に反映いたしました。
以下の入金情報をご確認ください
取引番号: __ELEMENT03__
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご入金額:__ELEMENT07__ __ELEMENT08__
取引番号: __ELEMENT03__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
反映金額:__ELEMENT07__ __ELEMENT08__
現在の残高は、にログインし、My Walletの口座残高からご確認ください。
詳細は、取引履歴よりご確認ください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
今後とも引き続き、弊社へのお引き立てを賜りますよう、何卒お願い申し上げます。
__ELEMENT01__ Mr./Ms. __ELEMENT02__
Thank you for using iWallet.
Your credit card deposit request has been successfully credited to your iWallet account.
Your credit card deposit request has successfully been credited to your iWallet account. Please see below for the transaction details:
Transaction number : __ELEMENT03__
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
Amount reflected : __ELEMENT07__ __ELEMENT08__
The details of this deposit can also be viewed on your iWallet account transaction history.
You can also view confirmation of this deposit on your iWallet account's transaction history.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions how we can better serve you, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -5,19 +5,22 @@
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます。
お手続きになられましたカード入金による入金申請が失敗しました。
クレジットカード決済が失敗しました。
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
カード決済失敗の原因は、下記が考えられます。
お取引失敗の原因は、下記が考えられます。
・間違ったカード情報の詳細
・3Dセキュア認証失敗
・カード情報相談
・残高不足
・ご申請額はご入金限度額の範囲外となります。
・入金が1日の上限額を超えている。
1日の制限は、5回まで入金可能で1000を上限額と設定されていただいてありますので、予めご了承をお願いいたします。制限は最後に成功した決済から24時間後にリセットされます。
別のご入金方法をご利用ください。
原因をご確認の上、再度お試しください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
......@@ -26,21 +29,23 @@
Thank you for using iWallet.
Your credit card deposit request failed.
Please be advised that your card deposit request didn't go through.
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
The possible causes of the transaction failing are as follows:
· Wrong card information details
· Insufficient Funds
· The amount you are trying to deposit is outside the payment limit
· 3D Secure authentication failure
· Invalid card information details
· Insufficient funds
· Amount deposited is beyond daily limits
Please try again or use another card once you have confirmed the above reasons. You may also use another deposit method to complete your transaction.
Please take note that your daily limits are set to 1000 USD total, for a maximum of 5 transactions. The limit resets from your last successful payment.
Upon confirming the reason as to why your payment has failed, please retry your payment or use another deposit method.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions regarding this matter, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -4,36 +4,36 @@
<body>
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます
iWalletを愛顧頂きまして誠にありがとうございました
客様のごクレジットカード入金を確認いたしましたので、
iWallet口座にチャージさせて頂きました
手続きなられましたカード入金がお客様のiWallet口座へ正常に反映いたしました。
以下の入金情報をご確認ください
取引番号: __ELEMENT03__
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご入金額:__ELEMENT07__ __ELEMENT08__
取引番号: __ELEMENT03__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
反映金額:__ELEMENT07__ __ELEMENT08__
現在の残高は、にログインし、My Walletの口座残高からご確認ください。
詳細は、取引履歴よりご確認ください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
今後とも引き続き、弊社へのお引き立てを賜りますよう、何卒お願い申し上げます。
__ELEMENT01__ Mr./Ms. __ELEMENT02__
Thank you for using iWallet.
Your credit card deposit request has been successfully credited to your iWallet account.
Your credit card deposit request has successfully been credited to your iWallet account. Please see below for the transaction details:
Transaction number : __ELEMENT03__
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
Amount reflected : __ELEMENT07__ __ELEMENT08__
The details of this deposit can also be viewed on your iWallet account transaction history.
You can also view confirmation of this deposit on your iWallet account's transaction history.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions how we can better serve you, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -5,19 +5,22 @@
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます。
お手続きになられましたカード入金による入金申請が失敗しました。
クレジットカード決済が失敗しました。
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
カード決済失敗の原因は、下記が考えられます。
お取引失敗の原因は、下記が考えられます。
・間違ったカード情報の詳細
・3Dセキュア認証失敗
・カード情報相談
・残高不足
・ご申請額はご入金限度額の範囲外となります。
・入金が1日の上限額を超えている。
1日の制限は、5回まで入金可能で1000を上限額と設定されていただいてありますので、予めご了承をお願いいたします。制限は最後に成功した決済から24時間後にリセットされます。
別のご入金方法をご利用ください。
原因をご確認の上、再度お試しください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
......@@ -26,21 +29,23 @@
Thank you for using iWallet.
Your credit card deposit request failed.
Please be advised that your card deposit request didn't go through.
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
The possible causes of the transaction failing are as follows:
· Wrong card information details
· Insufficient Funds
· The amount you are trying to deposit is outside the payment limit
· 3D Secure authentication failure
· Invalid card information details
· Insufficient funds
· Amount deposited is beyond daily limits
Please try again or use another card once you have confirmed the above reasons. You may also use another deposit method to complete your transaction.
Please take note that your daily limits are set to 1000 USD total, for a maximum of 5 transactions. The limit resets from your last successful payment.
Upon confirming the reason as to why your payment has failed, please retry your payment or use another deposit method.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions regarding this matter, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -4,36 +4,36 @@
<body>
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます
iWalletを愛顧頂きまして誠にありがとうございました
客様のごクレジットカード入金を確認いたしましたので、
iWallet口座にチャージさせて頂きました
手続きなられましたカード入金がお客様のiWallet口座へ正常に反映いたしました。
以下の入金情報をご確認ください
取引番号: __ELEMENT03__
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご入金額:__ELEMENT07__ __ELEMENT08__
取引番号: __ELEMENT03__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
反映金額:__ELEMENT07__ __ELEMENT08__
現在の残高は、にログインし、My Walletの口座残高からご確認ください。
詳細は、取引履歴よりご確認ください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
今後とも引き続き、弊社へのお引き立てを賜りますよう、何卒お願い申し上げます。
__ELEMENT01__ Mr./Ms. __ELEMENT02__
Thank you for using iWallet.
Your credit card deposit request has been successfully credited to your iWallet account.
Your credit card deposit request has successfully been credited to your iWallet account. Please see below for the transaction details:
Transaction number : __ELEMENT03__
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
Amount reflected : __ELEMENT07__ __ELEMENT08__
The details of this deposit can also be viewed on your iWallet account transaction history.
You can also view confirmation of this deposit on your iWallet account's transaction history.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions how we can better serve you, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -5,19 +5,22 @@
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます。
お手続きになられましたカード入金による入金申請が失敗しました。
クレジットカード決済が失敗しました。
日時:__ELEMENT04__(GMT +8)
お支払い金額: __ELEMENT05__ __ELEMENT06__
ご申請日時:__ELEMENT04__(GMT +9)
ご申請金額: __ELEMENT05__ __ELEMENT06__
カード決済失敗の原因は、下記が考えられます。
お取引失敗の原因は、下記が考えられます。
・間違ったカード情報の詳細
・3Dセキュア認証失敗
・カード情報相談
・残高不足
・ご申請額はご入金限度額の範囲外となります。
・入金が1日の上限額を超えている。
1日の制限は、5回まで入金可能で1000を上限額と設定されていただいてありますので、予めご了承をお願いいたします。制限は最後に成功した決済から24時間後にリセットされます。
別のご入金方法をご利用ください。
原因をご確認の上、再度お試しください。
ご質問やご不明な点などございましたら、いつでもお気軽にお問合せ下さいませ。
今後ともiWalletを何卒宜しくお願い申し上げます。
......@@ -26,21 +29,23 @@
Thank you for using iWallet.
Your credit card deposit request failed.
Please be advised that your card deposit request didn't go through.
Transaction time/date : __ELEMENT04__(GMT +8)
Transaction time/date : __ELEMENT04__(GMT +9)
Payment amount :__ELEMENT05__ __ELEMENT06__
The possible causes of the transaction failing are as follows:
· Wrong card information details
· Insufficient Funds
· The amount you are trying to deposit is outside the payment limit
· 3D Secure authentication failure
· Invalid card information details
· Insufficient funds
· Amount deposited is beyond daily limits
Please try again or use another card once you have confirmed the above reasons. You may also use another deposit method to complete your transaction.
Please take note that your daily limits are set to 1000 USD total, for a maximum of 5 transactions. The limit resets from your last successful payment.
Upon confirming the reason as to why your payment has failed, please retry your payment or use another deposit method.
 
If you have any questions or inquiries, please do not hesitate to contact us.
We are committed to providing our customers with the highest quality of service.
We look forward to your continued patronage, and should you have any suggestions regarding this matter, please do not hesitate to contact us.
Our commitment to provide you the best service is our primary goal.
━━━━━━━━━━━━━━━━━━
......
......@@ -1655,7 +1655,7 @@ class Common extends HtmlBuilder {
'lang' => VAL_STR_LBTF3_DISPLAY_LANG);
}
if($this -> getColumnData($row, COLUMN_TEST_ACCOUNT_FLG) == 1){
if(in_array($this->getUserData(PARAM_USER_ACCOUNT), $grantDeposit -> CCD) || $accountType == 0){
$rtn[] = array(
'name' => VAL_STR_CCDEPOSIT_NAME,
'logo' => VAL_STR_CCDEPOSIT_LOGO,
......
......@@ -491,6 +491,7 @@ define('TYPE_CCD_COMPLETE','cc_deposit_complete');
define('TYPE_CCD_SEND','cc_deposit_send');
define('TYPE_CCD_FAIL','cc_deposit_fail');
define('TYPE_CCD_SUCCESS','cc_deposit_success');
define('TYPE_CCD_CHECK_LIMITS','cc_deposit_check_limits');
define('TYPE_ZANETA_INPUT','zaneta_input');
......
......@@ -88,6 +88,9 @@
</W_NOT_ADDRESS>
</WARNING>
<ERROR>
<E_ERROR_GREATER_THAN>
__MEGELM02____MEGELM01__の金額は処理できません。
</E_ERROR_GREATER_THAN>
<E_FATAL>
致命的エラーです。処理を続行できません。
</E_FATAL>
......
......@@ -97,6 +97,9 @@
</W_NOT_ADDRESS>
</WARNING>
<ERROR>
<E_ERROR_GREATER_THAN>
The amount greater than __MEGELM02__ __MEGELM01__ cannot be processed.
</E_ERROR_GREATER_THAN>
<E_FATAL>
Fatal error. Cannot process.
</E_FATAL>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment