diff --git a/Init.php b/Init.php index 7d1c0d8..1756de5 100644 --- a/Init.php +++ b/Init.php @@ -42,7 +42,7 @@ function registered($cartId, IQP $qp, IQA $ba = null) {return $this->p();} */ private function p() { /** @var array(string => mixed) $p */ - df_customer_session()->setDfeTBCParams(df_json_encode($p = Charge::p())); + df_customer_session()->setDfeTBCParams($p = Charge::p()); return dfw_encode(['id' => substr(Api::p($p), -28)]); } } \ No newline at end of file diff --git a/Init/Action.php b/Init/Action.php index 83b2ae9..efed201 100644 --- a/Init/Action.php +++ b/Init/Action.php @@ -15,7 +15,7 @@ final class Action extends \Df\Payment\Init\Action { * @used-by \Df\Payment\Init\Action::action() * @return array(string => mixed) */ - protected function redirectParams() {return df_json_decode(df_customer_session()->getDfeTBCParams());} + protected function redirectParams() {return df_customer_session()->getDfeTBCParams();} /** * 2018-09-26 diff --git a/Method.php b/Method.php index 02c61a3..a43977e 100644 --- a/Method.php +++ b/Method.php @@ -1,5 +1,6 @@ =3.9.13"} + ,"require": {"mage2pro/core": ">=3.9.14"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TBCBank\\": ""}} ,"keywords": [ "API" diff --git a/view/frontend/web/main.js b/view/frontend/web/main.js index c55f130..e3a09a2 100644 --- a/view/frontend/web/main.js +++ b/view/frontend/web/main.js @@ -28,6 +28,8 @@ return parent.extend({ ,count: 1 ,cvc2: this.creditCardVerificationNumber() ,trans_id: this.token + ,validMONTH: this.creditCardExpMonth2() + ,validYEAR: this.creditCardExpYear2() })}, /** * 2018-09-29