@@ -30,15 +30,15 @@ |
||
30 | 30 | return false; |
31 | 31 | } |
32 | 32 | |
33 | - /** |
|
34 | - * Is the response successful? |
|
35 | - * |
|
36 | - * @return boolean |
|
37 | - */ |
|
38 | - public function isPending( ) |
|
39 | - { |
|
40 | - return true; |
|
41 | - } |
|
33 | + /** |
|
34 | + * Is the response successful? |
|
35 | + * |
|
36 | + * @return boolean |
|
37 | + */ |
|
38 | + public function isPending( ) |
|
39 | + { |
|
40 | + return true; |
|
41 | + } |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * {@inheritdoc} |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | */ |
17 | 17 | abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest |
18 | 18 | { |
19 | - /** |
|
19 | + /** |
|
20 | 20 | * {@inheritdoc} |
21 | 21 | */ |
22 | 22 | protected $zeroAmountAllowed = false; |
@@ -199,13 +199,13 @@ discard block |
||
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
202 | - * Calculates sign for the $data. |
|
203 | - * |
|
204 | - * @param array $data |
|
205 | - * @param string $signKey |
|
206 | - * @return string |
|
207 | - */ |
|
208 | - public function calculateSign( $data, $signKey ) |
|
202 | + * Calculates sign for the $data. |
|
203 | + * |
|
204 | + * @param array $data |
|
205 | + * @param string $signKey |
|
206 | + * @return string |
|
207 | + */ |
|
208 | + public function calculateSign( $data, $signKey ) |
|
209 | 209 | { |
210 | 210 | unset( $data[ 'ik_sign' ] ); |
211 | 211 | ksort( $data, SORT_STRING ); |
@@ -19,51 +19,51 @@ |
||
19 | 19 | */ |
20 | 20 | class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface |
21 | 21 | { |
22 | - /** |
|
23 | - * @var string URL to redirect client to payment system. Used when [[isRedirect]] |
|
24 | - */ |
|
25 | - protected $_redirect = 'https://sci.interkassa.com/'; |
|
22 | + /** |
|
23 | + * @var string URL to redirect client to payment system. Used when [[isRedirect]] |
|
24 | + */ |
|
25 | + protected $_redirect = 'https://sci.interkassa.com/'; |
|
26 | 26 | |
27 | - /** |
|
28 | - * Always returns `false`, because InterKassa always needs redirect |
|
29 | - * {@inheritdoc} |
|
30 | - */ |
|
31 | - public function isSuccessful( ) |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
27 | + /** |
|
28 | + * Always returns `false`, because InterKassa always needs redirect |
|
29 | + * {@inheritdoc} |
|
30 | + */ |
|
31 | + public function isSuccessful( ) |
|
32 | + { |
|
33 | + return false; |
|
34 | + } |
|
35 | 35 | |
36 | - /** |
|
37 | - * Always returns `true`, because InterKassa always needs redirect |
|
38 | - * {@inheritdoc} |
|
39 | - */ |
|
40 | - public function isRedirect( ) |
|
41 | - { |
|
42 | - return true; |
|
43 | - } |
|
36 | + /** |
|
37 | + * Always returns `true`, because InterKassa always needs redirect |
|
38 | + * {@inheritdoc} |
|
39 | + */ |
|
40 | + public function isRedirect( ) |
|
41 | + { |
|
42 | + return true; |
|
43 | + } |
|
44 | 44 | |
45 | - /** |
|
46 | - * {@inheritdoc} |
|
47 | - */ |
|
48 | - public function getRedirectUrl( ) |
|
49 | - { |
|
50 | - return $this->_redirect; |
|
51 | - } |
|
45 | + /** |
|
46 | + * {@inheritdoc} |
|
47 | + */ |
|
48 | + public function getRedirectUrl( ) |
|
49 | + { |
|
50 | + return $this->_redirect; |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * Always `POST` for InterKassa |
|
55 | - * {@inheritdoc} |
|
56 | - */ |
|
57 | - public function getRedirectMethod( ) |
|
58 | - { |
|
59 | - return 'POST'; |
|
60 | - } |
|
53 | + /** |
|
54 | + * Always `POST` for InterKassa |
|
55 | + * {@inheritdoc} |
|
56 | + */ |
|
57 | + public function getRedirectMethod( ) |
|
58 | + { |
|
59 | + return 'POST'; |
|
60 | + } |
|
61 | 61 | |
62 | - /** |
|
63 | - * {@inheritdoc} |
|
64 | - */ |
|
65 | - public function getRedirectData( ) |
|
66 | - { |
|
67 | - return $this->data; |
|
68 | - } |
|
62 | + /** |
|
63 | + * {@inheritdoc} |
|
64 | + */ |
|
65 | + public function getRedirectData( ) |
|
66 | + { |
|
67 | + return $this->data; |
|
68 | + } |
|
69 | 69 | } |