|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* MIT License |
|
5
|
|
|
* For full license information, please view the LICENSE file that was distributed with this source code. |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
namespace SprykerEco\Zed\CrefoPayApi; |
|
9
|
|
|
|
|
10
|
|
|
use Spryker\Zed\Kernel\AbstractBundleConfig; |
|
|
|
|
|
|
11
|
|
|
use SprykerEco\Shared\CrefoPayApi\CrefoPayApiConstants; |
|
12
|
|
|
|
|
13
|
|
|
class CrefoPayApiConfig extends AbstractBundleConfig |
|
14
|
|
|
{ |
|
15
|
|
|
protected const API_FIELD_MAC = 'mac'; |
|
16
|
|
|
protected const API_RESPONSE_FIELD_RESULT_CODE = 'resultCode'; |
|
17
|
|
|
protected const API_ERROR_TYPE_EXTERNAL = 'EXTERNAL'; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* @return string |
|
21
|
|
|
*/ |
|
22
|
|
|
public function getCreateTransactionActionUrl(): string |
|
23
|
|
|
{ |
|
24
|
|
|
return $this->get(CrefoPayApiConstants::CREATE_TRANSACTION_ACTION_URL); |
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* @return string |
|
29
|
|
|
*/ |
|
30
|
|
|
public function getReserveActionUrl(): string |
|
31
|
|
|
{ |
|
32
|
|
|
return $this->get(CrefoPayApiConstants::RESERVE_ACTION_URL); |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
/** |
|
36
|
|
|
* @return string |
|
37
|
|
|
*/ |
|
38
|
|
|
public function getCaptureActionUrl(): string |
|
39
|
|
|
{ |
|
40
|
|
|
return $this->get(CrefoPayApiConstants::CAPTURE_ACTION_URL); |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @return string |
|
45
|
|
|
*/ |
|
46
|
|
|
public function getCancelActionUrl(): string |
|
47
|
|
|
{ |
|
48
|
|
|
return $this->get(CrefoPayApiConstants::CANCEL_ACTION_URL); |
|
49
|
|
|
} |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* @return string |
|
53
|
|
|
*/ |
|
54
|
|
|
public function getRefundActionUrl(): string |
|
55
|
|
|
{ |
|
56
|
|
|
return $this->get(CrefoPayApiConstants::REFUND_ACTION_URL); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* @return string |
|
61
|
|
|
*/ |
|
62
|
|
|
public function getFinishActionUrl(): string |
|
63
|
|
|
{ |
|
64
|
|
|
return $this->get(CrefoPayApiConstants::FINISH_ACTION_URL); |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
/** |
|
68
|
|
|
* @return string |
|
69
|
|
|
*/ |
|
70
|
|
|
public function getApiFieldMac(): string |
|
71
|
|
|
{ |
|
72
|
|
|
return static::API_FIELD_MAC; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @return string |
|
77
|
|
|
*/ |
|
78
|
|
|
public function getApiResponseFieldResultCode(): string |
|
79
|
|
|
{ |
|
80
|
|
|
return static::API_RESPONSE_FIELD_RESULT_CODE; |
|
81
|
|
|
} |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* @return string |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getApiErrorTypeExternal(): string |
|
87
|
|
|
{ |
|
88
|
|
|
return static::API_ERROR_TYPE_EXTERNAL; |
|
89
|
|
|
} |
|
90
|
|
|
} |
|
91
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths