pronamic /
wp-pronamic-ideal
| 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 => $filepath ) { |
||
| 38 | if ( ! empty( $GLOBALS['__composer_autoload_files'][ $identifier ] ) ) { |
||
| 39 | continue; |
||
| 40 | } |
||
| 41 | |||
| 42 | require $filepath; |
||
| 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 $autoload_type => $classmap ) { |
||
| 62 | if ( 'psr-4' !== $autoload_type ) { |
||
| 63 | continue; |
||
| 64 | } |
||
| 65 | |||
| 66 | foreach ( $classmap as $prefix => $filepath ) { |
||
| 67 | $loader->addPsr4( $prefix, dirname( $file ) . '/' . $filepath, 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 | 'extensions' => array( |
||
| 81 | '\Pronamic\WordPress\Pay\Extensions\Charitable\Extension::bootstrap', |
||
| 82 | '\Pronamic\WordPress\Pay\Extensions\Give\Extension::bootstrap', |
||
| 83 | '\Pronamic\WordPress\Pay\Extensions\WooCommerce\Extension::bootstrap', |
||
| 84 | '\Pronamic\WordPress\Pay\Extensions\GravityForms\Extension::bootstrap', |
||
| 85 | '\Pronamic\WordPress\Pay\Extensions\Shopp\Extension::bootstrap', |
||
| 86 | '\Pronamic\WordPress\Pay\Extensions\Jigoshop\Extension::bootstrap', |
||
| 87 | '\Pronamic\WordPress\Pay\Extensions\WPeCommerce\Extension::bootstrap', |
||
| 88 | '\Pronamic\WordPress\Pay\Extensions\ClassiPress\Extension::bootstrap', |
||
| 89 | '\Pronamic\WordPress\Pay\Extensions\EventEspressoLegacy\Extension::bootstrap', |
||
| 90 | '\Pronamic\WordPress\Pay\Extensions\EventEspresso\Extension::bootstrap', |
||
| 91 | '\Pronamic\WordPress\Pay\Extensions\AppThemes\Extension::bootstrap', |
||
| 92 | '\Pronamic\WordPress\Pay\Extensions\S2Member\Extension::bootstrap', |
||
| 93 | '\Pronamic\WordPress\Pay\Extensions\Membership\Extension::bootstrap', |
||
| 94 | '\Pronamic\WordPress\Pay\Extensions\EasyDigitalDownloads\Extension::bootstrap', |
||
| 95 | '\Pronamic\WordPress\Pay\Extensions\IThemesExchange\Extension::bootstrap', |
||
| 96 | '\Pronamic\WordPress\Pay\Extensions\MemberPress\Extension::bootstrap', |
||
| 97 | '\Pronamic\WordPress\Pay\Extensions\FormidableForms\Extension::bootstrap', |
||
| 98 | '\Pronamic\WordPress\Pay\Extensions\RestrictContentPro\Extension::bootstrap', |
||
| 99 | '\Pronamic\WordPress\Pay\Extensions\NinjaForms\Extension::bootstrap', |
||
| 100 | ), |
||
| 101 | ) |
||
| 102 | ); |
||
| 103 | |||
| 104 | add_filter( |
||
| 105 | 'pronamic_pay_gateways', |
||
| 106 | function( $gateways ) { |
||
| 107 | // ABN AMRO - iDEAL Zelfbouw (v3). |
||
| 108 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||
| 109 | array( |
||
| 110 | 'id' => 'abnamro-ideal-zelfbouw-v3', |
||
| 111 | 'name' => 'ABN AMRO - iDEAL Zelfbouw (v3)', |
||
| 112 | 'provider' => 'abnamro', |
||
| 113 | 'url' => 'https://abnamro.ideal-payment.de/', |
||
| 114 | 'product_url' => 'https://www.abnamro.nl/nl/zakelijk/betalen/online-betalen/betaaloplossing/', |
||
| 115 | 'dashboard_url' => array( |
||
| 116 | 'test' => 'https://abnamro-test.ideal-payment.de/', |
||
| 117 | 'live' => 'https://abnamro.ideal-payment.de/', |
||
| 118 | ), |
||
| 119 | 'aquirer_url' => 'https://abnamro.ideal-payment.de/ideal/iDEALv3', |
||
| 120 | 'aquirer_test_url' => 'https://abnamro-test.ideal-payment.de/ideal/iDEALv3', |
||
| 121 | 'certificates' => array(), |
||
| 122 | ) |
||
| 123 | ); |
||
| 124 | |||
| 125 | // Buckaroo. |
||
| 126 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Buckaroo\Integration(); |
||
| 127 | |||
| 128 | // Deutsche Bank - iDEAL Expert (v3). |
||
| 129 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||
| 130 | array( |
||
| 131 | 'id' => 'deutschebank-ideal-expert-v3', |
||
| 132 | 'name' => 'Deutsche Bank - iDEAL Expert (v3)', |
||
| 133 | 'provider' => 'deutschebank', |
||
| 134 | 'product_url' => 'https://www.deutschebank.nl/nl/content/producten_en_services_commercial_banking_cash_management_betalen_ideal.html', |
||
| 135 | 'dashboard_url' => array( |
||
| 136 | 'test' => 'https://myideal.test.db.com/', |
||
| 137 | 'live' => 'https://myideal.db.com/', |
||
| 138 | ), |
||
| 139 | 'aquirer_url' => 'https://myideal.db.com/ideal/iDealv3', |
||
| 140 | 'aquirer_test_url' => null, |
||
| 141 | 'certificates' => array(), |
||
| 142 | ) |
||
| 143 | ); |
||
| 144 | |||
| 145 | // EMS - eCommerce. |
||
| 146 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\EMS\ECommerce\Integration(); |
||
| 147 | |||
| 148 | // Fibonacci ORANGE. |
||
| 149 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Icepay\Integration( |
||
| 150 | array( |
||
| 151 | 'id' => 'fibonacciorange', |
||
| 152 | 'name' => 'Fibonacci ORANGE', |
||
| 153 | 'provider' => 'fibonacciorange', |
||
| 154 | 'product_url' => 'http://www.fibonacciorange.nl/', |
||
| 155 | ) |
||
| 156 | ); |
||
| 157 | |||
| 158 | // ICEPAY. |
||
| 159 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Icepay\Integration(); |
||
| 160 | |||
| 161 | // iDEAL Simulator - iDEAL Professional / Advanced / Zelfbouw (v3). |
||
| 162 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||
| 163 | array( |
||
| 164 | 'id' => 'ideal-simulator-ideal-advanced-v3', |
||
| 165 | 'name' => 'iDEAL Simulator - iDEAL Professional / Advanced', |
||
| 166 | 'provider' => 'ideal-simulator', |
||
| 167 | 'product_url' => 'https://www.ideal-checkout.nl/support/ideal-simulator', |
||
| 168 | 'aquirer_url' => 'https://www.ideal-checkout.nl/simulator/', |
||
| 169 | 'aquirer_test_url' => null, |
||
| 170 | 'certificates' => array(), |
||
| 171 | ) |
||
| 172 | ); |
||
| 173 | |||
| 174 | // ING - iDEAL Basic. |
||
| 175 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||
| 176 | array( |
||
| 177 | 'id' => 'ing-ideal-basic', |
||
| 178 | 'name' => 'ING - iDEAL Basic', |
||
| 179 | 'provider' => 'ing', |
||
| 180 | 'product_url' => 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/', |
||
| 181 | 'dashboard_url' => array( |
||
| 182 | 'test' => 'https://idealtest.secure-ing.com/', |
||
| 183 | 'live' => 'https://ideal.secure-ing.com/', |
||
| 184 | ), |
||
| 185 | 'aquirer_url' => 'https://ideal.secure-ing.com/ideal/mpiPayInitIng.do', |
||
| 186 | 'aquirer_test_url' => 'https://idealtest.secure-ing.com/ideal/mpiPayInitIng.do', |
||
| 187 | ) |
||
| 188 | ); |
||
| 189 | |||
| 190 | // ING - iDEAL Advanced (v3). |
||
| 191 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||
| 192 | array( |
||
| 193 | 'id' => 'ing-ideal-advanced-v3', |
||
| 194 | 'name' => 'ING - iDEAL Advanced (v3)', |
||
| 195 | 'provider' => 'ing', |
||
| 196 | 'product_url' => 'https://www.ing.nl/zakelijk/betalen/geld-ontvangen/ideal/', |
||
| 197 | 'dashboard_url' => array( |
||
| 198 | 'test' => 'https://idealtest.secure-ing.com/', |
||
| 199 | 'live' => 'https://ideal.secure-ing.com/', |
||
| 200 | ), |
||
| 201 | 'aquirer_url' => 'https://ideal.secure-ing.com/ideal/iDEALv3', |
||
| 202 | 'aquirer_test_url' => 'https://idealtest.secure-ing.com/ideal/iDEALv3', |
||
| 203 | 'certificates' => array(), |
||
| 204 | ) |
||
| 205 | ); |
||
| 206 | |||
| 207 | // ING - Kassa Compleet. |
||
| 208 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\ING\KassaCompleet\Integration(); |
||
| 209 | |||
| 210 | // Mollie. |
||
| 211 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Mollie\Integration(); |
||
| 212 | |||
| 213 | // Mollie - iDEAL. |
||
| 214 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\MollieIDeal\Integration(); |
||
| 215 | |||
| 216 | // Mollie - iDEAL Basic. |
||
| 217 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||
| 218 | array( |
||
| 219 | 'id' => 'mollie-ideal-basic', |
||
| 220 | 'name' => 'Mollie - iDEAL Basic', |
||
| 221 | 'provider' => 'mollie', |
||
| 222 | 'dashboard_url' => 'http://www.mollie.nl/beheer/', |
||
| 223 | 'deprecated' => true, |
||
| 224 | 'aquirer_url' => 'https://secure.mollie.nl/xml/idealAcquirer/lite/', |
||
| 225 | 'aquirer_test_url' => 'https://secure.mollie.nl/xml/idealAcquirer/testmode/lite/', |
||
| 226 | ) |
||
| 227 | ); |
||
| 228 | |||
| 229 | // MultiSafePay - Connect. |
||
| 230 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\MultiSafepay\Integration(); |
||
|
0 ignored issues
–
show
|
|||
| 231 | |||
| 232 | // Nocks. |
||
| 233 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Nocks\Integration(); |
||
| 234 | |||
| 235 | // Ingenico - DirectLink. |
||
| 236 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Ingenico\DirectLink\Integration(); |
||
| 237 | |||
| 238 | // Ingenico - OrderStandard. |
||
| 239 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Ingenico\OrderStandard\Integration(); |
||
| 240 | |||
| 241 | // Rabobank - OmniKassa. |
||
| 242 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\OmniKassa\Integration(); |
||
| 243 | |||
| 244 | // Rabobank - OmniKassa 2.0. |
||
| 245 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Integration(); |
||
| 246 | |||
| 247 | // Pay.nl. |
||
| 248 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\PayNL\Integration(); |
||
| 249 | |||
| 250 | // Rabobank - iDEAL Professional (v3). |
||
| 251 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\Integration( |
||
| 252 | array( |
||
| 253 | 'id' => 'rabobank-ideal-professional-v3', |
||
| 254 | 'name' => 'Rabobank - iDEAL Professional (v3)', |
||
| 255 | 'provider' => 'rabobank', |
||
| 256 | 'product_url' => 'https://www.rabobank.nl/bedrijven/betalen/geld-ontvangen/ideal-professional/', |
||
| 257 | 'dashboard_url' => array( |
||
| 258 | 'test' => 'https://idealtest.rabobank.nl/', |
||
| 259 | 'live' => 'https://ideal.rabobank.nl/', |
||
| 260 | ), |
||
| 261 | 'aquirer_url' => 'https://ideal.rabobank.nl/ideal/iDEALv3', |
||
| 262 | 'aquirer_test_url' => 'https://idealtest.rabobank.nl/ideal/iDEALv3', |
||
| 263 | 'certificates' => array(), |
||
| 264 | ) |
||
| 265 | ); |
||
| 266 | |||
| 267 | // Sisow. |
||
| 268 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\Sisow\Integration(); |
||
| 269 | |||
| 270 | // Sisow - iDEAL Basic. |
||
| 271 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDealBasic\Integration( |
||
| 272 | array( |
||
| 273 | 'id' => 'sisow-ideal-basic', |
||
| 274 | 'name' => 'Sisow - iDEAL Basic', |
||
| 275 | 'provider' => 'sisow', |
||
| 276 | 'url' => 'https://www.sisow.nl/', |
||
| 277 | 'dashboard_url' => 'https://www.sisow.nl/Sisow/iDeal/Login.aspx', |
||
| 278 | 'deprecated' => true, |
||
| 279 | 'aquirer_url' => 'https://www.sisow.nl/Sisow/iDeal/IssuerHandler.ashx', |
||
| 280 | 'aquirer_test_url' => 'https://www.sisow.nl/Sisow/iDeal/IssuerHandler.ashx/test', |
||
| 281 | ) |
||
| 282 | ); |
||
| 283 | |||
| 284 | // TargetPay. |
||
| 285 | $gateways[] = new \Pronamic\WordPress\Pay\Gateways\TargetPay\Integration(); |
||
| 286 | |||
| 287 | // Return gateways. |
||
| 288 | return $gateways; |
||
| 289 | } |
||
| 290 | ); |
||
| 291 | |||
| 292 | /** |
||
| 293 | * Backward compatibility. |
||
| 294 | */ |
||
| 295 | global $pronamic_ideal; |
||
| 296 | |||
| 297 | $pronamic_ideal = pronamic_pay_plugin(); |
||
| 298 |
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