Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 29, 2018
1 parent 06420ac commit eb1a73e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)]);
}
}
2 changes: 1 addition & 1 deletion Init/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions Method.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
namespace Dfe\TBCBank;
use Df\Payment\Token;
// 2018-09-26
final class Method extends \Df\Payment\Method {
/**
Expand All @@ -11,6 +12,15 @@ final class Method extends \Df\Payment\Method {
*/
protected function amountLimits() {return null;}

/**
* 2018-09-29
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys() {return [Token::KEY];}

/**
* 2018-09-26
* @used-by \Df\Payment\Method::codeS()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.9.13"}
,"require": {"mage2pro/core": ">=3.9.14"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\TBCBank\\": ""}}
,"keywords": [
"API"
Expand Down
2 changes: 2 additions & 0 deletions view/frontend/web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb1a73e

Please sign in to comment.