PluginProbe
Cashfree for WooCommerce / 4.8.1
Cashfree for WooCommerce v4.8.1
4.8.1 4.8.0 trunk 1.0 1.2 4.2.1 4.2.2 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.8 4.3.9 4.4.0 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.5.0 4.5.1 All 42 releases
cashfree / includes / settings / cashfree-payments.php

cashfree-payments.php in Cashfree for WooCommerce 4.8.1, at includes/settings/cashfree-payments.php

109 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Cashfree pay now settings
4 */
5
6 defined( 'ABSPATH' ) || exit;
7
8 return array(
9 'enabled' => array(
10 'title' => __( 'Enable/Disable', 'cashfree' ),
11 'type' => 'checkbox',
12 'label' => __( 'Enable Cashfree Payments', 'cashfree' ),
13 'default' => 'yes',
14
15 ),
16 'title' => array(
17 'title' => __( 'Title', 'cashfree' ),
18 'type' => 'text',
19 'description' => __( 'This controls the title which the user sees during checkout.', 'cashfree' ),
20 'default' => __( 'Cashfree Payments', 'cashfree' ),
21 'desc_tip' => true,
22 ),
23 'description' => array(
24 'title' => __( 'Description', 'cashfree' ),
25 'type' => 'textarea',
26 'description' => __( 'Payment method description that the customer will see on your checkout.', 'cashfree' ),
27 'default' => __( 'Pay securely via Card/Net Banking/Wallet via Cashfree.', 'cashfree' ),
28 ),
29 'app_id' => array(
30 'title' => __( 'App ID', 'cashfree' ),
31 'type' => 'text',
32 'description' => __( 'Get your App ID from Cashfree.', 'cashfree' ),
33 'default' => '',
34 'desc_tip' => true,
35 ),
36 'secret_key' => array(
37 'title' => __( 'Secret key', 'cashfree' ),
38 'type' => 'password',
39 'description' => __( 'Get your secret Key from Cashfree.', 'cashfree' ),
40 'default' => '',
41 'desc_tip' => true,
42 ),
43 'sandbox' => array(
44 'title' => __( 'Cashfree sandbox', 'cashfree' ),
45 'type' => 'checkbox',
46 'label' => __( 'Enable Cashfree sandbox', 'cashfree' ),
47 'default' => 'no',
48 'description' => __( 'Cashfree sandbox can be used to test payments.', 'cashfree' ),
49 ),
50 'debug' => array(
51 'title' => __( 'Debug log', 'cashfree' ),
52 'type' => 'checkbox',
53 'label' => __( 'Enable logging', 'cashfree' ),
54 'default' => 'no',
55 'description' => __( 'Log Cashfree events, such as HTTP requests.', 'cashfree' ),
56 ),
57 'order_button_text' => array(
58 'title' => __('Order button text', 'cashfree'),
59 'type' => 'text',
60 'default' => __('Pay Now', 'cashfree'),
61 'description' => __('This controls the title which the user sees during checkout.', 'cashfree'),
62 'desc_tip' => true
63 ),
64 'order_id_prefix_text' => array(
65 'title' => __('Order Id Prefix', 'cashfree'),
66 'type' => 'checkbox',
67 'label' => __( 'Enable Order Id Prefix', 'cashfree' ),
68 'default' => __('no', 'cashfree'),
69 'description' => __('Enable this option to add a prefix to the order IDs when creating new orders', 'cashfree'),
70 'desc_tip' => true
71 ),
72 'order_in_context' => array(
73 'title' => __('Cashfree Popup Checkout', 'cashfree'),
74 'type' => 'checkbox',
75 'label' => __( 'Enable Cashfree Popup Checkout', 'cashfree' ),
76 'default' => __('no', 'cashfree'),
77 'description' => __('Enable this option to open Cashfree Popup Checkout', 'cashfree'),
78 'desc_tip' => true
79 ),
80 'enabledOffers' => array(
81 'title' => __( 'Widget Enable/Disable', 'cashfree' ),
82 'type' => 'checkbox',
83 'label' => __( 'Widget Enable of Cashfree Payments', 'cashfree' ),
84 'default' => 'no',
85 ),
86 'offers' => array(
87 'title' => __( 'Enable/Disable Offers', 'cashfree' ),
88 'type' => 'checkbox',
89 'label' => __( 'Enable/Disable Offers on widget', 'cashfree' ),
90 'default' => 'no',
91 ),
92 'payLater' => array(
93 'title' => __( 'Enable/Disable Paylater', 'cashfree' ),
94 'type' => 'checkbox',
95 'label' => __( 'Enable/Disable Paylater on widget', 'cashfree' ),
96 'default' => 'no',
97 ),
98 'emi' => array(
99 'title' => __( 'Enable/Disable EMI', 'cashfree' ),
100 'type' => 'checkbox',
101 'label' => __( 'Enable/Disable EMI on widget', 'cashfree' ),
102 'default' => 'no',
103 ),
104 array(
105 'type' => 'title',
106 'description' => __( '<b>*</b>To ensure seamless payment integration, it is necessary to comply with payment regulations by whitelisting your domain. Please click on the <a href="https://docs.cashfree.com/docs/developers-whitelisting" target="_blank">link</a> provided to whitelist your domain.</br>
107 <b>*</b>Disabling the <b>Enable Order Id Prefix</b> after its been enabled might impact your ability to track and manage orders accurately. Consider the implications before making changes. </br>Please be mindful of the impact on your order management process before toggling this setting.', 'cashfree' ),
108 ),
109 );