Commit 0b4116d9 authored by Antonio.Suerte's avatar Antonio.Suerte

Hotfix 0922

parent b0a1d01f
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
require_once('ext/ESnappedAPI.php'); require_once('ext/ESnappedAPI.php');
require_once('ext/EasyPaymentLinkAPI.php'); require_once('ext/EasyPaymentLinkAPI.php');
require_once(SITE_LOGICS . 'deposit/logic.php'); require_once('../logic/deposit/logic.php');
require_once(SITE_LOGICS . '/deposit/config.php'); require_once('../logic/deposit/config.php');
class ControlDeposit extends LogicDeposit { class ControlDeposit extends LogicDeposit {
......
...@@ -71,7 +71,7 @@ class EasyPaymentLinkAPI extends System { ...@@ -71,7 +71,7 @@ class EasyPaymentLinkAPI extends System {
*/ */
private $currency; private $currency;
private function __construct(){ public function __construct(){
parent::__construct(); parent::__construct();
$this -> setParameter(); $this -> setParameter();
} }
......
<?php <?php
require_once(SITE_LOGICS . 'deposit/model.php'); require_once('../logic/deposit/model.php');
class LogicDeposit extends DepositModelClass { class LogicDeposit extends DepositModelClass {
......
...@@ -2889,6 +2889,7 @@ class DepositModelClass extends ModelClassEx { ...@@ -2889,6 +2889,7 @@ class DepositModelClass extends ModelClassEx {
$eplAPI -> process(); $eplAPI -> process();
// verdict
if($eplAPI -> getHttpCode() == "200"){ if($eplAPI -> getHttpCode() == "200"){
$eplAPI -> redirectToForm(); $eplAPI -> redirectToForm();
} }
......
<?php <?php
require_once(SITE_LOGICS . 'logic/middleware/model.php'); require_once('../logic/middleware/model.php');
class LogicMiddleware extends MiddlewareModelClass { class LogicMiddleware extends MiddlewareModelClass {
......
...@@ -64,7 +64,7 @@ class EasyPaymentLink extends System { ...@@ -64,7 +64,7 @@ class EasyPaymentLink extends System {
* コンストラクタ * コンストラクタ
* *
*/ */
private function __construct(){ public function __construct(){
parent::__construct(); parent::__construct();
$this -> eplconf = $this -> getConfiguration(); $this -> eplconf = $this -> getConfiguration();
$this -> eplTransactionId = $this -> getDataGet("transaction_id"); $this -> eplTransactionId = $this -> getDataGet("transaction_id");
......
...@@ -51,9 +51,8 @@ class PaymentAPI extends System { ...@@ -51,9 +51,8 @@ class PaymentAPI extends System {
* コンストラクタ * コンストラクタ
* *
*/ */
private function __construct(){ public function __construct(){
parent::__construct(); parent::__construct();
$this -> initSettings(); $this -> initSettings();
} }
......
...@@ -322,7 +322,7 @@ class SettlementModelClass extends ModelClassEx { ...@@ -322,7 +322,7 @@ class SettlementModelClass extends ModelClassEx {
PARAM_CURRENCY => $this -> currency, PARAM_CURRENCY => $this -> currency,
PARAM_RATE => $this -> getRateEx(), PARAM_RATE => $this -> getRateEx(),
"uniqueSubmission" => !$this -> isLoopData($invalid) ? "uniqueSubmission" => !$this -> isLoopData($invalid) ?
$this -> formName.md5($this -> paymentAPIConf -> middleware_sign_passphrase) : NO_STRING, $this -> formName.md5($this -> paymentAPIConf -> middleware_sig_passphrase) : NO_STRING,
PARAM_MESSAGE => $this -> msg PARAM_MESSAGE => $this -> msg
]; ];
} }
...@@ -474,11 +474,12 @@ class SettlementModelClass extends ModelClassEx { ...@@ -474,11 +474,12 @@ class SettlementModelClass extends ModelClassEx {
} }
private function validateProcessing(){ private function validateProcessing(){
if($this -> uniqueSubmission == $this -> formName.md5($this -> paymentAPIConf -> middleware_sig_token)){ print_r($this -> paymentAPIConf);
if($this -> uniqueSubmission == $this -> formName.md5($this -> paymentAPIConf -> middleware_sig_passphrase)){
$this -> setData(); $this -> setData();
$this -> arrangeFreeParams(); $this -> arrangeFreeParams();
}else{ }else{
$this -> invalidFormParams("Invalid Submission Identifier!"); $this -> invalidFormParams[] = "Invalid Submission Identifier!";
$this -> setType(TYPE_FAIL); $this -> setType(TYPE_FAIL);
} }
} }
......
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