|
15 | 15 | ) |
16 | 16 | ); |
17 | 17 |
|
18 | | -/** |
19 | | - * Monei Paypal Gateway Settings. |
20 | | - */ |
| 18 | +/** Monei Paypal Gateway Settings. */ |
21 | 19 | return apply_filters( |
22 | 20 | 'wc_monei_paypal_settings', |
23 | 21 | array( |
24 | | - 'top_link' => array( |
| 22 | + 'top_link' => array( |
25 | 23 | 'title' => '', |
26 | 24 | 'type' => 'title', |
27 | 25 | 'description' => '<a href="' . $settings_link . '" class="button">' . __( 'Go to MONEI Api key Settings', 'monei' ) . '</a>', |
28 | 26 | 'id' => 'paypal_monei_top_link', |
29 | 27 | ), |
30 | | - 'enabled' => array( |
| 28 | + 'enabled' => array( |
31 | 29 | 'title' => __( 'Enable/Disable', 'monei' ), |
32 | 30 | 'type' => 'checkbox', |
33 | 31 | 'label' => __( 'Enable PayPal by MONEI', 'monei' ), |
34 | 32 | 'default' => 'no', |
35 | 33 | ), |
36 | | - 'paypal_mode' => array( |
| 34 | + 'paypal_mode' => array( |
37 | 35 | 'title' => __( 'Use Redirect Flow', 'monei' ), |
38 | 36 | 'type' => 'checkbox', |
39 | 37 | 'label' => __( 'This will redirect the customer to the Hosted Payment Page.', 'monei' ), |
40 | 38 | 'default' => 'no', |
41 | 39 | 'description' => sprintf( __( 'If disabled the PayPal button will be rendered directly on the checkout page. It is recommended to enable redirection in cases where PayPal payments do not function correctly.', 'monei' ) ), |
42 | 40 | ), |
43 | | - 'description' => array( |
| 41 | + 'description' => array( |
44 | 42 | 'title' => __( 'Description', 'monei' ), |
45 | 43 | 'type' => 'textarea', |
46 | 44 | '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' ), |
47 | | - 'default' => __( 'Pay with PayPal. Powered by MONEI.', 'monei' ), |
| 45 | + 'default' => __( 'You will be redirected to PayPal to complete the payment. Powered by MONEI. ', 'monei' ), |
48 | 46 | 'class' => 'monei-paypal-description-field', |
49 | 47 | ), |
50 | | - 'paypal_style' => array( |
| 48 | + 'paypal_style' => array( |
51 | 49 | 'title' => __( 'PayPal Style', 'monei' ), |
52 | 50 | 'type' => 'textarea', |
53 | 51 | 'description' => __( 'Configure in JSON format the style of the PayPal component. Documentation: ', 'monei' ) . '<a href="https://docs.monei.com/docs/monei-js/reference/#paypal-options" target="_blank">MONEI PayPal Style</a>', |
54 | 52 | 'default' => '{"height": "50px", "disableMaxWidth": true}', |
55 | 53 | 'css' => 'min-height: 80px;', |
56 | 54 | ), |
57 | | - 'title' => array( |
| 55 | + 'title' => array( |
58 | 56 | 'title' => __( 'Title', 'monei' ), |
59 | 57 | 'type' => 'text', |
60 | 58 | 'description' => __( 'The payment method title a user sees during checkout.', 'monei' ), |
61 | 59 | 'default' => __( 'PayPal', 'monei' ), |
62 | 60 | 'desc_tip' => true, |
63 | 61 | ), |
64 | | - 'hide_title' => array( |
| 62 | + 'hide_title' => array( |
65 | 63 | 'title' => __( 'Hide Title', 'monei' ), |
66 | 64 | 'type' => 'checkbox', |
67 | 65 | 'label' => __( 'Hide payment method title', 'monei' ), |
68 | 66 | 'default' => 'no', |
69 | 67 | 'description' => __( 'Hide payment method title in the checkout, showing only the logo.', 'monei' ), |
70 | 68 | 'desc_tip' => true, |
71 | 69 | ), |
72 | | - 'hide_logo' => array( |
| 70 | + 'hide_logo' => array( |
73 | 71 | 'title' => __( 'Hide Logo', 'monei' ), |
74 | 72 | 'type' => 'checkbox', |
75 | 73 | 'label' => __( 'Hide payment method logo', 'monei' ), |
76 | 74 | 'default' => 'no', |
77 | 75 | 'description' => __( 'Hide payment method logo in the checkout.', 'monei' ), |
78 | 76 | 'desc_tip' => true, |
79 | 77 | ), |
80 | | - 'pre-authorize' => array( |
81 | | - 'title' => __( 'Pre-Authorize', 'monei' ), |
82 | | - 'type' => 'checkbox', |
83 | | - 'label' => __( 'Manually capture payments', 'monei' ), |
84 | | - 'description' => __( 'Place a hold on the funds when the customer authorizes the payment, but don’t capture the funds until later.<br>You can capture the payment changing order status to <strong>Completed</strong> or <strong>Processing</strong>.<br> You can cancel the Payment changing order to <strong>Cancelled</strong> or <strong>Refunded</strong>.', 'monei' ), |
85 | | - 'default' => 'no', |
86 | | - ), |
87 | | - 'orderdo' => array( |
88 | | - 'title' => __( 'What to do after payment?', 'monei' ), |
89 | | - 'type' => 'select', |
90 | | - 'description' => __( 'Chose what to do after the customer pay the order.', 'monei' ), |
91 | | - 'default' => 'processing', |
92 | | - 'options' => array( |
93 | | - 'processing' => __( 'Mark as Processing (default & recommended)', 'monei' ), |
94 | | - 'completed' => __( 'Mark as Complete', 'monei' ), |
95 | | - ), |
96 | | - ), |
97 | 78 | ) |
98 | 79 | ); |
0 commit comments