Total Complexity | 2 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
11 | class LibrapayData |
||
12 | { |
||
13 | /** |
||
14 | * @return string |
||
15 | */ |
||
16 | public static function getMethodOptions() |
||
17 | { |
||
18 | $data = 'a:2:{s:15:"payment_gateway";s:8:"librapay";s:8:"librapay";a:7:{s:7:"sandbox";s:2:"no";s:8:"merchant";s:15:"'.getenv('LIBRAPAY_MERCHANT').'";s:12:"merchantName";s:36:"'.getenv('LIBRAPAY_MERCHANTNAME').'";s:13:"merchantEmail";s:17:"'.getenv('LIBRAPAY_MERCHANTEMAIL').'";s:11:"merchantUrl";s:16:"register.42km.ro";s:8:"terminal";s:8:"'.getenv('LIBRAPAY_TERMINAL').'";s:3:"key";s:32:"'.getenv('LIBRAPAY_KEY').'";}}'; |
||
19 | return $data; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @return HttpRequest |
||
24 | */ |
||
25 | public static function getServerCompletePurchaseRequest() |
||
58 | } |
||
59 | } |
||
60 |