-
Notifications
You must be signed in to change notification settings - Fork 1
/
Method.php
60 lines (55 loc) · 1.82 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
<?php
namespace Dfe\Robokassa;
# 2017-04-10
final class Method extends \Df\PaypalClone\Method {
/**
* 2017-04-16
* «The format of presentation – dot-delimited digits. For example 123.45.»
* http://docs.robokassa.ru/en#2504
* «Формат представления — число, разделитель — точка, например: 123.45.»
* http://docs.robokassa.ru#1188
* @override
* @see \Df\Payment\Method::amountFormat()
* @used-by \Df\Payment\Operation::amountFormat()
*/
function amountFormat(float $a):string {return dff_2($a);}
/**
* 2017-04-16
* @used-by \Dfe\Robokassa\Charge::pCharge()
*/
function option():string {return df_result_sne($this->iia(self::$II_OPTION));}
/**
* 2017-04-16
* «The format of presentation – dot-delimited digits. For example 123.45.»
* http://docs.robokassa.ru/en#2504
* «Формат представления — число, разделитель — точка, например: 123.45.»
* http://docs.robokassa.ru#1188
* @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-16
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys():array {return [self::$II_OPTION];}
/**
* 2017-04-16 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';
}