@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace PayumTW\Mypay\Action\Api; |
4 | 4 | |
5 | 5 | use PayumTW\Mypay\Api; |
6 | -use Payum\Core\ApiAwareInterface; |
|
7 | 6 | use Payum\Core\Action\ActionInterface; |
7 | +use Payum\Core\ApiAwareInterface; |
|
8 | 8 | use Payum\Core\Exception\UnsupportedApiException; |
9 | 9 | |
10 | 10 | abstract class BaseApiAwareAction implements ActionInterface, ApiAwareInterface |
@@ -255,6 +255,7 @@ |
||
255 | 255 | * call. |
256 | 256 | * |
257 | 257 | * @param array $params |
258 | + * @param string $cmd |
|
258 | 259 | * |
259 | 260 | * @return array |
260 | 261 | */ |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Mypay; |
4 | 4 | |
5 | -use LogicException; |
|
6 | 5 | use Http\Message\MessageFactory; |
7 | -use Payum\Core\HttpClientInterface; |
|
6 | +use LogicException; |
|
8 | 7 | use Payum\Core\Exception\Http\HttpException; |
8 | +use Payum\Core\HttpClientInterface; |
|
9 | 9 | |
10 | 10 | class Api |
11 | 11 | { |
@@ -131,8 +131,8 @@ |
||
131 | 131 | * |
132 | 132 | * @method pkcs5Unpad |
133 | 133 | * |
134 | - * @param string $text |
|
135 | 134 | * |
135 | + * @param string $plaintext |
|
136 | 136 | * @return string |
137 | 137 | */ |
138 | 138 | protected function pkcs5Unpad($plaintext) |
@@ -22,6 +22,9 @@ |
||
22 | 22 | |
23 | 23 | class MypayGatewayFactory extends GatewayFactory |
24 | 24 | { |
25 | + /** |
|
26 | + * @param ArrayObject $config |
|
27 | + */ |
|
25 | 28 | public function getDefaultHttpClient($config) |
26 | 29 | { |
27 | 30 | $classes = [ |
@@ -2,23 +2,23 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Mypay; |
4 | 4 | |
5 | -use LogicException; |
|
6 | -use Payum\Core\GatewayFactory; |
|
7 | -use PayumTW\Mypay\Action\SyncAction; |
|
8 | -use Payum\Core\Bridge\Spl\ArrayObject; |
|
9 | -use PayumTW\Mypay\Action\NotifyAction; |
|
10 | -use PayumTW\Mypay\Action\StatusAction; |
|
11 | -use PayumTW\Mypay\Action\CaptureAction; |
|
12 | -use PayumTW\Mypay\Action\NotifyNullAction; |
|
13 | -use Payum\Core\Bridge\Httplug\HttplugClient; |
|
14 | -use Http\Client\Curl\Client as HttpCurlClient; |
|
15 | -use PayumTW\Mypay\Action\ConvertPaymentAction; |
|
16 | 5 | use Http\Adapter\Buzz\Client as HttpBuzzClient; |
17 | -use Http\Client\Socket\Client as HttpSocketClient; |
|
18 | 6 | use Http\Adapter\Guzzle5\Client as HttpGuzzle5Client; |
19 | 7 | use Http\Adapter\Guzzle6\Client as HttpGuzzle6Client; |
8 | +use Http\Client\Curl\Client as HttpCurlClient; |
|
9 | +use Http\Client\Socket\Client as HttpSocketClient; |
|
10 | +use LogicException; |
|
20 | 11 | use PayumTW\Mypay\Action\Api\CreateTransactionAction; |
21 | 12 | use PayumTW\Mypay\Action\Api\GetTransactionDataAction; |
13 | +use PayumTW\Mypay\Action\CaptureAction; |
|
14 | +use PayumTW\Mypay\Action\ConvertPaymentAction; |
|
15 | +use PayumTW\Mypay\Action\NotifyAction; |
|
16 | +use PayumTW\Mypay\Action\NotifyNullAction; |
|
17 | +use PayumTW\Mypay\Action\StatusAction; |
|
18 | +use PayumTW\Mypay\Action\SyncAction; |
|
19 | +use Payum\Core\Bridge\Httplug\HttplugClient; |
|
20 | +use Payum\Core\Bridge\Spl\ArrayObject; |
|
21 | +use Payum\Core\GatewayFactory; |
|
22 | 22 | |
23 | 23 | class MypayGatewayFactory extends GatewayFactory |
24 | 24 | { |