Commit 0a462379 authored by Anthony.Suerte's avatar Anthony.Suerte

CCD Solution [Initial Commit]

parent 7e22e300
<?php
require_once "config.php";
require_once SITE_LOGICS."deposit/ext/ESnappedAPI.php";
class APNWebHook extends System{
private $data;
/**
*
* @var ESnappedAPI
*/
private $apnIntegration;
public function __construct(){
parent::__construct();
$this -> initComponents();
$this -> setParameters();
$this -> validation();
}
private function initComponents(){
header("Content-type: text/json");
$this -> apnIntegration = new ESnappedAPI();
$logDirs = [
"Logs/APN/", "Logs/APN/Error"
];
foreach($logDirs as $key => $dir){
if(!@file_exists($dir)){
if(mkdir($dir))
echo "Created - ({$key})\n";
}
}
}
private function setParameters(){
$this -> data = $this -> getDataGet("data");
}
private function validation(){
$conditions = [
"E01" => [
"bool" => $_SERVER["REQUEST_METHOD"] != 'GET',
"desc" => "Invalid Request Method: {$_SERVER['REQUEST_METHOD']}"
],
"E02" => [
"bool" => !$this -> apnIntegration -> isAuthenticated(),
"desc" => "Webhook Bad State"
]
];
foreach($conditions as $code => $cond){
if($cond["bool"]){
$fileName = "Log_".date("Y-m-d").".log";
$message = json_encode([
"code" => $code,
"message" => $cond["desc"]
]);
error_log("{$message}\n", 3, "Logs/APN/Error/{$fileName}");
die($message);
}
}
}
private function creditTransaction($tempDepositData){
$comment = "[APN Reference No.]\\n{$tempDepositData["invoice_num"]}";
foreach($tempDepositData as &$data){
$data = "('){$data}(')";
}
$method = VAL_STR_CCDEPOSIT_METHOD;
$this -> accessModify("INSERT_CC_DEPOSIT_TRANSACTION", [
$tempDepositData[COLUMN_TRANSACTION_NUMBER],
$tempDepositData[COLUMN_USER_ACCOUNT],
$tempDepositData[COLUMN_AMOUNT],
$tempDepositData[COLUMN_CURRENCY],
"('){$method}(')",
"(')Credit Card Deposit(')",
$tempDepositData[COLUMN_FEE],
"('){$comment}(')",
$tempDepositData[COLUMN_CREATE_TIME],
NO_COUNT,
NO_COUNT,
$tempDepositData[COLUMN_MESSAGE]
], false);
$this -> accessModify("UPDATE_TEMP_CCDEPOSIT", ["('){$this -> data}(')"], false);
}
private function sendTransactionCompleteNotice($txn){
$member = $this -> getRowData($this -> getAccountCommon($txn[COLUMN_USER_ACCOUNT]));
$params = [
$member[COLUMN_USER_ACCOUNT],
$this -> getNameCommon($member[COLUMN_USER_ACCOUNT]),
$txn[COLUMN_TRANSACTION_NUMBER],
date("Y-m-d H:i:s"),
$txn["currency"],
$this -> intToCurrency($txn[COLUMN_AMOUNT] + $txn[COLUMN_FEE], $txn[COLUMN_CURRENCY]),
$txn["currency"],
$this -> intToCurrency($txn[COLUMN_AMOUNT], $txn[COLUMN_CURRENCY])
];
$this -> sendMailByTmp('deposit_ccd_complete.xml'
, $params
, $this -> getColumnData($member, COLUMN_MAIL)
, VAR_CS_MAIL_ADDRESS);
}
public function receive(){
$tempDepositData = $this -> apnIntegration -> getTempDepositDataBy('invoice_num', $this -> data);
$msgtime = date("Y-m-d H:i:s");
$fileName = "Log_".date("Y-m-d").".log";
if($tempDepositData){
if(!$tempDepositData["credited"]){
$this -> creditTransaction($tempDepositData);
$tempDepositData["credited"] = 1;
$tempDepositData["deposit_date"] = date("Y-m-d H:i:s");
$message = print_r($tempDepositData, true);
$this -> sendTransactionCompleteNotice($tempDepositData);
error_log("[$msgtime]\n{$message}\n\n", 3, "Logs/APN/{$fileName}");
}else
error_log("[$msgtime]\nInvoice Already Credited: {$this -> data}\n\n", 3, "Logs/APN/{$fileName}");
}else{
error_log("[$msgtime]\nDenied Input: {$this -> data}\n\n", 3, "Logs/APN/{$fileName}");
}
}
}
$hooks = new APNWebHook();
$hooks -> receive();
\ No newline at end of file
......@@ -903,3 +903,9 @@ i.notice{
font-weight: bold;
line-height:18px;
}
/* new css */
.ArrowNone{
-webkit-appearance: none !important;
}
.px200 {width: 200px;}
\ No newline at end of file
......@@ -4,18 +4,4 @@ include_once(SITE_LOGICS . 'api/controller.php');
$logic = new ControlApi();
$logic -> action();
if($logic -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($logic -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$logic -> getResult()) {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($logic -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($logic -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
?>
<?php
$page_title = "Email Address Changed";
require_once('config.php');
$system = new System();
?>
<!doctype html>
<html lang="ja">
......@@ -35,8 +33,8 @@ $system = new System();
<div class="article-heading">
<h2><?php echo $page_title; ?></h2>
</div>
<?php $system -> echoMessage(); ?>
<p><?php $logic -> echoResultMsg(); ?></p>
<?php $this -> echoMessage(); ?>
<p><?php $this -> echoResultMsg(); ?></p>
</article>
</div>
</div>
......
<?php
$page_title = "Credit Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド�?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド�?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<p class="pleft40 mb20 respM">Please open your email to review and settle your deposit transaction.</p>
<div class="pleft40 pt10 mb20 respM">
<a href="menu.php" class="btn bg-default calign">Go back to homepage</a>
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit.js"></script>
</body>
</html>
<?php
$page_title = "Credit Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="mb10 pleft40"><?php echo $this -> echoMessage(); ?></div>
<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>
<div class="pleft40">
<table class="table col bdr default odd fontM summaryT">
<tr>
<th style="width: 180px;" colspan="2">Deposit Details</th>
</tr>
<tr>
<th style="width: 180px;">Deposit Amount</th>
<td class="ralign"><?php echo $this -> getCurrency();?>&nbsp;<?php $this -> echoAmount(); ?></td>
</tr>
<tr>
<th style="width: 180px;">Transaction Fee</th>
<td class="ralign"><?php echo $this -> getCurrency();?>&nbsp;<?php $this -> echoFee(); ?></td>
</tr>
<tr>
<th style="width: 180px;">Deposit Amount Due</th>
<td class="ralign"><?php echo $this -> getCurrency();?>&nbsp;<?php $this -> echoDepositAmountNatural(); ?></td>
</tr>
<tr>
<th style="width: 180px;">Message</th>
<td class="ralign"><?php echo $this -> message; ?></td>
</tr>
</table>
</div>
<br />
<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.
</div>
</div>
<div class="calign nextwbtn" style=" margin-top: 10px;">
<a id="btnBackCCDInput" class="btn bg-default calign">&laquo; Back</a>&emsp;
<a id="btnCCDComplete" class="btn bg-grad px180 mt10">Next</a>
</div>
</div>
<div style="display:none;" id="trans_loader">
<p class="pleft40 mb20 respM">Submitting.</p>
</div>
<form id="acForm" action="" method="post">
<input type="hidden" name="type" id="type" />
<input type="hidden" name="token" id="token" value="<?php $this -> echoToken() ?>"/>
<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() ?>" />
<input type="hidden" name="message" value="<?php echo $this -> message; ?>" />
</form>
</article>
</div>
</div>
</div>
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit.js"></script>
</body>
</html>
<?php
$page_title = "Credit Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド�?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド�?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<p class="pleft40 mb20 respM">Invalid Deposit Details. Please try again</p>
<div class="pleft40 pt10 mb20 respM">
<a href="menu.php" class="btn bg-default calign">Go back to homepage</a>
</div>
</div>
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit.js"></script>
</body>
</html>
<?php
$page_title = "Credit Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="mb10 pleft40"><?php echo $this -> echoMessage(); ?></div>
<p class="pleft40 mb20 respM">
Please enter the amount you want to deposit.<br/>
</p>
<form id="acForm" action="" method="post" class="form1">
<div class="pleft40">
<table class="table col bdr default odd fontM summaryT">
<tr>
<th>Currency</th>
<td>
<div class="">
<select name="currency" id="currency" class="px120 ArrowNone">
<option id="select" value="" class="px120">Select </option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="JPY">JPY</option>
<option value="PHP">PHP</option>
</select>
</div>
</td>
</tr>
<tr>
<th>Deposit Amount</th>
<td id="amount_td1">
<div id="damount" class="set_amount">
<div class="con" >
<input type="text" value="<?php $this -> echoAmount() ?>" placeholder="" id="depositmoney" name="depositmoney"
onchange="setAmount();" maxlength = "5" class="px200">
</div>
</div>
</td>
</tr>
<tr>
<th>Message</th>
<td>
<textarea placeholder="Add some notes here" name="message" class="px200" ><?php echo $this -> message ?></textarea>
</td>
</tr>
</table>
<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 your credit card balance of your iWallet account.</li>
</ol>
</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"/>
<input type="hidden" name="type" id="type"/>
<input type="hidden" name="token" id="token"/>
</form>
</article>
</div>
</div>
</div>
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit.js"></script>
<script type="text/javascript">
(function(){
var selectedCurrency = "<?php echo $this -> getCurrency(); ?>";
$("#currency").val(selectedCurrency).trigger("change")
})()
</script>
</body>
</html>
<?php
$page_title = "Credit Card Deposit Solution";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド�?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド�?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<p class="pleft40 mb20 respM">Processing Transaction ...</p>
<form id="acForm" action="" method="POST">
<input type="hidden" id="type" name="type"/>
<input type="hidden" id="valid_calc" value="<?php $this -> echoValidCalculation() ?>"/>
</form>
</div>
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit.js"></script>
<script type="text/javascript">
(function(){
setTimeout(function(){
var validCalculation = $("#valid_calc").val()
if(validCalculation == "valid")
$("#type").val("cc_deposit_complete")
else
$("#type").val("cc_deposit_fail")
submitForm()
}, 500)
})()
</script>
</body>
</html>
<?php include_once('config.php'); ?>
<!doctype html>
<html lang="ja">
<head>
......
<?php
<?php
$page_title = "The requested URL is invalid.";
include_once('site_config.php');
include_once('template/base_site_head.php');
......@@ -21,7 +21,7 @@ include_once('template/base_site_head.php');
<div class="limit_width">
<label class="title_name"><?php echo $page_title; ?></label>
<div><?php $logic -> echoResultMsg(); ?></div>
<div><?php $this -> echoResultMsg(); ?></div>
</div>
</div>
......
......@@ -4,18 +4,4 @@ include_once(SITE_LOGICS . 'api/controller.php');
$logic = new ControlApi();
$logic -> action();
if($logic -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($logic -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$logic -> getResult()) {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($logic -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($logic -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
?>
<?php
$page_title = "Alamat Email Diubah";
require_once('config.php');
$system = new System();
?>
<!doctype html>
<html lang="ja">
......@@ -35,8 +33,8 @@ $system = new System();
<div class="article-heading">
<h2><?php echo $page_title; ?></h2>
</div>
<?php $system -> echoMessage(); ?>
<p><?php $logic -> echoResultMsg(); ?></p>
<?php $this -> echoMessage(); ?>
<p><?php $this -> echoResultMsg(); ?></p>
</article>
</div>
</div>
......
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_complete.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_confirm.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_fail.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_input.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_send.js"></script>
</body>
</html>
<?php include_once('config.php'); ?>
<!doctype html>
<html lang="ja">
<head>
......
<?php
<?php
$page_title = "URL yang diminta tidak valid.";
include_once('site_config.php');
include_once('template/base_site_head.php');
......@@ -21,7 +21,7 @@ include_once('template/base_site_head.php');
<div class="limit_width">
<label class="title_name"><?php echo $page_title; ?></label>
<div><?php $logic -> echoResultMsg(); ?></div>
<div><?php $this -> echoResultMsg(); ?></div>
</div>
</div>
......
......@@ -4,18 +4,4 @@ include_once(SITE_LOGICS . 'api/controller.php');
$logic = new ControlApi();
$logic -> action();
if($logic -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($logic -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$logic -> getResult()) {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($logic -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($logic -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
?>
<?php
$page_title = "メールアドレス変更完了";
require_once('config.php');
$system = new System();
?>
<!doctype html>
<html lang="ja">
......@@ -35,8 +33,8 @@ $system = new System();
<div class="article-heading">
<h2><?php echo $page_title; ?></h2>
</div>
<?php $system -> echoMessage(); ?>
<p><?php $logic -> echoResultMsg(); ?></p>
<?php $this -> echoMessage(); ?>
<p><?php $this -> echoResultMsg(); ?></p>
</article>
</div>
</div>
......
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_complete.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_confirm.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_fail.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_input.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_send.js"></script>
</body>
</html>
<?php include_once('config.php'); ?>
<!doctype html>
<html lang="ja">
<head>
......
......@@ -22,7 +22,7 @@ include_once('template/base_site_head.php');
<div class="limit_width">
<label class="title_name"><?php echo $page_title; ?></label>
<div><?php $logic -> echoResultMsg(); ?></div>
<div><?php $this -> echoResultMsg(); ?></div>
</div>
</div>
......
......@@ -171,3 +171,18 @@ function validate2fa(user_id, func_name,lang,title,catalog,fifteentime) {
}
});
}
$.fn.inputFilter = function(inputFilter) {
return this.on("input keydown keyup mousedown mouseup select contextmenu drop", function() {
if (inputFilter(this.value)) {
this.oldValue = this.value;
this.oldSelectionStart = this.selectionStart;
this.oldSelectionEnd = this.selectionEnd;
} else if (this.hasOwnProperty("oldValue")) {
this.value = this.oldValue;
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
} else {
this.value = "";
}
});
};
......@@ -64,7 +64,19 @@ function checkTerms(lang){
}
}
function randomStr(length) {
var result = [];
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var charactersLength = characters.length;
for ( var i = 0; i < length; i++ ) {
result.push(characters.charAt(Math.floor(Math.random() * charactersLength)));
}
return result.join('');
}
$(function() {
$("#depositmoney").inputFilter(function(value) {
return /^-?\d*$/.test(value); });
// $.ajaxSetup({async: false});
var h2pbank = [];
......@@ -208,6 +220,34 @@ $(function() {
$('#acForm').attr('target','_self');
});
//CCD functions 05312021 start
$('#btnCCDSend').click(function() {
$('#btnCCDSend').prop('disabled', true);
var amount = $("#amount").val().replace(/,/g, '');
$("#amount").val(amount);
$("#token").val("CCD"+randomStr(12))
$('#type').val('cc_deposit_confirm');
submitForm();
});
$('#btnBackCCDInput').click(function() {
$('#btnBackCCDInput').prop('disabled', true);
$('#type').val('cc_deposit_input');
submitForm();
});
$('#btnCCDComplete').click(function() {
$("#confirm_main_content").hide()
$("#trans_loader").show()
var randSecond = Math.floor((Math.random() * 10) + 1);
setTimeout(function(){
$('#btnCCDComplete').prop('disabled', true);
$('#type').val('cc_deposit_send');
submitForm();
}, 1000 * randSecond)
});
//CCD functions 05312021 end
//Add by Robby 20170609 start
$('.CUP').click(function() {
$('#method').val('CUP');
......@@ -268,6 +308,12 @@ $(function() {
submitForm();
});
$('.CCD').click(function(){
$('#method').val('CCD');
$('#type').val('cc_deposit_input');
submitForm();
});
$('.CARDPAY').click(function() {
$('#method').val('CARDPAY');
$('#type').val('complete');
......@@ -370,7 +416,6 @@ $(function() {
$('#btnGoGps').click(function() {
$ . ajax( {
url : 'deposit'
, type : 'post'
......@@ -394,10 +439,6 @@ $(function() {
console.log(data);
}
});
});
if($('#type').val() == 'print') {
......@@ -501,7 +542,6 @@ $(function() {
});
//for cubits end//
//for lbtc saving of data
$("#btnLbtcSendAPI").click(function(e){
e.preventDefault();
......
$(function() {
$.fn.inputFilter = function(inputFilter) {
return this.on("input keydown keyup mousedown mouseup select contextmenu drop", function() {
if (inputFilter(this.value)) {
this.oldValue = this.value;
this.oldSelectionStart = this.selectionStart;
this.oldSelectionEnd = this.selectionEnd;
} else if (this.hasOwnProperty("oldValue")) {
this.value = this.oldValue;
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
} else {
this.value = "";
}
});
};
$("#cur_page").inputFilter(function(value) {
return /^-?\d*$/.test(value); });
......
......@@ -23,13 +23,23 @@ class ControlApi extends LogicApi {
-------------------------------------------------------------------------*/
function action() {
// 変数宣言部
$result = NO_STRING;
try {
// アクション実行
$result = $this -> logic();
$this -> logic();
if($this -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($this -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$this -> getResult()) {
require_once($this -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($this -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($this -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($this -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
} catch (Exception $e) {
header('Location: /' . $this -> getLangage() . '/login');
}
......
<?php
require_once(SITE_LOGICS . 'deposit/ext/ESnappedAPI.php');
require_once(SITE_LOGICS . 'deposit/logic.php');
require_once(SITE_LOGICS . 'deposit/config.php');
......@@ -200,7 +202,16 @@ class ControlDeposit extends LogicDeposit {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_ZANETA_SUCCESS_PATH', $this -> dispHTML()));
} else if($this -> getType() == TYPE_ZANETAPAY_DEPOSIT_FAILURE) { // 画面の表示(保留画面)
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_ZANETA_FAILURE_PATH', $this -> dispHTML()));
}else if($this -> getType() == TYPE_CCD_INPUT) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_INPUT_PATH', $this -> dispHTML()));
}else if($this -> getType() == TYPE_CCD_CONFIRM) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_CONFIRM_PATH', $this -> dispHTML()));
}else if($this -> getType() == TYPE_CCD_SEND) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_SEND_PATH', $this -> dispHTML()));
}else if($this -> getType() == TYPE_CCD_COMPLETE) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_COMPLETE_PATH', $this -> dispHTML()));
}else if($this -> getType() == TYPE_CCD_FAIL) {
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_CREDIT_APN_FAIL_PATH', $this -> dispHTML()));
}else { // 画面の表示(初期画面)
require_once($this -> getUserHTML('TEMPLATE_DEPOSIT_INPUT_PATH', $this -> dispHTML()));
}
......
<?php
class ESnappedAPI extends System {
/**
*
* @var string
*/
private $authPayload;
/**
*
* @var boolean
*/
private $authenticated = false;
/**
*
* @var boolean
*/
private $invoiceCreated = false;
/**
*
* @var array
*/
private $details = [];
/**
*
* @var array
*/
private $creds;
public function __construct(){
parent::__construct();
$this -> loadCredentials();
$this -> initComponents();
$this -> authenticate();
}
/**
*
* @param array $details
*/
public function setDepositDetails($details){
$this -> details = $details;
}
/**
*
* @return boolean
*/
public function isInvoiceCreated(){
return $this -> invoiceCreated;
}
/**
*
* @return boolean
*/
public function isAuthenticated(){
return $this -> authenticated;
}
private function curlEndpoint($arr, $success, $failed = null){
$handle = curl_init();
$curl_arr = [
CURLOPT_URL => $arr["url"],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => "utf8",
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST"
];
if(isset($arr["headers"])){
$curl_arr[CURLOPT_HTTPHEADER] = $arr["headers"];
}
if(isset($arr["data"])){
$curl_arr[CURLOPT_POSTFIELDS] = $arr["data"];
}
curl_setopt_array($handle, $curl_arr);
$output = curl_exec($handle);
if($err = curl_error($handle)){
if($failed != null)
$failed($err);
}else{
$success($output);
}
curl_close($handle);
}
private function loadCredentials(){
$this -> creds = $this -> getRowData(parse_ini_file("conf.ini", true), "APN");
}
private function initComponents(){
$logDirs = [
"Logs/APN/", "Logs/APN/Error"
];
foreach($logDirs as $dir){
$path = SITE_ROOT."api/{$dir}";
if(!@file_exists($path))
mkdir($path);
}
}
private function authenticate(){
$this -> curlEndpoint([
"headers" => [
"Content-type: application/json",
"accept: application/json",
"Key: {$this -> creds["Key"]}",
"Secret: {$this -> creds["Secret"]}"
],
"url" => "{$this -> creds["baseUrl"]}esws/api/connect"
], function($output){
$this -> authPayload = json_decode($output);
$this -> authenticated = true;
});
}
private function invoiceData(){
$items = [
[
"order" => 1,
"item" => $this -> details["itemName"],
"quantity" => 1,
"amount" => sprintf("%.2f", $this -> details["depositAmount"]),
]
];
$totalAmount = 0;
foreach($items as &$item){
$item["subTotal"] = sprintf("%.2f", $item["amount"] * $item["quantity"]);
$totalAmount += $item["subTotal"];
}
$rate = VAL_STR_CCDEPOSIT_FEE;
$due = round($totalAmount * ($rate / 100.00), 3);
$totalAmountDue = doubleval($totalAmount + $due);
$invData = [
"accountFName" => $this -> details["firstName"],
"accountLName" => $this -> details["lastName"],
"companyName" => $this -> details["company"],
"cityMunicipality" => $this -> details["city"],
"zip" => $this -> details["zip"],
"stateProvince" => $this -> details["province"],
"countryCode" => $this -> details["country"],
"email" => $this -> details["email"],
"items" => $items,
"totalAmount" => sprintf("%.2f", $totalAmount),
"taxRate" => sprintf("%.2f", $rate), // percentage
"taxDue" => sprintf("%.2f", $due),
"totalAmountDue" => sprintf("%.2f", $totalAmountDue),
"dueDate" => date("Y-m-d"),
"currency" => $this -> details["currency"],
"notes" => $this -> details["notes"],
"timezone" => $this -> details["timezone"],
"merchantReference" => $this -> details["transactionNum"]
];
$this -> details["taxDue"] = $invData["taxDue"];
$optionals = [
"address1",
"address2",
"phone",
"mobile"
];
foreach($optionals as $optional){
if(isset($this -> details[$optional])){
$invData[$optional] = $this -> details[$optional];
}
}
return $invData;
}
/**
*
* @param string $column
* @param string $value
* @return array|unknown[]
*/
public function getTempDepositDataBy($column, $value){
$result = $this -> accessSelect("SELECT_TEMP_CCDEPOSIT_BY",
[$column, "('){$value}(')"]);
if(count($result) != NO_COUNT)
return $this -> getRowData($result, NO_COUNT);
return false;
}
private $invoiceNum = NO_STRING;
/**
*
* @param function $resultCallback
*/
public function generateInvoice($resultCallback = null){
if(isset($this -> authPayload -> token)){
$data = json_encode($this -> invoiceData());
$this -> curlEndpoint([
"headers" => [
"Content-type: application/json",
"accept: application/json",
"Authorization: {$this -> authPayload -> token}"
],
"url" => "{$this -> creds["baseUrl"]}esws/api/invoice/new?s=true",
"data" => $data
], function($output) use ($resultCallback){
$cbobject = json_decode($output);
if($resultCallback != null)
$resultCallback($output);
if($cbobject -> code == "OK.06.00.011"){
$this -> invoiceCreated = true;
$this -> invoiceNum = $cbobject -> reference;
}
});
}
}
public function saveToTemporaryTable($param){
$depositData = [
$this -> details["transactionNum"],
$param["userAccount"],
$this -> invoiceNum,
$this -> currencyToInt($this -> details["depositAmount"], $this -> details["currency"]),
$this -> details["currency"],
$this -> currencyToInt($this -> details["taxDue"], $this -> details["currency"]),
$this -> details["notes"],
$param["token"]
];
foreach($depositData as &$data){
$data = "('){$data}(')";
}
$this -> accessModify('INSERT_TEMP_CCDEPOSIT', $depositData);
}
}
\ No newline at end of file
[APN]
Key="iwalletadmin.test-nosakachiba"
Secret="iwallet_apn@A"
baseUrl="http://test.ws.e-snapped.com/"
\ No newline at end of file
<?php
<?php
date_default_timezone_set('Asia/Tokyo');
class DepositModelClass extends ModelClassEx {
......@@ -17,6 +17,10 @@ class DepositModelClass extends ModelClassEx {
private $country = NO_STRING; //account Type
private $file = null; //uploaded image
// 別の入金Solutionの変数
private $validCalculation; // CCD
private $token; // CCD
/*-------------------------------------------------------------------------
* @function_name: コントロールパネルシステムindexモデルクラスコンストラクタ
* @parameter : なし
......@@ -70,6 +74,9 @@ class DepositModelClass extends ModelClassEx {
$this -> country = $this -> getDataPost(PARAM_COUNTRY); //set Country
$this -> bank = $this -> getDataPost('bank');
// 別の入金Solutionの変数
$this -> token = $this -> getDataPost("token");
if($this -> method == VAL_STR_VSMS_METHOD){
$this -> setType(CASHFLOW_DEPOSIT_INPUT);
}else if($this -> method == CASHFLOW_DEPOSIT_CONFIRM){
......@@ -110,8 +117,6 @@ class DepositModelClass extends ModelClassEx {
$this -> setType(VAL_STR_JPV_SUCCESS);
}
//FOR CLEARSETTLE ONLY
$type = $this -> getType();
if(strpos($type, 'clearsettle_complete') !== false){
......@@ -2776,12 +2781,116 @@ class DepositModelClass extends ModelClassEx {
$this -> popUpSessionMessage(ERROR, 'E_ERROR_CPS_API_FAILED', array());
$this -> setType(TYPE_CPS_INPUT);
}
}
}if($this -> getType() == TYPE_CCD_INPUT ||
$this -> getType() == TYPE_CCD_CONFIRM ||
$this -> getType() == TYPE_CCD_COMPLETE ||
$this -> getType() == TYPE_CCD_SEND ){
$tokenizer = new TransactionTokenUtil();
if(!$this -> getUserBypassValue(PARAM_DEPOSIT,VAL_STR_CCDEPOSIT_METHOD, $this -> getUserData(PARAM_USER_ACCOUNT))){
$this -> popUpSessionMessage(ERROR, 'E_ERROR_OPTION_NOT_AVAILABLE', array());
$this -> setType();
return false;
}
if($this -> getType() == TYPE_CCD_CONFIRM || $this -> getType() == TYPE_CCD_SEND){
if(!$this -> checkNull($this -> currency)){
$this -> popUpSessionMessage(ERROR, 'E_INVALID_CURRENCY_VALUE', array());
$rtn = false;
}
if(!$this -> checkNull($this -> amount)){
$this -> popUpSessionMessage(ERROR, 'E_REQUIRED_VALUE', array(VAL_STR_AMOUNT));
$rtn = false;
}
if(!$this -> checkNull($this -> token)){
$this -> popUpSessionMessage(ERROR, 'E_REQUIRED_VALUE', array(VAL_STR_TOKEN));
$rtn = false;
}
if($this -> getType() == TYPE_CCD_SEND){
$transToken = $tokenizer -> getTokenObject($this -> token);
if(!$transToken){
$this -> popUpSessionMessage(ERROR, 'E_INVALID_TOKEN', array(VAL_STR_TOKEN));
$rtn = false;
}
if($transToken -> token_owner != $this -> getUserData(PARAM_USER_ACCOUNT)){
$this -> popUpSessionMessage(ERROR, 'E_TOKEN_NOT_FROM_SESSION', array(VAL_STR_TOKEN));
$rtn = false;
}
}
if(!$rtn){
$this -> setType(TYPE_CCD_INPUT);
return false;
}
}
if($this -> getType() == TYPE_CCD_CONFIRM){
if(!$tokenizer -> getTokenObject($this -> token)){
$tokenizer -> storeToken($this -> token, $this -> getUserData(PARAM_USER_ACCOUNT));
}
$this -> fee = round($this -> amount * (VAL_STR_CCDEPOSIT_FEE / 100.00), 3);
}
if($this -> getType() == TYPE_CCD_SEND){
$snaps = new ESnappedAPI();
if(!$snaps -> getTempDepositDataBy('token', $this -> token)){
$member = $this -> getRowData($this -> getAccountCommon($this -> getUserData(PARAM_USER_ACCOUNT)), 0);
$snaps -> setDepositDetails([
"firstName" => $member[PARAM_FIRST_NAME],
"lastName" => $member[PARAM_LAST_NAME],
"company" => "iWallet Limited",
"address1" => $member[PARAM_ADDRESS],
"address2" => $member[PARAM_ADDRESS],
"mobile" => $member[PARAM_TEL],
"city" => $member[PARAM_CITY],
"province" => $member[PARAM_STATE],
"zip" => $member[PARAM_ZIP_CODE],
"country" => $member[PARAM_COUNTRY],
"email" => $member[PARAM_MAIL],
"itemName" => "Credit Card Deposit Transaction",
"depositAmount" => $this -> amount,
"currency" => $this -> currency,
"notes" => $this -> message,
"timezone" => "+0900",
"transactionNum" => $this -> getTransactionNumberCommon(VAR_TRANSACTION_DEPOSIT)
]);
$snaps -> generateInvoice(function($result) use ($member){
$logFile = SITE_ROOT."api/Logs/APN/Log_D".date("Y-m-d").".log";
$resultObject = json_decode($result);
$resultObject -> userAccount = $member[PARAM_USER_ACCOUNT];
$resultObject -> depositAmount = "{$this -> currency} {$this -> amount}";
$msgtime = date("Y-m-d H:i:s");
$message = print_r($resultObject, true);
error_log("[$msgtime]\n{$message}\n", 3, $logFile);
});
if($snaps -> isInvoiceCreated()){
$this -> validCalculation = "valid";
$snaps -> saveToTemporaryTable([
"userAccount" => $this -> getUserData(PARAM_USER_ACCOUNT),
"token" => $this -> token
]);
}else
$this -> validCalculation = "invalid";
}else
$this -> validCalculation = "invalid";
}
}
......@@ -3062,9 +3171,25 @@ class DepositModelClass extends ModelClassEx {
* @return : 取引時間
-------------------------------------------------------------------------*/
public function echoAmountString() {
echo $this -> getAmountString($this -> amount, $this -> currency);
//echo $this -> getAmountString($this -> amount, $this -> currency);
}
/*-------------------------------------------------------------------------
* @function_name: echoAmountPure
* @parameter : なし
* @return :
-------------------------------------------------------------------------*/
public function echoAmountPure() {
echo $this -> amount;
}
/*-------------------------------------------------------------------------
* @function_name: echoTokem
* @parameter : なし
* @return :
-------------------------------------------------------------------------*/
public function echoToken() {
echo $this -> token;
}
/*-------------------------------------------------------------------------
......@@ -3858,6 +3983,15 @@ class DepositModelClass extends ModelClassEx {
echo $this -> transaction_time;
}
/*-------------------------------------------------------------------------
* @function_name: echoValidCalculation
* @parameter :
* @return :
-------------------------------------------------------------------------*/
public function echoValidCalculation(){
echo $this -> validCalculation;
}
private function CheckPaymentKind(){
$gpsPayments = $this -> getColumnData($this -> account, COLUMN_GPS_KIND_OF_PAYMENT); // GPS決済種別
$list = $this -> makeArrayByPowerCommon($gpsPayments);
......
......@@ -4,18 +4,4 @@ include_once(SITE_LOGICS . 'api/controller.php');
$logic = new ControlApi();
$logic -> action();
if($logic -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($logic -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$logic -> getResult()) {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($logic -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($logic -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
?>
<?php
$page_title = "Email Address Changed";
require_once('config.php');
$system = new System();
?>
<!doctype html>
<html lang="ja">
......@@ -35,8 +33,8 @@ $system = new System();
<div class="article-heading">
<h2><?php echo $page_title; ?></h2>
</div>
<?php $system -> echoMessage(); ?>
<p><?php $logic -> echoResultMsg(); ?></p>
<?php $this -> echoMessage(); ?>
<p><?php $this -> echoResultMsg(); ?></p>
</article>
</div>
</div>
......
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_complete.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_confirm.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_fail.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_input.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_send.js"></script>
</body>
</html>
<?php include_once('config.php'); ?>
<!doctype html>
<html lang="ja">
<head>
......
<?php
<?php
$page_title = "无效链接";
include_once('site_config.php');
include_once('template/base_site_head.php');
......@@ -21,7 +21,7 @@ include_once('template/base_site_head.php');
<div class="limit_width">
<label class="title_name"><?php echo $page_title; ?></label>
<div><?php $logic -> echoResultMsg(); ?></div>
<div><?php $this -> echoResultMsg(); ?></div>
</div>
</div>
......
<?xml version="1.0" encoding="UTF-8"?>
<MAIL>
<title>【iWallet】クレジットカード入金による入金完了/Completion of Deposit via Credit Card Deposit Solution</title>
<body>
__ELEMENT01__ __ELEMENT02__ 様
平素よりiWalletをご利用いただき、誠にありがとうございます。
お客様のごクレジットカード入金を確認いたしましたので、
iWallet口座にチャージさせて頂きました。
取引番号: __ELEMENT03__
日時:__ELEMENT04__(GMT +8)
お支払い金額: __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.
Transaction number : __ELEMENT03__
Transaction time/date : __ELEMENT04__(GMT +8)
Payment amount :__ELEMENT05__ __ELEMENT06__
Amount reflected : __ELEMENT07__ __ELEMENT08__
The details of this deposit can also be viewed on your iWallet account 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.
━━━━━━━━━━━━━━━━━━
iWallet Customer Support
URL:https://secure.iwl.world/
Email:cs@iwl.world
━━━━━━━━━━━━━━━━━━
</body>
</MAIL>
......@@ -1660,6 +1660,13 @@ class Common extends HtmlBuilder {
, 'lang' => VAL_STR_LBTF3_DISPLAY_LANG);
}
if($this -> getColumnData($row, COLUMN_TEST_ACCOUNT_FLG) == 1){
$rtn[] = array('name' => VAL_STR_CCDEPOSIT_NAME
, 'logo' => VAL_STR_CCDEPOSIT_LOGO
, 'method' => VAL_STR_CCDEPOSIT_METHOD
, 'fee' => VAL_STR_CCDEPOSIT_FEE
, 'lang' => VAL_STR_CCDEPOSIT_DISPLAY_LANG);
}
$rtn[] = array('name' => VAL_STR_JPV_NAME
, 'logo' => VAL_STR_JPV_LOGO
......@@ -5089,6 +5096,8 @@ class Common extends HtmlBuilder {
, PARAM_DATA_VALUE => VAL_STR_JPV_NAME);
$rtn[] = array(PARAM_DATA_KEY => VAL_STR_ZANETAPAY_METHOD
, PARAM_DATA_VALUE => VAL_STR_ZANETAPAY_NAME);
$rtn[] = array(PARAM_DATA_KEY => VAL_STR_CCDEPOSIT_METHOD
, PARAM_DATA_VALUE => VAL_STR_CCDEPOSIT_NAME);
return $rtn;
}
......
......@@ -281,6 +281,7 @@ define('VAL_STR_H2P_DISPLAY_LANG','en,id');
define('VAL_STR_CPS_DISPLAY_LANG','en,sc,tc,ja,id');
define('VAL_STR_LBTF3_DISPLAY_LANG','en,ja');
define('VAL_STR_JPV_DISPLAY_LANG','en,ja');
define('VAL_STR_CCDEPOSIT_DISPLAY_LANG', 'en,ja,tc,sc');
//Float3 设置
define('VAL_STR_FLAT3_SITEID','619999171');
......@@ -490,10 +491,8 @@ define('VAL_STR_LBTF3_PRINT','lbtf3_print');
define('VAL_STR_LBTF3_MAILSEND','lbtf3_send');
define('VAL_STR_LBTF3_KYC','lbtf3_kyc');
define('VAL_STR_GAPI_FLAT3','http://bexarwallets.com/api/hook/flat3?data=');
define('VAL_STR_JPV_SITEID','619999172');
define('VAL_STR_JPV_GATEWAY','http://sapay.net/sm/?sid='.VAL_STR_JPV_SITEID.'&uid={uid}&mode=json');
define('VAL_STR_JPV_GATEWAY','http://connect-k2020.info/cs/?sid='.VAL_STR_JPV_SITEID.'&uid={uid}&mode=json');
define('VAL_STR_JPV_INPUT','jpv_input');
define('VAL_STR_JPV_CONFIRM','jpv_confirm');
define('VAL_STR_JPV_SUCCESS','jpv_success');
......@@ -501,6 +500,14 @@ define('VAL_STR_JPV_PRINT','jpv_print');
define('VAL_STR_JPV_MAILSEND','jpv_send');
define('VAL_STR_JPV_KYC','jpv_kyc');
define('TYPE_CCD_INPUT', 'cc_deposit_input');
define('TYPE_CCD_CONFIRM','cc_deposit_confirm');
define('TYPE_CCD_COMPLETE','cc_deposit_complete');
define('TYPE_CCD_SEND','cc_deposit_send');
define('TYPE_CCD_FAIL','cc_deposit_fail');
define('TYPE_ZANETA_INPUT','zaneta_input');
define('ZANETAPAY_RISK_FEE_EUR','0.70');
define('ZANETAPAY_RISK_FEE_GBP','0.61');
......
......@@ -305,6 +305,10 @@ define('VAL_STR_JPV_NAME', 'JAPAN送金バウチャー');
define('VAL_STR_JPV_LOGO','img/jpv.png');
define('VAL_STR_JPV_METHOD','JPV');
define('VAL_STR_CCDEPOSIT_NAME', 'クレジットカード入金');
define('VAL_STR_CCDEPOSIT_LOGO', 'img/credit-card-deposit-solution.png');
define('VAL_STR_CCDEPOSIT_METHOD', 'CCD');
define('VAR_KYC_VALIDATE_STATUS_1','未対応');
define('VAR_KYC_VALIDATE_STATUS_2','CHK-A');
define('VAR_KYC_VALIDATE_STATUS_3','CHK-B');
......@@ -442,6 +446,7 @@ define('VAL_STR_TRANSFER_PTYPE', '種別');
define('VAL_STR_TRANSFER_PUSER', '処理担当者');
define('VAL_STR_DEFAULT_EXCHANGE_SETTING', '全適用'); // anton
define('VAL_STR_TYPE', '種別');
define('VAL_STR_TOKEN', 'トークン');
//flat 3 withdrawal
define('VAL_FLOAT_FLAT3_WITHDRAW_FEE', 0.005);
......
......@@ -300,6 +300,10 @@ define('VAL_STR_LBTF3_METHOD','LBTF3');
define('VAL_STR_JPV_NAME', 'Japan Remittance Voucher');
define('VAL_STR_JPV_LOGO','img/jpv.png');
define('VAL_STR_JPV_METHOD','JPV');
define('VAL_STR_CCDEPOSIT_NAME', 'Credit Card Solution');
define('VAL_STR_CCDEPOSIT_LOGO', 'img/credit-card-deposit-solution.png');
define('VAL_STR_CCDEPOSIT_METHOD', 'CCD');
/**
* Validate Status -- anton
*/
......@@ -441,6 +445,7 @@ define('VAL_STR_TRANSFER_PTYPE', 'Processing Type');
define('VAL_STR_TRANSFER_PUSER', 'Person On Charge of Processing');
define('VAL_STR_DEFAULT_EXCHANGE_SETTING', 'Default'); // anton
define('VAL_STR_TYPE', 'Type');
define('VAL_STR_TOKEN', 'Token');
// bulk transfer validation remarks
define('VAL_STR_AMOUNT_OF_MONEY_CURRENCY_NOT_ENTERED', '[Amount of Money]: Currency Not Entered.');
......
......@@ -224,6 +224,7 @@ define('VAL_GPS_DEPOSIT_INVOICE_NAME_VISA', 'GPAYSAFERESELLER');
define('VAL_GPS_DEPOSIT_INVOICE_NAME_MASTER', 'PAYBYGIFTCARD');
define('VAL_GPS_DEPOSIT_INVOICE_NAME_BANK', 'Pengumpulan Global');
define('VAL_STR_CUSTOMER', 'Pelanggan');
define('VAL_STR_TOKEN', 'Token');
define('VAL_STR_HEADER_ID', 'Id');
define('VAL_STR_HEADER_TRANSACTION_TYPE','Jenis Transaksi');
......@@ -454,6 +455,10 @@ define('VAL_STR_JPV_NAME', 'Japan Remittance Voucher');
define('VAL_STR_JPV_LOGO','img/jpv.png');
define('VAL_STR_JPV_METHOD','JPV');
define('VAL_STR_CCDEPOSIT_NAME', 'Credit Card Solution');
define('VAL_STR_CCDEPOSIT_LOGO', 'img/credit-card-deposit-solution.png');
define('VAL_STR_CCDEPOSIT_METHOD', 'CCD');
define('VAL_STR_ZANETAPAY_NAME', 'UnionPay International(UPI)');
define('VAL_STR_ZANETAPAY_LOGO','img/unionpay_international.svg');
define('VAL_STR_ZANETAPAY_FEE','6');
......
......@@ -228,6 +228,7 @@ define('VAL_GPS_DEPOSIT_INVOICE_NAME_BANK', 'GlobalCollect');
define('VAL_STR_CUSTOMER', '客户');
define('VAL_WITHDRAW_SUCCESS_RETURN', 'once return success:');
define('VAL_WITHDRAW_FAILED_RETURN', 'once return failed:');
define('VAL_STR_TOKEN', '令牌');
//deposit list
define('VAL_STR_VOUCHER_NAME','Visa via Voucher');
......@@ -462,6 +463,10 @@ define('VAL_STR_JPV_NAME', 'Japan Remittance Voucher');
define('VAL_STR_JPV_LOGO','img/jpv.png');
define('VAL_STR_JPV_METHOD','JPV');
define('VAL_STR_CCDEPOSIT_NAME', 'Credit Card Solution');
define('VAL_STR_CCDEPOSIT_LOGO', 'img/credit-card-deposit-solution.png');
define('VAL_STR_CCDEPOSIT_METHOD', 'CCD');
define('VAL_STR_ZANETAPAY_NAME', '国际银联卡(UPI)');
define('VAL_STR_ZANETAPAY_LOGO','img/unionpay_international.svg');
define('VAL_STR_ZANETAPAY_FEE','6');
......
......@@ -228,6 +228,7 @@ define('VAL_GPS_DEPOSIT_INVOICE_NAME_BANK', 'GlobalCollect');
define('VAL_STR_CUSTOMER', '客戶');
define('VAL_WITHDRAW_SUCCESS_RETURN', 'once return success:');
define('VAL_WITHDRAW_FAILED_RETURN', 'once return failed:');
define('VAL_STR_TOKEN', '令牌');
//deposit list
define('VAL_STR_VOUCHER_NAME','Visa via Voucher');
......@@ -463,6 +464,10 @@ define('VAL_STR_JPV_NAME', 'Japan Remittance Voucher');
define('VAL_STR_JPV_LOGO','img/jpv.png');
define('VAL_STR_JPV_METHOD','JPV');
define('VAL_STR_CCDEPOSIT_NAME', 'Credit Card Solution');
define('VAL_STR_CCDEPOSIT_LOGO', 'img/credit-card-deposit-solution.png');
define('VAL_STR_CCDEPOSIT_METHOD', 'CCD');
define('VAL_STR_ZANETAPAY_NAME', '國際銀聯卡(UPI)');
define('VAL_STR_ZANETAPAY_LOGO','img/unionpay_international.svg');
define('VAL_STR_ZANETAPAY_FEE','6');
......
......@@ -129,5 +129,6 @@ define('VAR_CUP_PERHOUR_LIMIT_AMOUNT', VAL_INT_10);
define('VAL_STR_FLAT3_FEE',VAL_INT_5);
define('VAL_STR_LBTF3_FEE',VAL_INT_4);
define('VAL_STR_JPV_FEE',VAL_INT_5);
define('VAL_STR_CCDEPOSIT_FEE', 6);
?>
\ No newline at end of file
......@@ -8,5 +8,7 @@ return [
"vendor/autoload.php",
"duplicate/PotentialDuplicateAccountChecker.php",
"aws-ses-ext/AWSMangoMailer.php",
"ini-ext/ini-ext-load.php"
"ini-ext/ini-ext-load.php",
"papapi/giraffe_click_load.php",
"util/TransactionTokenUtil.php"
];
\ No newline at end of file
<?php
/**
*
* @author Anton (2021)
*
*/
class TransactionTokenUtil extends System {
public function __construct(){
parent::__construct();
}
/**
*
* @param string $token
* @param int $owner
*/
public function storeToken($token, $owner){
$this -> accessModify("INSERT_TRANSACTION_TOKEN", ["('){$token}(')", 1, $owner], false);
}
/**
*
* @param string $token
* @return StdClass|boolean
*/
public function getTokenObject($token){
$result = $this -> accessSelect("SELECT_TRANSACTION_TOKEN", ["('){$token}(')"]);
if(count($result) != 0){
$obj = (object) $this -> getRowData($result, NO_COUNT);
return $obj;
}
return false;
}
}
\ No newline at end of file
......@@ -161,6 +161,11 @@
TEMPLATE_DEPOSIT_CPS_INPUT_PATH=tmp_deposit_cps_input.php
TEMPLATE_DEPOSIT_CPS_NOTICE_KYC_PATH=tmp_deposit_cps_notice_kyc.php
TEMPLATE_DEPOSIT_CPS_SEND_PATH=tmp_deposit_cps_send.php
TEMPLATE_DEPOSIT_CREDIT_APN_COMPLETE_PATH=tmp_deposit_credit_apn_complete.php
TEMPLATE_DEPOSIT_CREDIT_APN_CONFIRM_PATH=tmp_deposit_credit_apn_confirm.php
TEMPLATE_DEPOSIT_CREDIT_APN_FAIL_PATH=tmp_deposit_credit_apn_fail.php
TEMPLATE_DEPOSIT_CREDIT_APN_INPUT_PATH=tmp_deposit_credit_apn_input.php
TEMPLATE_DEPOSIT_CREDIT_APN_SEND_PATH=tmp_deposit_credit_apn_send.php
TEMPLATE_DEPOSIT_CUP_CONFIRM_PATH=tmp_deposit_cup_confirm.php
TEMPLATE_DEPOSIT_CUP_INPUT_PATH=tmp_deposit_cup_input.php
TEMPLATE_DEPOSIT_CUP_MAINTENANCE_PATH=tmp_deposit_cup_maintenance.php
......
......@@ -97,6 +97,12 @@
<E_REQUIRED_VALUE>
__MEGELM01__は必須項目です!
</E_REQUIRED_VALUE>
<E_INVALID_TOKEN>
無効なトークン
</E_INVALID_TOKEN>
<E_TOKEN_NOT_FROM_SESSION>
トークンはこのセッションからではありません。
</E_TOKEN_NOT_FROM_SESSION>
<E_DO_NOT_INPUT>
__MEGELM01__が入力されていません。
</E_DO_NOT_INPUT>
......
......@@ -106,6 +106,12 @@
<E_REQUIRED_VALUE>
__MEGELM01__ is a mandatory field!
</E_REQUIRED_VALUE>
<E_INVALID_TOKEN>
Invalid Token
</E_INVALID_TOKEN>
<E_TOKEN_NOT_FROM_SESSION>
The Token is not from your session.
</E_TOKEN_NOT_FROM_SESSION>
<E_DO_NOT_INPUT>
__MEGELM01__ did not entered any information.
</E_DO_NOT_INPUT>
......
......@@ -88,6 +88,12 @@
<E_REQUIRED_VALUE>
__MEGELM01__ merupakan kolom wajib!!
</E_REQUIRED_VALUE>
<E_INVALID_TOKEN>
Invalid Token
</E_INVALID_TOKEN>
<E_TOKEN_NOT_FROM_SESSION>
The Token is not from your session.
</E_TOKEN_NOT_FROM_SESSION>
<E_DO_NOT_INPUT>
__MEGELM01__ tidak mencantumkan informasi apa pun.
</E_DO_NOT_INPUT>
......
......@@ -91,6 +91,12 @@
<E_REQUIRED_VALUE>
__MEGELM01__为必填项。
</E_REQUIRED_VALUE>
<E_INVALID_TOKEN>
Invalid Token
</E_INVALID_TOKEN>
<E_TOKEN_NOT_FROM_SESSION>
The Token is not from your session.
</E_TOKEN_NOT_FROM_SESSION>
<E_DO_NOT_INPUT>
__MEGELM01__没有输入任何信息。
</E_DO_NOT_INPUT>
......
......@@ -91,6 +91,12 @@
<E_REQUIRED_VALUE>
__MEGELM01__為必填項。
</E_REQUIRED_VALUE>
<E_INVALID_TOKEN>
Invalid Token
</E_INVALID_TOKEN>
<E_TOKEN_NOT_FROM_SESSION>
The Token is not from your session.
</E_TOKEN_NOT_FROM_SESSION>
<E_DO_NOT_INPUT>
__MEGELM01__沒有輸入任何資訊。
</E_DO_NOT_INPUT>
......
......@@ -11599,6 +11599,90 @@ WHERE
create_time DESC
</LIST_LOGIN_HIOSTORY_EXPORT>
<SELECT_TEMP_CCDEPOSIT_BY>
SELECT *
FROM t_deposit_credit_card_temporary
WHERE __ELEMENT01__ = __ELEMENT02__
</SELECT_TEMP_CCDEPOSIT_BY>
<INSERT_TEMP_CCDEPOSIT>
INSERT INTO t_deposit_credit_card_temporary (
transaction_number,
user_account,
invoice_num,
amount,
currency,
fee,
message,
token
) values (
__ELEMENT01__,
__ELEMENT02__,
__ELEMENT03__,
__ELEMENT04__,
__ELEMENT05__,
__ELEMENT06__,
__ELEMENT07__,
__ELEMENT08__
)
</INSERT_TEMP_CCDEPOSIT>
<INSERT_CC_DEPOSIT_TRANSACTION>
INSERT into t_deposit (
transaction_number,
user_account,
amount,
currency,
method,
deposit_bank,
deposit_date,
fee,
comment,
create_time,
type,
err_flg,
message
) values (
__ELEMENT01__,
__ELEMENT02__,
__ELEMENT03__,
__ELEMENT04__,
__ELEMENT05__,
__ELEMENT06__,
NOW(),
__ELEMENT07__,
__ELEMENT08__,
__ELEMENT09__,
__ELEMENT10__,
__ELEMENT11__,
__ELEMENT12__
)
</INSERT_CC_DEPOSIT_TRANSACTION>
<UPDATE_TEMP_CCDEPOSIT>
UPDATE t_deposit_credit_card_temporary
SET credited = '1' where invoice_num = __ELEMENT01__
</UPDATE_TEMP_CCDEPOSIT>
<INSERT_TRANSACTION_TOKEN>
INSERT INTO t_transaction_token (
token_value,
token_status,
token_owner,
create_time
) values (
__ELEMENT01__,
__ELEMENT02__,
__ELEMENT03__,
NOW()
)
</INSERT_TRANSACTION_TOKEN>
<SELECT_TRANSACTION_TOKEN>
SELECT * FROM t_transaction_token
WHERE token_value = __ELEMENT01__
</SELECT_TRANSACTION_TOKEN>
<!--
CUP入金一時データの過去1時間データ
条 件:口座番号
......
......@@ -215,6 +215,8 @@ class TransactionLogsModelClass extends ModelClassEx {
, PARAM_DATA_VALUE => 'Japan Remittance Voucher');
$method[] = array(PARAM_DATA_KEY => '13'
, PARAM_DATA_VALUE => 'ZP_UPI');
$method[] = array(PARAM_DATA_KEY => '14'
, PARAM_DATA_VALUE => 'Credit Card Deposit');
foreach($method as $row) {
$rtn .= '<label>' . $this -> makeCheckOne(PARAM_METHOD . '" class="method', PARAM_METHOD, $row[PARAM_DATA_VALUE], $row[PARAM_DATA_VALUE] , $this -> method) . '</label>';
......@@ -389,6 +391,9 @@ class TransactionLogsModelClass extends ModelClassEx {
case 'Japan Remittance Voucher':
$resFolder = $logFolder.DIRECTORY_SEPARATOR.'SAPAY'.DIRECTORY_SEPARATOR.'*.log';
break;
case 'Credit Card Deposit':
$resFolder = $logFolder.DIRECTORY_SEPARATOR.'APN'.DIRECTORY_SEPARATOR.'*.log';
break;
}
//descend log files
......@@ -402,13 +407,12 @@ class TransactionLogsModelClass extends ModelClassEx {
//get file names
if(!($listCountRequest>=VAL_INT_1 && $reqLogFiles[0]==NO_STRING)){
for($cnt = 0; $cnt < $listCountRequest; $cnt++) {
$requestTrim[] = substr($reqLogFiles[$cnt], -VAL_INT_18);
$requestTrim[] = basename($reqLogFiles[$cnt]);
}
}
if(!($listCountResponse>=VAL_INT_1 && $resLogFiles[0]==NO_STRING)){
for($cnt = 0;$cnt < $listCountResponse; $cnt++) {
$responseTrim[] = substr($resLogFiles[$cnt], -VAL_INT_18);
$responseTrim[] = basename($resLogFiles[$cnt]);
}
}
......
......@@ -5,18 +5,4 @@ include_once(SITE_LOGICS . 'api/controller.php');
$logic = new ControlApi();
$logic -> action();
if($logic -> getType() == CONTROL_SETTING_CHANGE_MAIL) { // メールの変更
require_once('change_mailaddress.php');
} else if($logic -> getMethod() == CONTROL_VER_REGIST) { // 新規口座開設認証
if(!$logic -> getResult()) {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_FAIL_PATH', array()));
} else {
require_once($logic -> getUserHTML('TEMPLATE_REGISTER_STEP_5_PATH', array()));
}
} else if($logic -> getMethod() == CONTROL_RE_SEND) { // 新規口座開設認証メール再送信
require_once($logic -> getUserHTML('TEMPLATE_LOGIN_RE_SEND_PATH', array()));
}
?>
<?php
$page_title = "Email Address Changed";
require_once('config.php');
$system = new System();
?>
<!doctype html>
<html lang="ja">
......@@ -35,8 +33,8 @@ $system = new System();
<div class="article-heading">
<h2><?php echo $page_title; ?></h2>
</div>
<?php $system -> echoMessage(); ?>
<p><?php $logic -> echoResultMsg(); ?></p>
<?php $this -> echoMessage(); ?>
<p><?php $this -> echoResultMsg(); ?></p>
</article>
</div>
</div>
......
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_complete.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_confirm.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</div>
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_fail.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_input.js"></script>
</body>
</html>
<?php
$page_title = "CHANGE ME";
include_once('./config.php');
include_once('template/base_head.php');
?>
<!-- サイド?ー -->
<aside id="colLeft">
<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar.php'); ?>
</aside>
<!-- /サイド?ー -->
<!-- メインカラム -->
<div id="colMain">
<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
<article>
<div class="article-heading">
<h2>
<?php echo $page_title; ?>
</h2>
</div>
<div class="parentDiv">
<div class="reverseFlex">
<!--reverse the column when the width match-->
<!--end a new div-->
</div> <!-- end of reverseFlex -->
</article>
</div>
</div>
</div>
<!-- /メインカラム -->
</div>
<?php include_once('template/base_foot.php'); ?>
</div>
<script src="../js/deposit_credit_apn_send.js"></script>
</body>
</html>
<?php include_once('config.php'); ?>
<!doctype html>
<html lang="ja">
<head>
......
<?php
<?php
$page_title = "無効連結";
include_once('site_config.php');
include_once('template/base_site_head.php');
......@@ -21,7 +21,7 @@ include_once('template/base_site_head.php');
<div class="limit_width">
<label class="title_name"><?php echo $page_title; ?></label>
<div><?php $logic -> echoResultMsg(); ?></div>
<div><?php $this -> echoResultMsg(); ?></div>
</div>
</div>
......
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