| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Money Gateway Settings. |
| 8 |
*/ |
| 9 |
return apply_filters( |
| 10 |
'wc_monei_settings', |
| 11 |
array( |
| 12 |
'enabled' => array( |
| 13 |
'title' => __( 'Enable/Disable', 'monei' ), |
| 14 |
'type' => 'checkbox', |
| 15 |
'label' => __( 'Enable Credit Card by MONEI', 'monei' ), |
| 16 |
'default' => 'no', |
| 17 |
), |
| 18 |
'testmode' => array( |
| 19 |
'title' => __( 'Test mode', 'monei' ), |
| 20 |
'type' => 'checkbox', |
| 21 |
'label' => __( 'Enable test mode', 'monei' ), |
| 22 |
'default' => 'yes', |
| 23 |
'description' => sprintf( __( 'Place the payment gateway in test mode using test API key.', 'monei' ) ), |
| 24 |
), |
| 25 |
'title' => array( |
| 26 |
'title' => __( 'Title', 'monei' ), |
| 27 |
'type' => 'text', |
| 28 |
'description' => __( 'The payment method title a user sees during checkout.', 'monei' ), |
| 29 |
'default' => __( 'Credit Card', 'monei' ), |
| 30 |
'desc_tip' => true, |
| 31 |
), |
| 32 |
'description' => array( |
| 33 |
'title' => __( 'Description', 'monei' ), |
| 34 |
'type' => 'textarea', |
| 35 |
'description' => __( 'The payment method description a user sees during checkout.', 'monei' ), |
| 36 |
'default' => __( 'Pay with credit card, you will be redirected to MONEI.', 'monei' ), |
| 37 |
), |
| 38 |
'hide_logo' => array( |
| 39 |
'title' => __( 'Hide Logo', 'monei' ), |
| 40 |
'type' => 'checkbox', |
| 41 |
'label' => __( 'Hide payment method logo', 'monei' ), |
| 42 |
'default' => 'no', |
| 43 |
'description' => __( 'Hide payment method logo in the checkout.', 'monei' ), |
| 44 |
'desc_tip' => true, |
| 45 |
), |
| 46 |
'apikey' => array( |
| 47 |
'title' => __( 'API Key', 'monei' ), |
| 48 |
'type' => 'text', |
| 49 |
'description' => __( 'You can find your API key in <a href="https://dashboard.monei.com/settings/api" target="_blank">MONEI Dashboard</a>.<br/> Account ID and API key in the test mode are different from the live<br/> (production) mode and can only be used for testing purposes.', 'monei' ), |
| 50 |
'desc_tip' => 'no', |
| 51 |
), |
| 52 |
'tokenization' => array( |
| 53 |
'title' => __( 'Saved cards', 'monei' ), |
| 54 |
'type' => 'checkbox', |
| 55 |
'label' => __( 'Enable payments via saved cards', 'monei' ), |
| 56 |
'default' => 'no', |
| 57 |
'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' ), |
| 58 |
'desc_tip' => true, |
| 59 |
), |
| 60 |
'pre-authorize' => array( |
| 61 |
'title' => __( 'Pre-Authorize', 'monei' ), |
| 62 |
'type' => 'checkbox', |
| 63 |
'label' => __( 'Manually capture payments', 'monei' ), |
| 64 |
'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' ), |
| 65 |
'default' => 'no', |
| 66 |
), |
| 67 |
'orderdo' => array( |
| 68 |
'title' => __( 'What to do after payment?', 'monei' ), |
| 69 |
'type' => 'select', |
| 70 |
'description' => __( 'Chose what to do after the customer pay the order.', 'monei' ), |
| 71 |
'default' => 'processing', |
| 72 |
'options' => array( |
| 73 |
'processing' => __( 'Mark as Processing (default & recommended)', 'monei' ), |
| 74 |
'completed' => __( 'Mark as Complete', 'monei' ), |
| 75 |
), |
| 76 |
), |
| 77 |
'debug' => array( |
| 78 |
'title' => __( 'Debug Log', 'monei' ), |
| 79 |
'type' => 'checkbox', |
| 80 |
'label' => __( 'Enable logging', 'monei' ), |
| 81 |
'default' => 'no', |
| 82 |
'description' => __( 'Log MONEI events, such as notifications requests, inside <code>WooCommerce > Status > Logs > Select MONEI Logs</code>', 'monei' ), |
| 83 |
), |
| 84 |
) |
| 85 |
); |
| 86 |
|
| 87 |
|