-
Notifications
You must be signed in to change notification settings - Fork 1
/
Method.php
54 lines (50 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
<?php
namespace Dfe\YandexKassa;
# 2017-09-17
final class Method extends \Df\PaypalClone\Method {
/**
* 2017-09-17
* The «sum» parameter has the «CurrencyAmount»:
* https://tech.yandex.com/money/doc/payment-solution/payment-form/payment-form-http-docpage
* https://tech.yandex.ru/money/doc/payment-solution/payment-form/payment-form-http-docpage
* The «CurrencyAmount» type description:
* In English: «Amount. Fixed-point decimal number with 2-digit precision.»
* https://tech.yandex.com/money/doc/payment-solution/reference/datatypes-docpage
* In Russian: «Сумма. Число с фиксированной точкой, две цифры после точки.»
* https://tech.yandex.ru/money/doc/payment-solution/reference/datatypes-docpage
* @override
* @see \Df\Payment\Method::amountFormat()
* @used-by \Df\Payment\Operation::amountFormat()
*/
function amountFormat(float $a):string {return dff_2($a);}
/**
* 2017-09-24
* @used-by \Dfe\YandexKassa\Charge::pCharge()
* @return string|null
*/
function option() {return $this->iia(self::$II_OPTION);}
/**
* 2017-09-17
* [Yandex.Kassa] What are the minimum and maximum payment amount limitations for each payment option?
* https://mage2.pro/t/4522
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
/**
* 2017-09-24
* @override
* @see \Df\Payment\Method::iiaKeys()
* @used-by \Df\Payment\Method::assignData()
* @return string[]
*/
protected function iiaKeys():array {return [self::$II_OPTION];}
/**
* 2017-09-24 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';
}