@@ -23,35 +23,35 @@ |
||
23 | 23 | $this->init_form_fields(); |
24 | 24 | $this->init_settings(); |
25 | 25 | |
26 | - add_action( 'eduadmin-processbooking', array( $this, 'process_booking' ) ); |
|
26 | + add_action( 'eduadmin-processbooking', array ( $this, 'process_booking' ) ); |
|
27 | 27 | |
28 | - add_action( 'wp_loaded', array( $this, 'process_svearesponse' ) ); |
|
28 | + add_action( 'wp_loaded', array ( $this, 'process_svearesponse' ) ); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Initializes the settingsfields |
33 | 33 | */ |
34 | 34 | public function init_form_fields() { |
35 | - $this->setting_fields = array( |
|
36 | - 'enabled' => array( |
|
35 | + $this->setting_fields = array ( |
|
36 | + 'enabled' => array ( |
|
37 | 37 | 'title' => __( 'Enabled', 'eduadmin-sveawebpay' ), |
38 | 38 | 'type' => 'checkbox', |
39 | 39 | 'description' => __( 'Enables/Disables the integration with Svea WebPay', 'eduadmin-sveawebpay' ), |
40 | 40 | 'default' => 'no', |
41 | 41 | ), |
42 | - 'testrun' => array( |
|
42 | + 'testrun' => array ( |
|
43 | 43 | 'title' => __( 'Sandbox mode', 'eduadmin-sveawebpay' ), |
44 | 44 | 'type' => 'checkbox', |
45 | 45 | 'description' => __( 'Activate sandbox mode', 'eduadmin-sveawebpay' ), |
46 | 46 | 'default' => 'no', |
47 | 47 | ), |
48 | - 'merchant_key' => array( |
|
48 | + 'merchant_key' => array ( |
|
49 | 49 | 'title' => __( 'Merchant key', 'eduadmin-sveawebpay' ), |
50 | 50 | 'type' => 'text', |
51 | 51 | 'description' => __( 'Please enter your merchant key from Svea WebPay.', 'eduadmin-sveawebpay' ), |
52 | 52 | 'placeholder' => __( 'Merchant key', 'eduadmin-sveawebpay' ), |
53 | 53 | ), |
54 | - 'merchant_secret' => array( |
|
54 | + 'merchant_secret' => array ( |
|
55 | 55 | 'title' => __( 'Merchant secret', 'eduadmin-sveawebpay' ), |
56 | 56 | 'type' => 'password', |
57 | 57 | 'description' => __( 'Please enter your merchant secret from Svea WebPay', 'eduadmin-sveawebpay' ), |