-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMethod.php
More file actions
36 lines (34 loc) · 1.04 KB
/
Method.php
File metadata and controls
36 lines (34 loc) · 1.04 KB
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
<?php
namespace Dfe\Dragonpay;
# 2017-04-11
final class Method extends \Df\PaypalClone\Method {
/**
* 2017-08-14
* The amount format is «Numeric(12,2)».
* It is specified in the Chapter 5.2.1.1 «Request Parameters» (page 9) of the PDF documentation:
* https://mage2.pro/t/4259
* @override
* @see \Df\Payment\Method::amountFormat()
* @used-by \Df\Payment\Operation::amountFormat()
*/
function amountFormat(float $a):string {return dff_2($a);}
/**
* 2017-08-12
* The amount format is «Numeric(12,2)».
* It is specified in the Chapter 5.2.1.1 «Request Parameters» (page 9) of the PDF documentation:
* https://mage2.pro/t/4259
* @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-11
* @override
* @see \Df\Payment\Method::amountLimits()
* @used-by \Df\Payment\Method::isAvailable()
* @return null
*/
protected function amountLimits() {return null;}
}