-
Notifications
You must be signed in to change notification settings - Fork 4
/
pronamic-pay-with-rabo-smart-pay.php
69 lines (63 loc) · 1.57 KB
/
pronamic-pay-with-rabo-smart-pay.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
<?php
/**
* Plugin Name: Pronamic Pay with Rabo Smart Pay
* Plugin URI: https://www.pronamic.eu/plugins/pronamic-pay-with-rabo-smart-pay/
* Description:
*
* Version: 4.8.0
* Requires at least: 5.9
* Requires PHP: 7.4
*
* Author: Pronamic
* Author URI: https://www.pronamic.eu/
*
* Text Domain: pronamic-pay-rabo-smart-pay
* Domain Path: /languages/
*
* License: GPL-3.0-or-later
*
* GitHub URI: https://github.com/wp-pay-gateways/omnikassa-2
*
* @author Pronamic <info@pronamic.eu>
* @copyright 2005-2024 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay\Gateways\OmniKassa2
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Autoload.
*/
require_once __DIR__ . '/vendor/autoload_packages.php';
/**
* Bootstrap.
*/
\Pronamic\WordPress\Pay\Plugin::instance(
[
'action_scheduler' => __DIR__ . '/vendor/woocommerce/action-scheduler/action-scheduler.php',
'file' => __FILE__,
]
);
add_filter(
'pronamic_pay_gateways',
static function ( $gateways ) {
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Integration(
[
'api_url' => 'https://betalen.rabobank.nl/omnikassa-api/',
'id' => 'rabobank-omnikassa-2',
'mode' => 'live',
'name' => 'Rabobank - Rabo Smart Pay',
]
);
$gateways[] = new \Pronamic\WordPress\Pay\Gateways\OmniKassa2\Integration(
[
'api_url' => 'https://betalen.rabobank.nl/omnikassa-api-sandbox/',
'id' => 'rabobank-omnikassa-2-sandbox',
'mode' => 'test',
'name' => 'Rabobank - Rabo Smart Pay - Sandbox',
]
);
return $gateways;
}
);