@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | +if ( ! defined('ABSPATH')) { |
|
| 4 | 4 | exit; // Exit if accessed directly |
| 5 | 5 | } |
| 6 | 6 | |
@@ -35,10 +35,10 @@ discard block |
||
| 35 | 35 | * @param string $deprecated Deprecated since WooCommerce 3.0 |
| 36 | 36 | * @return string |
| 37 | 37 | */ |
| 38 | - public function get_display_name( $deprecated = '' ) { |
|
| 38 | + public function get_display_name($deprecated = '') { |
|
| 39 | 39 | $display = sprintf( |
| 40 | 40 | /* translators: last 4 digits of IBAN account */ |
| 41 | - __( 'SEPA IBAN ending in %s', 'woocommerce-gateway-stripe' ), |
|
| 41 | + __('SEPA IBAN ending in %s', 'woocommerce-gateway-stripe'), |
|
| 42 | 42 | $this->get_last4() |
| 43 | 43 | ); |
| 44 | 44 | |
@@ -66,11 +66,11 @@ discard block |
||
| 66 | 66 | * @return boolean True if the passed data is valid |
| 67 | 67 | */ |
| 68 | 68 | public function validate() { |
| 69 | - if ( false === parent::validate() ) { |
|
| 69 | + if (false === parent::validate()) { |
|
| 70 | 70 | return false; |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - if ( ! $this->get_last4( 'edit' ) ) { |
|
| 73 | + if ( ! $this->get_last4('edit')) { |
|
| 74 | 74 | return false; |
| 75 | 75 | } |
| 76 | 76 | |
@@ -85,8 +85,8 @@ discard block |
||
| 85 | 85 | * @param string $context |
| 86 | 86 | * @return string Last 4 digits |
| 87 | 87 | */ |
| 88 | - public function get_last4( $context = 'view' ) { |
|
| 89 | - return WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $this->get_meta( 'last4' ) : $this->get_prop( 'last4', $context ); |
|
| 88 | + public function get_last4($context = 'view') { |
|
| 89 | + return WC_Stripe_Helper::is_wc_lt('3.0') ? $this->get_meta('last4') : $this->get_prop('last4', $context); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * @version 4.0.0 |
| 96 | 96 | * @param string $last4 |
| 97 | 97 | */ |
| 98 | - public function set_last4( $last4 ) { |
|
| 99 | - WC_Stripe_Helper::is_wc_lt( '3.0' ) ? $this->add_meta_data( 'last4', $last4, true ) : $this->set_prop( 'last4', $last4 ); |
|
| 98 | + public function set_last4($last4) { |
|
| 99 | + WC_Stripe_Helper::is_wc_lt('3.0') ? $this->add_meta_data('last4', $last4, true) : $this->set_prop('last4', $last4); |
|
| 100 | 100 | } |
| 101 | 101 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_giropay_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'Giropay', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('Giropay', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_bancontact_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('Bancontact', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_multibanco_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe Multibanco', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe Multibanco', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'Multibanco', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('Multibanco', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to Multibanco.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to Multibanco.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_ideal_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'iDeal', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('iDeal', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_sepa_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('Mandate Information.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,40 +7,40 @@ discard block |
||
| 7 | 7 | 'wc_stripe_sofort_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'guide' => array( |
| 14 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'activation' => array( |
| 18 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 19 | 19 | 'type' => 'title', |
| 20 | 20 | ), |
| 21 | 21 | 'enabled' => array( |
| 22 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 23 | - 'label' => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 22 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 23 | + 'label' => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'), |
|
| 24 | 24 | 'type' => 'checkbox', |
| 25 | 25 | 'description' => '', |
| 26 | 26 | 'default' => 'no', |
| 27 | 27 | ), |
| 28 | 28 | 'title' => array( |
| 29 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 29 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'type' => 'text', |
| 31 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 32 | - 'default' => __( 'SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 31 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 32 | + 'default' => __('SOFORT', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'desc_tip' => true, |
| 34 | 34 | ), |
| 35 | 35 | 'description' => array( |
| 36 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 36 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'type' => 'text', |
| 38 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 39 | - 'default' => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ), |
|
| 38 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 39 | + 'default' => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'desc_tip' => true, |
| 41 | 41 | ), |
| 42 | 42 | 'webhook' => array( |
| 43 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 43 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 44 | 44 | 'type' => 'title', |
| 45 | 45 | /* translators: webhook URL */ |
| 46 | 46 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_p24_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe P24', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('Przelewy24 (P24)', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to P24.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
@@ -7,36 +7,36 @@ discard block |
||
| 7 | 7 | 'wc_stripe_eps_settings', |
| 8 | 8 | array( |
| 9 | 9 | 'geo_target' => array( |
| 10 | - 'description' => __( 'Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe' ), |
|
| 10 | + 'description' => __('Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe'), |
|
| 11 | 11 | 'type' => 'title', |
| 12 | 12 | ), |
| 13 | 13 | 'activation' => array( |
| 14 | - 'description' => __( 'Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe' ), |
|
| 14 | + 'description' => __('Must be activated from your Stripe Dashboard Settings <a href="https://dashboard.stripe.com/account/payments/settings" target="_blank">here</a>', 'woocommerce-gateway-stripe'), |
|
| 15 | 15 | 'type' => 'title', |
| 16 | 16 | ), |
| 17 | 17 | 'enabled' => array( |
| 18 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 19 | - 'label' => __( 'Enable Stripe EPS', 'woocommerce-gateway-stripe' ), |
|
| 18 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 19 | + 'label' => __('Enable Stripe EPS', 'woocommerce-gateway-stripe'), |
|
| 20 | 20 | 'type' => 'checkbox', |
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'default' => 'no', |
| 23 | 23 | ), |
| 24 | 24 | 'title' => array( |
| 25 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 25 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 26 | 26 | 'type' => 'text', |
| 27 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 28 | - 'default' => __( 'EPS', 'woocommerce-gateway-stripe' ), |
|
| 27 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 28 | + 'default' => __('EPS', 'woocommerce-gateway-stripe'), |
|
| 29 | 29 | 'desc_tip' => true, |
| 30 | 30 | ), |
| 31 | 31 | 'description' => array( |
| 32 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 33 | 33 | 'type' => 'text', |
| 34 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 35 | - 'default' => __( 'You will be redirected to EPS.', 'woocommerce-gateway-stripe' ), |
|
| 34 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 35 | + 'default' => __('You will be redirected to EPS.', 'woocommerce-gateway-stripe'), |
|
| 36 | 36 | 'desc_tip' => true, |
| 37 | 37 | ), |
| 38 | 38 | 'webhook' => array( |
| 39 | - 'title' => __( 'Webhook Enpoints', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'title' => __('Webhook Enpoints', 'woocommerce-gateway-stripe'), |
|
| 40 | 40 | 'type' => 'title', |
| 41 | 41 | /* translators: webhook URL */ |
| 42 | 42 | 'description' => $this->display_admin_settings_webhook_description(), |