PluginProbe
MONEI Payments for WooCommerce / trunk
MONEI Payments for WooCommerce vtrunk
7.3.3 7.3.2 7.3.1 7.3.0 7.2.4 7.2.3 7.2.2 7.2.0 7.2.1 7.1.3 2.1.0 3.0.0 3.1.0 3.1.1 4.0.0 4.1.0 4.1.1 4.2.0 4.2.1 5.0 5.1.0 5.1.1 5.1.2 5.2.2 5.2.3 All 87 releases
monei / includes / admin / monei-cc-settings.php

monei-cc-settings.php in MONEI Payments for WooCommerce trunk, at includes/admin/monei-cc-settings.php

105 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Monei\Gateways\PaymentMethods\WCGatewayMoneiCC;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 }
8
9 $settings_link = esc_url(
10 admin_url(
11 add_query_arg(
12 array(
13 'page' => 'wc-settings',
14 'tab' => 'monei_settings',
15 ),
16 'admin.php'
17 )
18 )
19 );
20
21 /** Monei Gateway Settings. */
22 return apply_filters(
23 'wc_monei_cc_settings',
24 array(
25 'top_link' => array(
26 'title' => '',
27 'type' => 'title',
28 'description' => '<a href="' . $settings_link . '" class="button">' . __( 'Go to MONEI API Key Settings', 'monei' ) . '</a>',
29 'id' => 'cc_monei_top_link',
30 ),
31 'enabled' => array(
32 'title' => __( 'Enable/Disable', 'monei' ),
33 'type' => 'checkbox',
34 'label' => __( 'Enable Credit Card by MONEI', 'monei' ),
35 'default' => 'no',
36 ),
37 'mode' => array(
38 'title' => __( 'Use Redirect Flow', 'monei' ),
39 'type' => 'checkbox',
40 'label' => __( 'This will redirect the customer to the Hosted Payment Page.', 'monei' ),
41 'default' => 'no',
42 'description' => __(
43 'If disabled the credit card input will be rendered directly on the checkout page.<br>It is recommended to enable redirection in cases where card payments do not function correctly.',
44 'monei'
45 ),
46 ),
47 'title' => array(
48 'title' => __( 'Title', 'monei' ),
49 'type' => 'text',
50 'description' => __( 'The payment method title a user sees during checkout.', 'monei' ),
51 'default' => __( 'Credit Card', 'monei' ),
52 'desc_tip' => true,
53 ),
54 'hide_title' => array(
55 'title' => __( 'Hide Title', 'monei' ),
56 'type' => 'checkbox',
57 'label' => __( 'Hide payment method title', 'monei' ),
58 'default' => 'no',
59 'description' => __( 'Hide payment method title in the checkout, showing only the logo.', 'monei' ),
60 'desc_tip' => true,
61 ),
62 'hide_logo' => array(
63 'title' => __( 'Hide Logo', 'monei' ),
64 'type' => 'checkbox',
65 'label' => __( 'Hide payment method logo', 'monei' ),
66 'default' => 'no',
67 'description' => __( 'Hide payment method logo in the checkout.', 'monei' ),
68 'desc_tip' => true,
69 ),
70 'description' => array(
71 'title' => __( 'Description', 'monei' ),
72 'type' => 'textarea',
73 'description' => __( 'This description is only displayed when using redirect mode. It will be shown to customers before they are redirected to the payment page.', 'monei' ),
74 'default' => __( 'You will be redirected to Credit Card to complete the payment. Powered by MONEI.', 'monei' ),
75 'class' => 'monei-cc-description-field',
76 ),
77 'card_field_layout' => array(
78 'title' => __( 'Card Field Layout', 'monei' ),
79 'type' => 'select',
80 'description' => __( 'Show the card fields on a single line, or as separate card number, expiry and CVC fields.', 'monei' ),
81 'default' => 'split',
82 'desc_tip' => true,
83 'options' => array(
84 'single' => __( 'Single line', 'monei' ),
85 'split' => __( 'Separate fields', 'monei' ),
86 ),
87 ),
88 'card_input_style' => array(
89 'title' => __( 'Card Input Style', 'monei' ),
90 'type' => 'textarea',
91 'description' => __( 'Configure in JSON format the style of the card fields. Applies to both the single line and the separate fields layouts. Documentation: ', 'monei' ) . '<a href="https://docs.monei.com/docs/monei-js/reference/#cardinput-style-object" target="_blank">MONEI Card Input Style</a>',
92 'default' => WCGatewayMoneiCC::DEFAULT_CARD_INPUT_STYLE,
93 'css' => 'min-height: 80px;',
94 ),
95 'tokenization' => array(
96 'title' => __( 'Saved cards', 'monei' ),
97 'type' => 'checkbox',
98 'label' => __( 'Enable payments via saved cards', 'monei' ),
99 'default' => 'no',
100 'description' => __( 'If enabled, customers will be able to pay with a saved card during checkout. Card details are saved on MONEI servers, not on your store.', 'monei' ),
101 'desc_tip' => true,
102 ),
103 )
104 );
105