1 | <?php |
||||||
2 | /** |
||||||
3 | * Plugin Name: Pronamic Pay |
||||||
4 | * Plugin URI: https://www.pronamic.eu/plugins/pronamic-ideal/ |
||||||
5 | * Description: The Pronamic Pay plugin adds payment methods like iDEAL, Bancontact, credit card and more to your WordPress site for a variety of payment providers. |
||||||
6 | * |
||||||
7 | * Version: 5.6.2 |
||||||
8 | * Requires at least: 4.7 |
||||||
9 | * |
||||||
10 | * Author: Pronamic |
||||||
11 | * Author URI: https://www.pronamic.eu/ |
||||||
12 | * |
||||||
13 | * Text Domain: pronamic_ideal |
||||||
14 | * Domain Path: /languages/ |
||||||
15 | * |
||||||
16 | * License: GPL-3.0-or-later |
||||||
17 | * |
||||||
18 | * GitHub URI: https://github.com/pronamic/wp-pronamic-ideal |
||||||
19 | * |
||||||
20 | * @author Pronamic <[email protected]> |
||||||
21 | * @copyright 2005-2019 Pronamic |
||||||
22 | * @license GPL-3.0-or-later |
||||||
23 | * @package Pronamic\WordPress\Pay |
||||||
24 | */ |
||||||
25 | |||||||
26 | /** |
||||||
27 | * Autoload. |
||||||
28 | */ |
||||||
29 | if ( ! defined( 'PRONAMIC_PAY_DEBUG' ) ) { |
||||||
30 | define( 'PRONAMIC_PAY_DEBUG', false ); |
||||||
31 | } |
||||||
32 | |||||||
33 | if ( PRONAMIC_PAY_DEBUG ) { |
||||||
34 | foreach ( glob( __DIR__ . '/repositories/wp-pay/*/vendor/composer/autoload_files.php' ) as $file ) { |
||||||
35 | $files = require $file; |
||||||
36 | |||||||
37 | foreach ( $files as $identifier => $path ) { |
||||||
38 | if ( ! empty( $GLOBALS['__composer_autoload_files'][ $identifier ] ) ) { |
||||||
39 | continue; |
||||||
40 | } |
||||||
41 | |||||||
42 | require $path; |
||||||
43 | |||||||
44 | $GLOBALS['__composer_autoload_files'][ $identifier ] = true; |
||||||
45 | } |
||||||
46 | } |
||||||
47 | } |
||||||
48 | |||||||
49 | $loader = require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; |
||||||
50 | |||||||
51 | if ( PRONAMIC_PAY_DEBUG ) { |
||||||
52 | foreach ( glob( __DIR__ . '/repositories/*/*/composer.json' ) as $file ) { |
||||||
53 | $content = file_get_contents( $file ); |
||||||
54 | |||||||
55 | $object = json_decode( $content ); |
||||||
56 | |||||||
57 | if ( ! isset( $object->autoload ) ) { |
||||||
58 | continue; |
||||||
59 | } |
||||||
60 | |||||||
61 | foreach ( $object->autoload as $type => $map ) { |
||||||
62 | if ( 'psr-4' !== $type ) { |
||||||
63 | continue; |
||||||
64 | } |
||||||
65 | |||||||
66 | foreach ( $map as $prefix => $path ) { |
||||||
67 | $loader->addPsr4( $prefix, dirname( $file ) . '/' . $path, true ); |
||||||
68 | } |
||||||
69 | } |
||||||
70 | } |
||||||
71 | } |
||||||
72 | |||||||
73 | /** |
||||||
74 | * Bootstrap. |
||||||
75 | */ |
||||||
76 | \Pronamic\WordPress\Pay\Plugin::instance( |
||||||
77 | array( |
||||||
78 | 'file' => __FILE__, |
||||||
79 | 'version' => '5.6.2', |
||||||
80 | 'gateways' => array( |
||||||
81 | // ABN AMRO - iDEAL Zelfbouw (v3). |
||||||
82 | new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||||||
83 | array( |
||||||
0 ignored issues
–
show
|
|||||||
84 | 'id' => 'abnamro-ideal-zelfbouw-v3', |
||||||
85 | 'name' => 'ABN AMRO - iDEAL Zelfbouw (v3)', |
||||||
86 | 'provider' => 'abnamro', |
||||||
87 | 'url' => 'https://abnamro.ideal-payment.de/', |
||||||
88 | 'product_url' => 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/', |
||||||
89 | 'dashboard_url' => array( |
||||||
90 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
||||||
91 | 'live' => 'https://abnamro.ideal-payment.de/', |
||||||
92 | ), |
||||||
93 | ) |
||||||
94 | ), |
||||||
95 | // Buckaroo. |
||||||
96 | new \Pronamic\WordPress\Pay\Gateways\Buckaroo\Integration(), |
||||||
97 | // Deutsche Bank - iDEAL via Ogone. |
||||||
98 | new \Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandardEasy\Integration( |
||||||
99 | array( |
||||||
100 | 'id' => 'deutschebank-ideal-via-ogone', |
||||||
101 | 'name' => 'Deutsche Bank - iDEAL via Ogone', |
||||||
102 | 'provider' => 'deutschebank', |
||||||
103 | 'product_url' => 'https://www.deutschebank.nl/nl/content/producten_en_services_commercial_banking_cash_management_betalen_ideal.html', |
||||||
104 | ) |
||||||
105 | ), |
||||||
106 | // Deutsche Bank - iDEAL Expert (v3). |
||||||
107 | new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||||||
108 | array( |
||||||
109 | 'id' => 'deutschebank-ideal-expert-v3', |
||||||
110 | 'name' => 'Deutsche Bank - iDEAL Expert (v3)', |
||||||
111 | 'provider' => 'deutschebank', |
||||||
112 | 'product_url' => 'https://www.deutschebank.nl/nl/content/producten_en_services_commercial_banking_cash_management_betalen_ideal.html', |
||||||
113 | 'dashboard_url' => array( |
||||||
114 | 'test' => 'https://myideal.test.db.com/', |
||||||
115 | 'live' => 'https://myideal.db.com/', |
||||||
116 | ), |
||||||
117 | ) |
||||||
118 | ), |
||||||
119 | // EMS - eCommerce. |
||||||
120 | new \Pronamic\WordPress\Pay\Gateways\EMS\ECommerce\Integration(), |
||||||
121 | // Fibonacci ORANGE. |
||||||
122 | new \Pronamic\WordPress\Pay\Gateways\Icepay\Integration( |
||||||
123 | array( |
||||||
124 | 'id' => 'fibonacciorange', |
||||||
125 | 'name' => 'Fibonacci ORANGE', |
||||||
126 | 'provider' => 'fibonacciorange', |
||||||
127 | 'product_url' => 'http://www.fibonacciorange.nl/', |
||||||
128 | ) |
||||||
129 | ), |
||||||
130 | // ICEPAY. |
||||||
131 | new \Pronamic\WordPress\Pay\Gateways\Icepay\Integration(), |
||||||
132 | // iDEAL Simulator - iDEAL Professional / Advanced / Zelfbouw (v3). |
||||||
133 | new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||||||
134 | array( |
||||||
135 | 'id' => 'ideal-simulator-ideal-advanced-v3', |
||||||
136 | 'name' => 'iDEAL Simulator - iDEAL Professional / Advanced', |
||||||
137 | 'provider' => 'ideal-simulator', |
||||||
138 | 'product_url' => 'https://www.ideal-checkout.nl/support/ideal-simulator', |
||||||
139 | ) |
||||||
140 | ), |
||||||
141 | // ING - iDEAL Basic. |
||||||
142 | new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||||||
143 | array( |
||||||
0 ignored issues
–
show
The call to
Pronamic\WordPress\Pay\G...egration::__construct() has too many arguments starting with array('id' => 'ing-ideal...deal.secure-ing.com/')) .
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above. ![]() |
|||||||
144 | 'id' => 'ing-ideal-basic', |
||||||
145 | 'name' => 'ING - iDEAL Basic', |
||||||
146 | 'provider' => 'ing', |
||||||
147 | 'product_url' => 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/', |
||||||
148 | 'dashboard_url' => array( |
||||||
149 | 'test' => 'https://idealtest.secure-ing.com/', |
||||||
150 | 'live' => 'https://ideal.secure-ing.com/', |
||||||
151 | ), |
||||||
152 | ) |
||||||
153 | ), |
||||||
154 | // ING - iDEAL Advanced (v3). |
||||||
155 | new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||||||
156 | array( |
||||||
157 | 'id' => 'ing-ideal-advanced-v3', |
||||||
158 | 'name' => 'ING - iDEAL Advanced (v3)', |
||||||
159 | 'provider' => 'ing', |
||||||
160 | 'product_url' => 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/', |
||||||
161 | 'dashboard_url' => array( |
||||||
162 | 'test' => 'https://idealtest.secure-ing.com/', |
||||||
163 | 'live' => 'https://ideal.secure-ing.com/', |
||||||
164 | ), |
||||||
165 | ) |
||||||
166 | ), |
||||||
167 | // ING - Kassa Compleet. |
||||||
168 | new \Pronamic\WordPress\Pay\Gateways\ING\KassaCompleet\Integration(), |
||||||
169 | // Mollie. |
||||||
170 | new \Pronamic\WordPress\Pay\Gateways\Mollie\Integration(), |
||||||
171 | // Mollie - iDEAL. |
||||||
172 | new \Pronamic\WordPress\Pay\Gateways\MollieIDeal\Integration(), |
||||||
173 | // Mollie - iDEAL Basic. |
||||||
174 | new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||||||
175 | array( |
||||||
176 | 'id' => 'mollie-ideal-basic', |
||||||
177 | 'name' => 'Mollie - iDEAL Basic', |
||||||
178 | 'provider' => 'mollie', |
||||||
179 | 'dashboard_url' => 'http://www.mollie.nl/beheer/', |
||||||
180 | 'deprecated' => true, |
||||||
181 | ) |
||||||
182 | ), |
||||||
183 | // MultiSafePay - Connect. |
||||||
184 | new \Pronamic\WordPress\Pay\Gateways\MultiSafepay\Integration(), |
||||||
185 | // Nocks. |
||||||
186 | new \Pronamic\WordPress\Pay\Gateways\Nocks\Integration(), |
||||||
187 | // Ingenico - DirectLink. |
||||||
188 | new \Pronamic\WordPress\Pay\Gateways\Ingenico\DirectLink\Integration(), |
||||||
189 | // Ingenico - OrderStandard. |
||||||
190 | new \Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard\Integration(), |
||||||
191 | // Rabobank - OmniKassa. |
||||||
192 | new \Pronamic\WordPress\Pay\Gateways\OmniKassa\Integration(), |
||||||
193 | // Rabobank - OmniKassa 2.0. |
||||||
194 | new \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Integration(), |
||||||
195 | // Pay.nl. |
||||||
196 | new \Pronamic\WordPress\Pay\Gateways\PayNL\Integration(), |
||||||
197 | // Rabobank - iDEAL Professional (v3). |
||||||
198 | new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||||||
199 | array( |
||||||
200 | 'id' => 'rabobank-ideal-professional-v3', |
||||||
201 | 'name' => 'Rabobank - iDEAL Professional (v3)', |
||||||
202 | 'provider' => 'rabobank', |
||||||
203 | 'product_url' => 'https://www.rabobank.nl/bedrijven/betalen/geld-ontvangen/ideal-professional/', |
||||||
204 | 'dashboard_url' => array( |
||||||
205 | 'test' => 'https://idealtest.rabobank.nl/', |
||||||
206 | 'live' => 'https://ideal.rabobank.nl/', |
||||||
207 | ), |
||||||
208 | ) |
||||||
209 | ), |
||||||
210 | // Sisow. |
||||||
211 | new \Pronamic\WordPress\Pay\Gateways\Sisow\Integration(), |
||||||
212 | // Sisow - iDEAL Basic. |
||||||
213 | new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||||||
214 | array( |
||||||
215 | 'id' => 'sisow-ideal-basic', |
||||||
216 | 'name' => 'Sisow - iDEAL Basic', |
||||||
217 | 'provider' => 'sisow', |
||||||
218 | 'url' => 'https://www.sisow.nl/', |
||||||
219 | 'dashboard_url' => 'https://www.sisow.nl/Sisow/iDeal/Login.aspx', |
||||||
220 | 'deprecated' => true, |
||||||
221 | ) |
||||||
222 | ), |
||||||
223 | // TargetPay. |
||||||
224 | new \Pronamic\WordPress\Pay\Gateways\TargetPay\Integration(), |
||||||
225 | ), |
||||||
226 | 'extensions' => array( |
||||||
227 | '\Pronamic\WordPress\Pay\Extensions\Charitable\Extension::bootstrap', |
||||||
228 | '\Pronamic\WordPress\Pay\Extensions\Give\Extension::bootstrap', |
||||||
229 | '\Pronamic\WordPress\Pay\Extensions\WooCommerce\Extension::bootstrap', |
||||||
230 | '\Pronamic\WordPress\Pay\Extensions\GravityForms\Extension::bootstrap', |
||||||
231 | '\Pronamic\WordPress\Pay\Extensions\Shopp\Extension::bootstrap', |
||||||
232 | '\Pronamic\WordPress\Pay\Extensions\Jigoshop\Extension::bootstrap', |
||||||
233 | '\Pronamic\WordPress\Pay\Extensions\WPeCommerce\Extension::bootstrap', |
||||||
234 | '\Pronamic\WordPress\Pay\Extensions\ClassiPress\Extension::bootstrap', |
||||||
235 | '\Pronamic\WordPress\Pay\Extensions\EventEspressoLegacy\Extension::bootstrap', |
||||||
236 | '\Pronamic\WordPress\Pay\Extensions\EventEspresso\Extension::bootstrap', |
||||||
237 | '\Pronamic\WordPress\Pay\Extensions\AppThemes\Extension::bootstrap', |
||||||
238 | '\Pronamic\WordPress\Pay\Extensions\S2Member\Extension::bootstrap', |
||||||
239 | '\Pronamic\WordPress\Pay\Extensions\Membership\Extension::bootstrap', |
||||||
240 | '\Pronamic\WordPress\Pay\Extensions\EasyDigitalDownloads\Extension::bootstrap', |
||||||
241 | '\Pronamic\WordPress\Pay\Extensions\IThemesExchange\Extension::bootstrap', |
||||||
242 | '\Pronamic\WordPress\Pay\Extensions\MemberPress\Extension::bootstrap', |
||||||
243 | '\Pronamic\WordPress\Pay\Extensions\FormidableForms\Extension::bootstrap', |
||||||
244 | '\Pronamic\WordPress\Pay\Extensions\RestrictContentPro\Extension::bootstrap', |
||||||
245 | '\Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::bootstrap', |
||||||
246 | ), |
||||||
247 | ) |
||||||
248 | ); |
||||||
249 | |||||||
250 | /** |
||||||
251 | * Backward compatibility. |
||||||
252 | */ |
||||||
253 | global $pronamic_ideal; |
||||||
254 | |||||||
255 | $pronamic_ideal = pronamic_pay_plugin(); |
||||||
256 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.