@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace PayumTW\Ecpay\Action\Api; |
4 | 4 | |
5 | 5 | use PayumTW\Ecpay\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 |
@@ -2,17 +2,17 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Ecpay\Action; |
4 | 4 | |
5 | -use Payum\Core\Request\Capture; |
|
6 | -use Payum\Core\GatewayAwareTrait; |
|
7 | -use Payum\Core\GatewayAwareInterface; |
|
8 | -use Payum\Core\Action\ActionInterface; |
|
9 | -use Payum\Core\Bridge\Spl\ArrayObject; |
|
10 | -use Payum\Core\Request\GetHttpRequest; |
|
11 | 5 | use PayumTW\Ecpay\Action\Api\BaseApiAwareAction; |
12 | 6 | use PayumTW\Ecpay\Request\Api\CreateTransaction; |
7 | +use Payum\Core\Action\ActionInterface; |
|
8 | +use Payum\Core\Bridge\Spl\ArrayObject; |
|
13 | 9 | use Payum\Core\Exception\RequestNotSupportedException; |
14 | -use Payum\Core\Security\GenericTokenFactoryAwareTrait; |
|
10 | +use Payum\Core\GatewayAwareInterface; |
|
11 | +use Payum\Core\GatewayAwareTrait; |
|
12 | +use Payum\Core\Request\Capture; |
|
13 | +use Payum\Core\Request\GetHttpRequest; |
|
15 | 14 | use Payum\Core\Security\GenericTokenFactoryAwareInterface; |
15 | +use Payum\Core\Security\GenericTokenFactoryAwareTrait; |
|
16 | 16 | |
17 | 17 | class CaptureLogisticsAction extends BaseApiAwareAction implements ActionInterface, GatewayAwareInterface, GenericTokenFactoryAwareInterface |
18 | 18 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | -use Exception; |
|
6 | 5 | use Detection\MobileDetect; |
6 | +use Exception; |
|
7 | 7 | |
8 | 8 | abstract class Api |
9 | 9 | { |
@@ -1424,7 +1424,6 @@ discard block |
||
1424 | 1424 | * |
1425 | 1425 | * @param string $Name |
1426 | 1426 | * @param string $Value |
1427 | - * @param int $MaxLength |
|
1428 | 1427 | * @param bool $AllowEmpty |
1429 | 1428 | * |
1430 | 1429 | * @version 1.0.1012 |
@@ -1887,7 +1886,7 @@ discard block |
||
1887 | 1886 | * @param string $Name |
1888 | 1887 | * @param bool $AllowEmpty |
1889 | 1888 | * |
1890 | - * @return bool |
|
1889 | + * @return boolean|null |
|
1891 | 1890 | * |
1892 | 1891 | * @version 1.0.1012 |
1893 | 1892 | */ |
@@ -1907,7 +1906,7 @@ discard block |
||
1907 | 1906 | * |
1908 | 1907 | * @param string $Name |
1909 | 1908 | * @param int $MaxLength |
1910 | - * @param bool $AllowEmpty |
|
1909 | + * @param integer $Length |
|
1911 | 1910 | * |
1912 | 1911 | * @version 1.0.1012 |
1913 | 1912 | */ |
@@ -505,6 +505,9 @@ |
||
505 | 505 | */ |
506 | 506 | abstract class ECPay_Aio |
507 | 507 | { |
508 | + /** |
|
509 | + * @param string $ServiceURL |
|
510 | + */ |
|
508 | 511 | protected static function ServerPost($parameters, $ServiceURL) |
509 | 512 | { |
510 | 513 | $ch = curl_init(); |
@@ -88,7 +88,6 @@ |
||
88 | 88 | * createTransaction. |
89 | 89 | * |
90 | 90 | * @param array $params |
91 | - * @param mixed $request |
|
92 | 91 | * |
93 | 92 | * @return array |
94 | 93 | */ |
@@ -3,10 +3,10 @@ |
||
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | 5 | use Http\Message\MessageFactory; |
6 | -use Payum\Core\HttpClientInterface; |
|
7 | 6 | use PayumTW\Ecpay\Bridge\Ecpay\AllInOne; |
8 | 7 | use PayumTW\Ecpay\Bridge\Ecpay\DeviceType; |
9 | 8 | use PayumTW\Ecpay\Bridge\Ecpay\InvoiceState; |
9 | +use Payum\Core\HttpClientInterface; |
|
10 | 10 | |
11 | 11 | class EcpayApi extends Api |
12 | 12 | { |
@@ -81,7 +81,6 @@ discard block |
||
81 | 81 | * createTransaction. |
82 | 82 | * |
83 | 83 | * @param array $params |
84 | - * @param mixed $request |
|
85 | 84 | * |
86 | 85 | * @return array |
87 | 86 | */ |
@@ -185,7 +184,6 @@ discard block |
||
185 | 184 | * createTransaction. |
186 | 185 | * |
187 | 186 | * @param array $params |
188 | - * @param mixed $request |
|
189 | 187 | * |
190 | 188 | * @return array |
191 | 189 | */ |
@@ -3,16 +3,16 @@ |
||
3 | 3 | namespace PayumTW\Ecpay; |
4 | 4 | |
5 | 5 | use Http\Message\MessageFactory; |
6 | -use Payum\Core\HttpClientInterface; |
|
7 | 6 | use PayumTW\Ecpay\Bridge\Ecpay\Device; |
8 | 7 | use PayumTW\Ecpay\Bridge\Ecpay\Distance; |
9 | -use PayumTW\Ecpay\Bridge\Ecpay\Temperature; |
|
10 | -use PayumTW\Ecpay\Bridge\Ecpay\IsCollection; |
|
11 | -use PayumTW\Ecpay\Bridge\Ecpay\LogisticsType; |
|
12 | -use PayumTW\Ecpay\Bridge\Ecpay\Specification; |
|
13 | 8 | use PayumTW\Ecpay\Bridge\Ecpay\EcpayLogistics; |
9 | +use PayumTW\Ecpay\Bridge\Ecpay\IsCollection; |
|
14 | 10 | use PayumTW\Ecpay\Bridge\Ecpay\LogisticsSubType; |
11 | +use PayumTW\Ecpay\Bridge\Ecpay\LogisticsType; |
|
15 | 12 | use PayumTW\Ecpay\Bridge\Ecpay\ScheduledPickupTime; |
13 | +use PayumTW\Ecpay\Bridge\Ecpay\Specification; |
|
14 | +use PayumTW\Ecpay\Bridge\Ecpay\Temperature; |
|
15 | +use Payum\Core\HttpClientInterface; |
|
16 | 16 | |
17 | 17 | class EcpayLogisticsApi extends Api |
18 | 18 | { |