PluginProbe ʕ •ᴥ•ʔ
Trust Payments Gateway for WooCommerce / 1.1.4
Trust Payments Gateway for WooCommerce v1.1.4
trunk 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 2.0.0 2.0.1 2.1.0 2.1.1 2.1.2
trust-payments-hosted-payment-pages-integration / admin / securetrading-paypal-settings.php
trust-payments-hosted-payment-pages-integration / admin Last commit date
securetrading-a2a-settings.php 1 year ago securetrading-api-settings.php 1 year ago securetrading-apple-pay-settings.php 1 year ago securetrading-google-pay-settings.php 1 year ago securetrading-iframe-settings.php 1 year ago securetrading-paypal-settings.php 1 year ago securetrading-transaction-columns.php 1 year ago
securetrading-paypal-settings.php
48 lines
1 <?php
2 /**
3 * Author: Trust Payments
4 * User: Minh Hung
5 * Date: 27/02/2023
6 * @since 1.0.0
7 */
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11 $helper = new WC_SecureTrading_Helper();
12 $st_paypal_settings = array(
13 // 'sanbox_mode' => array(
14 // 'type' => 'title',
15 // 'description' => '<div style="background-color: #ffffff; padding: 5px 10px; border: 1px solid #DCDCDC; border-radius: 5px; width: max-content;">
16 // <strong>
17 // '.__( 'Test Mode Enabled', SECURETRADING_TEXT_DOMAIN ).'
18 // </strong>
19 // </div>',
20 // ),
21 'enabled' => array(
22 'title' => __( 'Enable/Disable', SECURETRADING_TEXT_DOMAIN ),
23 'label' => __( 'Enable PayPal', SECURETRADING_TEXT_DOMAIN ),
24 'type' => 'checkbox',
25 'description' => '',
26 'default' => 'no'
27 ),
28 'title' => array(
29 'title' => __( 'Title', SECURETRADING_TEXT_DOMAIN ),
30 'type' => 'text',
31 'description' => __( 'This controls the title which the user sees during checkout.', SECURETRADING_TEXT_DOMAIN ),
32 'default' => '',
33 'desc_tip' => true,
34 ),
35 );
36 $st_securetrading_iframe_setting = get_option('woocommerce_securetrading_api_settings');
37 if ( !empty($st_securetrading_iframe_setting) && '1' === $st_securetrading_iframe_setting['testmode'] ) {
38 $st_paypal_testmode['testmode'] = array(
39 'type' => 'title',
40 'description' => '<div style="background-color: #ffffff; padding: 5px 10px; border: 1px solid #DCDCDC; border-radius: 5px; width: max-content;">
41 <strong>
42 ' . __('Test Mode Enabled', SECURETRADING_TEXT_DOMAIN) . '
43 </strong>
44 </div>'
45 );
46 $st_paypal_settings = array_merge($st_paypal_testmode, $st_paypal_settings);
47 }
48 return apply_filters('wc_st_paypal_settings', $st_paypal_settings);