-
Notifications
You must be signed in to change notification settings - Fork 4
/
Method.php
66 lines (60 loc) · 1.63 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
<?php
namespace Dfe\IPay88;
// 2017-04-10
/** @method Settings s() */
final class Method extends \Df\PaypalClone\Method {
/**
* 2017-04-10
* «Payment amount with two decimals and thousand symbols. Example: 1,278.99»
* @override
* @see \Df\Payment\Method::amountFormat()
* @used-by \Df\Payment\Operation::amountFormat()
* @param float|int $a
* @return string
*/
function amountFormat($a) {return number_format($a, 2, '.', ',');}
/**
* 2017-04-14
* @used-by \Dfe\IPay88\Charge::pCharge()
* @return string
*/
function option() {return df_result_sne($this->iia(self::$II_OPTION));}
/**
* 2017-04-10
* @override
* @see \Df\Payment\Method::amountFactor()
* @used-by \Df\Payment\Method::amountFormat()
* @used-by \Df\Payment\Method::amountParse()
* @return int
*/
protected function amountFactor() {return 1;}
/**
* 2017-04-10
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
/**
* 2017-04-14
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys() {return [self::$II_OPTION];}
/**
* 2017-04-10
* @used-by https://github.com/mage2pro/ipay88/blob/0.0.2/etc/di.xml#L9
* @used-by \Df\Payment\Method::codeS()
* @see \Df\Payment\Settings::prefix()
*/
const CODE = 'dfe_ipay88';
/**
* 2017-04-14 https://github.com/mage2pro/core/blob/2.12.17/Payment/view/frontend/web/withOptions.js#L56-L72
* @used-by iiaKeys()
* @used-by option()
*/
private static $II_OPTION = 'option';
}