@@ 18-37 (lines=20) @@ | ||
15 | /** |
|
16 | * PayPal Omnipay Response class. |
|
17 | */ |
|
18 | class OmnipayResponse extends \hiqdev\php\merchant\OmnipayResponse |
|
19 | { |
|
20 | /** |
|
21 | * Get payment time. |
|
22 | * @return string |
|
23 | */ |
|
24 | public function getTime() |
|
25 | { |
|
26 | return Helper::isotime($this->getVar('LMI_SYS_TRANS_DATE') . ' Europe/Moscow'); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Get payer info. |
|
31 | * @return string |
|
32 | */ |
|
33 | public function getPayer() |
|
34 | { |
|
35 | return $this->getVar('LMI_PAYER_PURSE') . '/' . $this->getVar('LMI_PAYER_WM'); |
|
36 | } |
|
37 | } |
|
38 |
@@ 18-37 (lines=20) @@ | ||
15 | /** |
|
16 | * WebMoney Omnipay Response class. |
|
17 | */ |
|
18 | class OmnipayResponse extends \hiqdev\php\merchant\OmnipayResponse |
|
19 | { |
|
20 | /** |
|
21 | * Get payment time. |
|
22 | * @return string |
|
23 | */ |
|
24 | public function getTime() |
|
25 | { |
|
26 | return Helper::isotime($this->getVar('LMI_SYS_TRANS_DATE') . ' Europe/Moscow'); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Get payer info. |
|
31 | * @return string |
|
32 | */ |
|
33 | public function getPayer() |
|
34 | { |
|
35 | return $this->getVar('LMI_PAYER_PURSE') . '/' . $this->getVar('LMI_PAYER_WM'); |
|
36 | } |
|
37 | } |
|
38 |
@@ 18-37 (lines=20) @@ | ||
15 | /** |
|
16 | * WebMoney Omnipay Response class. |
|
17 | */ |
|
18 | class OmnipayResponse extends \hiqdev\php\merchant\OmnipayResponse |
|
19 | { |
|
20 | /** |
|
21 | * Get payment time. |
|
22 | * @return string |
|
23 | */ |
|
24 | public function getTime() |
|
25 | { |
|
26 | return Helper::isotime($this->getVar('datetime') . ' Europe/Moscow'); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * Get payer info. |
|
31 | * @return string |
|
32 | */ |
|
33 | public function getPayer() |
|
34 | { |
|
35 | return $this->getVar('sender') ?: $this->getVar('email'); |
|
36 | } |
|
37 | } |
|
38 |