| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* Money Paypal Gateway Settings. |
| 8 |
*/ |
| 9 |
return apply_filters( |
| 10 |
'wc_monei_paypal_settings', |
| 11 |
array( |
| 12 |
'enabled' => array( |
| 13 |
'title' => __( 'Enable/Disable', 'monei' ), |
| 14 |
'type' => 'checkbox', |
| 15 |
'label' => __( 'Enable PayPal by MONEI', 'monei' ), |
| 16 |
'default' => 'no', |
| 17 |
), |
| 18 |
'title' => array( |
| 19 |
'title' => __( 'Title', 'monei' ), |
| 20 |
'type' => 'text', |
| 21 |
'description' => __( 'The payment method title a user sees during checkout.', 'monei' ), |
| 22 |
'default' => __( 'PayPal', 'monei' ), |
| 23 |
'desc_tip' => true, |
| 24 |
), |
| 25 |
'description' => array( |
| 26 |
'title' => __( 'Description', 'monei' ), |
| 27 |
'type' => 'textarea', |
| 28 |
'description' => __( 'The payment method description a user sees during checkout.', 'monei' ), |
| 29 |
'default' => __( 'Pay with PayPal, you will be redirected to PayPal. Powered by MONEI.', 'monei' ), |
| 30 |
), |
| 31 |
'hide_logo' => array( |
| 32 |
'title' => __( 'Hide Logo', 'monei' ), |
| 33 |
'type' => 'checkbox', |
| 34 |
'label' => __( 'Hide payment method logo', 'monei' ), |
| 35 |
'default' => 'no', |
| 36 |
'description' => __( 'Hide payment method logo in the checkout.', 'monei' ), |
| 37 |
'desc_tip' => true, |
| 38 |
), |
| 39 |
'apikey' => array( |
| 40 |
'title' => __( 'API Key', 'monei' ), |
| 41 |
'type' => 'text', |
| 42 |
'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' ), |
| 43 |
'desc_tip' => 'no', |
| 44 |
), |
| 45 |
'orderdo' => array( |
| 46 |
'title' => __( 'What to do after payment?', 'monei' ), |
| 47 |
'type' => 'select', |
| 48 |
'description' => __( 'Chose what to do after the customer pay the order.', 'monei' ), |
| 49 |
'default' => 'processing', |
| 50 |
'options' => array( |
| 51 |
'processing' => __( 'Mark as Processing (default & recommended)', 'monei' ), |
| 52 |
'completed' => __( 'Mark as Complete', 'monei' ), |
| 53 |
), |
| 54 |
), |
| 55 |
'debug' => array( |
| 56 |
'title' => __( 'Debug Log', 'monei' ), |
| 57 |
'type' => 'checkbox', |
| 58 |
'label' => __( 'Enable logging', 'monei' ), |
| 59 |
'default' => 'no', |
| 60 |
'description' => __( 'Log MONEI events, such as notifications requests, inside <code>WooCommerce > Status > Logs > Select MONEI Logs</code>', 'monei' ), |
| 61 |
), |
| 62 |
) |
| 63 |
); |
| 64 |
|
| 65 |
|