-
Notifications
You must be signed in to change notification settings - Fork 4
/
Method.php
61 lines (55 loc) · 1.59 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
<?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()
*/
function amountFormat(float $a):string {return number_format($a, 2, '.', ',');}
/**
* 2017-04-14
* @used-by \Dfe\IPay88\Charge::pCharge()
*/
function option():string {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()
*/
protected function amountFactor():int {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():array {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 self::iiaKeys()
* @used-by self::option()
*/
private static $II_OPTION = 'option';
}