-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpronamic-pay-ideal-2.php
66 lines (61 loc) · 1.84 KB
/
pronamic-pay-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
<?php
/**
* Pronamic Pay - iDEAL 2.0
*
* @author Pronamic
* @copyright 2024 Pronamic
* @license GPL-2.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\IDeal2
*
* @wordpress-plugin
* Plugin Name: Pronamic Pay - iDEAL 2.0
* Plugin URI: https://wp.pronamic.directory/plugins/pronamic-pay-ideal-2/
* Description: This plugin contains the Pronamic Pay integration for iDEAL 2.0.
* Version: 1.1.1
* Requires at least: 6.2
* Requires PHP: 8.0
* Author: Pronamic
* Author URI: https://www.pronamic.eu/
* Text Domain: pronamic-pay-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-ideal-2/
* GitHub URI: https://github.com/pronamic/pronamic-pay-ideal-2
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Autoload.
*/
require_once __DIR__ . '/vendor/autoload_packages.php';
/**
* Gateway.
*/
add_filter(
'pronamic_pay_gateways',
function ( $gateways ) {
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDeal2\Integration(
[
'id' => 'ing-ideal-2-test',
'name' => 'ING - iDEAL 2.0 - Test',
'mode' => 'test',
'provider' => 'ing',
'acquirer_url' => 'https://api.sandbox.ideal-acquiring.ing.nl',
'ideal_hub_url' => 'https://merchant-cpsp-mtls.ext.idealapi.nl/v2',
]
);
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\IDeal2\Integration(
[
'id' => 'ing-ideal-2',
'name' => 'ING - iDEAL 2.0',
'mode' => 'live',
'provider' => 'ing',
'acquirer_url' => 'https://api.ideal-acquiring.ing.nl',
'ideal_hub_url' => 'https://merchant-cpsp-mtls.idealapi.nl/v2',
]
);
return $gateways;
}
);