-
Notifications
You must be signed in to change notification settings - Fork 0
/
pronamic-pay-worldline-open-banking-ideal-2.php
118 lines (110 loc) · 4.29 KB
/
pronamic-pay-worldline-open-banking-ideal-2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?php
/**
* Pronamic Pay - Worldline Open Banking - iDEAL 2.0
*
* @author Pronamic
* @copyright 2024 Pronamic
* @license GPL-2.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking
*
* @wordpress-plugin
* Plugin Name: Pronamic Pay - Worldline Open Banking - iDEAL 2.0
* Plugin URI: https://wp.pronamic.directory/plugins/pronamic-pay-worldline-open-banking-ideal-2/
* Description: This plugin contains the Pronamic Pay integration for the Worldline Open Banking Platform and iDEAL 2.0.
* Version: 1.2.1
* Requires at least: 6.2
* Requires PHP: 8.0
* Author: Pronamic
* Author URI: https://www.pronamic.eu/
* Text Domain: pronamic-pay-worldline-open-banking-ideal-2
* Domain Path: /languages/
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Update URI: https://wp.pronamic.directory/plugins/pronamic-pay-worldline-open-banking-ideal-2/
* GitHub URI: https://github.com/pronamic/pronamic-pay-worldline-open-banking-ideal-2
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Autoload.
*/
require_once __DIR__ . '/vendor/autoload_packages.php';
/**
* Gateway.
*/
add_filter(
'pronamic_pay_gateways',
function ( $gateways ) {
// ABN AMRO.
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking\Integration(
[
'id' => 'abn-amro-ideal-2-test',
'name' => 'ABN AMRO - iDEAL Zelfbouw - iDEAL 2.0 - Test',
'mode' => 'test',
'base_domain' => 'https://digitalroutingservice.awltest.de',
'app' => 'IDEAL',
'client' => 'ABN',
'initiating_party_label' => __( 'BC number', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'merchant_options' => [
'202020' => 'Test Merchant A',
'20202020' => 'Test Merchant B',
],
]
);
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking\Integration(
[
'id' => 'abn-amro-ideal-2',
'name' => 'ABN AMRO - iDEAL Zelfbouw - iDEAL 2.0',
'mode' => 'live',
'base_domain' => 'https://ecommerce.abnamro.nl',
'app' => 'IDEAL',
'client' => 'ABN',
'initiating_party_label' => __( 'BC number', 'pronamic-pay-worldline-open-banking-ideal-2' ),
]
);
// Rabobank.
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking\Integration(
[
'id' => 'rabobank-ideal-2-test',
'name' => 'Rabobank - Rabo iDEAL Professional - iDEAL 2.0 - Test',
'mode' => 'test',
'base_domain' => 'https://routingservice-rabo.awltest.de',
'app' => 'IDEAL',
'client' => 'RaboiDEAL',
'initiating_party_label' => __( 'Dashboard ID', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'merchant_options' => [
'002881' => 'Test Merchant A',
'002882' => 'Test Merchant B',
],
]
);
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking\Integration(
[
'id' => 'rabobank-ideal-2',
'name' => 'Rabobank - Rabo iDEAL Professional - iDEAL 2.0',
'mode' => 'live',
'base_domain' => 'https://ideal.rabobank.nl',
'app' => 'IDEAL',
'client' => 'RaboiDEAL',
'initiating_party_label' => __( 'Dashboard ID', 'pronamic-pay-worldline-open-banking-ideal-2' ),
]
);
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\WorldlineOpenBanking\Integration(
[
'id' => 'worldline-rabobank-ideal-2-test',
'name' => 'Worldline - Rabo iDEAL Professional - iDEAL 2.0 - Test',
'mode' => 'test',
'base_domain' => 'https://digitalroutingservice.awltest.de',
'app' => 'IDEAL',
'client' => 'RaboiDEAL',
'initiating_party_label' => __( 'Dashboard ID', 'pronamic-pay-worldline-open-banking-ideal-2' ),
'merchant_options' => [
'002881' => 'Test Merchant A',
'002882' => 'Test Merchant B',
],
]
);
return $gateways;
}
);