Conditions | 1 |
Paths | 1 |
Total Lines | 36 |
Code Lines | 25 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | public function get_settings_fields() { |
||
17 | $fields = array(); |
||
18 | |||
19 | // Hash Key |
||
20 | $fields[] = array( |
||
21 | 'section' => 'general', |
||
22 | 'filter' => FILTER_SANITIZE_STRING, |
||
23 | 'meta_key' => '_pronamic_gateway_ideal_hash_key', |
||
24 | 'title' => __( 'Hash Key', 'pronamic_ideal' ), |
||
25 | 'type' => 'text', |
||
26 | 'classes' => array( 'regular-text', 'code' ), |
||
27 | 'tooltip' => __( 'Hash key (also known as: key or secret key) as mentioned in the payment provider dashboard.', 'pronamic_ideal' ), |
||
28 | 'methods' => array( 'ideal-basic' ), |
||
29 | ); |
||
30 | |||
31 | // XML Notification URL. |
||
32 | $fields[] = array( |
||
33 | 'section' => 'feedback', |
||
34 | 'title' => __( 'XML Notification URL', 'pronamic_ideal' ), |
||
35 | 'type' => 'text', |
||
36 | 'classes' => array( 'regular-text', 'code' ), |
||
37 | 'value' => add_query_arg( |
||
38 | array( |
||
39 | 'gateway' => 'IDealBasic', |
||
40 | 'xml_notification' => 'true', |
||
41 | ), |
||
42 | site_url( '/' ) |
||
43 | ), |
||
44 | 'methods' => array( 'ideal-basic' ), |
||
45 | 'readonly' => true, |
||
46 | 'size' => 200, |
||
47 | 'tooltip' => __( 'Copy the XML notification URL to the payment provider dashboard to receive automatic transaction status updates.', 'pronamic_ideal' ), |
||
48 | ); |
||
49 | |||
50 | // Return fields. |
||
51 | return $fields; |
||
52 | } |
||
54 |