-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMethod.php
84 lines (76 loc) · 2.03 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace Dfe\Vantiv;
use Dfe\Vantiv\Facade\Card;
use Magento\Sales\Model\Order\Payment\Transaction as T;
# 2018-12-17
/** @method Settings s() */
final class Method extends \Df\StripeClone\Method {
/**
* 2018-12-19
* @used-by \Dfe\Vantiv\Block\Info::card()
* @used-by \Dfe\Vantiv\Charge::pCharge()
* @used-by \Dfe\Vantiv\Facade\Charge::card()
*/
function card():Card {return dfc($this, function() {return Card::create($this, $this->iia(
self::C_CVC, self::C_EXP_MONTH, self::C_EXP_YEAR, self::C_NUMBER
));});}
/**
* 2018-12-17
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
/**
* 2018-12-19
* @override
* @see \Df\StripeClone\Method::chargeNewParams()
* @used-by \Df\StripeClone\Method::chargeNew()
* @return array(string => mixed)
*/
protected function chargeNewParams(bool $capture):array {return Charge::p($this);}
/**
* 2018-12-17
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys():array {return [self::C_CVC, self::C_EXP_MONTH, self::C_EXP_YEAR, self::C_NUMBER];}
/**
* 2018-12-17
* @override
* @see \Df\StripeClone\Method::transUrlBase()
* @used-by \Df\StripeClone\Method::transUrl()
*/
protected function transUrlBase(T $t):string {return '';}
/**
* 2018-12-17
* @used-by self::card()
* @used-by self::iiaKeys()
* @used-by \Dfe\Vantiv\Facade\Card::cvc()
*/
const C_CVC = 'c_cvc';
/**
* 2018-12-17
* @used-by self::ard()
* @used-by self::iiaKeys()
* @used-by \Dfe\Vantiv\Facade\Card::expMonth()
*/
const C_EXP_MONTH = 'c_exp_month';
/**
* 2018-12-17
* @used-by self::card()
* @used-by self::iiaKeys()
* @used-by \Dfe\Vantiv\Facade\Card::expYear()
*/
const C_EXP_YEAR = 'c_exp_year';
/**
* 2018-12-17
* @used-by self::card()
* @used-by self::iiaKeys()
* @used-by \Dfe\Vantiv\Facade\Card::number()
*/
const C_NUMBER = 'c_number';
}