-
Notifications
You must be signed in to change notification settings - Fork 1
/
Method.php
56 lines (51 loc) · 1.38 KB
/
Method.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Dfe\TBCBank;
use Df\Payment\Token;
use Magento\Sales\Model\Order\Payment\Transaction as T;
# 2018-09-26
/** @method Settings s() */
final class Method extends \Df\StripeClone\Method {
/**
* 2018-10-06
* @override
* @see \Df\Payment\Method::canCapturePartial()
*/
function canCapturePartial():bool {return true;}
/**
* 2018-09-26
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
/**
* 2018-11-14 It is used only for repetitive payments via previously saved bank cards.
* @override
* @see \Df\StripeClone\Method::chargeNewParams()
* @used-by \Df\StripeClone\Method::chargeNew()
* @return array(string => mixed)
*/
protected function chargeNewParams(bool $capture):array {return Charge::pNew($this);}
/**
* 2018-09-29
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys():array {return [Token::KEY];}
/**
* 2018-11-09
* @override
* @see \Df\StripeClone\Method::transUrlBase()
* @used-by \Df\StripeClone\Method::transUrl()
*/
protected function transUrlBase(T $t):string {return '';}
/**
* 2018-09-26
* @used-by \Df\Payment\Method::codeS()
* @see \Df\Payment\Settings::prefix()
*/
const CODE = 'dfe_tbc_bank';
}