1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Pronamic\WordPress\Pay\Gateways\OmniKassa; |
4
|
|
|
|
5
|
|
|
use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Title: OmniKassa integration |
9
|
|
|
* Description: |
10
|
|
|
* Copyright: 2005-2019 Pronamic |
11
|
|
|
* Company: Pronamic |
12
|
|
|
* |
13
|
|
|
* @author Remco Tolsma |
14
|
|
|
* @version 2.0.0 |
15
|
|
|
* @since 1.0.0 |
16
|
|
|
*/ |
17
|
|
|
class Integration extends AbstractIntegration { |
18
|
|
|
public function __construct() { |
19
|
|
|
$this->id = 'rabobank-omnikassa'; |
20
|
|
|
$this->name = 'Rabobank - OmniKassa'; |
21
|
|
|
$this->product_url = 'https://www.rabobank.nl/bedrijven/betalen/geld-ontvangen/rabo-omnikassa/'; |
22
|
|
|
$this->dashboard_url = array( |
23
|
|
|
__( 'admin', 'pronamic_ideal' ) => 'https://dashboard.omnikassa.rabobank.nl/', |
24
|
|
|
__( 'download', 'pronamic_ideal' ) => 'https://download.omnikassa.rabobank.nl/', |
25
|
|
|
); |
26
|
|
|
$this->provider = 'rabobank'; |
27
|
|
|
$this->deprecated = true; |
|
|
|
|
28
|
|
|
|
29
|
|
|
// Actions |
30
|
|
|
$function = array( __NAMESPACE__ . '\Listener', 'listen' ); |
31
|
|
|
|
32
|
|
|
if ( ! has_action( 'wp_loaded', $function ) ) { |
33
|
|
|
add_action( 'wp_loaded', $function ); |
34
|
|
|
} |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
public function get_config_factory_class() { |
38
|
|
|
return __NAMESPACE__ . '\ConfigFactory'; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public function get_settings_class() { |
42
|
|
|
return __NAMESPACE__ . '\Settings'; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Get required settings for this integration. |
47
|
|
|
* |
48
|
|
|
* @see https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42 |
49
|
|
|
* @since 1.1.6 |
50
|
|
|
* @return array |
51
|
|
|
*/ |
52
|
|
|
public function get_settings() { |
53
|
|
|
$settings = parent::get_settings(); |
54
|
|
|
|
55
|
|
|
$settings[] = 'omnikassa'; |
56
|
|
|
|
57
|
|
|
return $settings; |
58
|
|
|
} |
59
|
|
|
} |
60
|
|
|
|