@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | public $saved_cards; |
12 | 12 | |
13 | 13 | public function __construct() { |
14 | - $this->saved_cards = WC_Stripe_Helper::get_settings( 'stripe', 'saved_cards' ); |
|
14 | + $this->saved_cards = WC_Stripe_Helper::get_settings('stripe', 'saved_cards'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | /** |
@@ -19,68 +19,68 @@ discard block |
||
19 | 19 | * @param int $order_id |
20 | 20 | * @return boolean |
21 | 21 | */ |
22 | - public function is_pre_order( $order_id ) { |
|
23 | - return WC_Pre_Orders_Order::order_contains_pre_order( $order_id ); |
|
22 | + public function is_pre_order($order_id) { |
|
23 | + return WC_Pre_Orders_Order::order_contains_pre_order($order_id); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Remove order meta |
28 | 28 | * @param object $order |
29 | 29 | */ |
30 | - public function remove_order_source_before_retry( $order ) { |
|
30 | + public function remove_order_source_before_retry($order) { |
|
31 | 31 | $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id(); |
32 | - delete_post_meta( $order_id, '_stripe_source_id' ); |
|
32 | + delete_post_meta($order_id, '_stripe_source_id'); |
|
33 | 33 | // For BW compat will remove in the future. |
34 | - delete_post_meta( $order_id, '_stripe_card_id' ); |
|
34 | + delete_post_meta($order_id, '_stripe_card_id'); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | 38 | * Remove order meta |
39 | 39 | * @param object $order |
40 | 40 | */ |
41 | - public function remove_order_customer_before_retry( $order ) { |
|
41 | + public function remove_order_customer_before_retry($order) { |
|
42 | 42 | $order_id = WC_Stripe_Helper::is_pre_30() ? $order->id : $order->get_id(); |
43 | - delete_post_meta( $order_id, '_stripe_customer_id' ); |
|
43 | + delete_post_meta($order_id, '_stripe_customer_id'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | 47 | * Process the pre-order when pay upon release is used. |
48 | 48 | * @param int $order_id |
49 | 49 | */ |
50 | - public function process_pre_order( $order_id ) { |
|
50 | + public function process_pre_order($order_id) { |
|
51 | 51 | try { |
52 | - $order = wc_get_order( $order_id ); |
|
52 | + $order = wc_get_order($order_id); |
|
53 | 53 | |
54 | 54 | // This will throw exception if not valid. |
55 | - $this->validate_minimum_order_amount( $order ); |
|
55 | + $this->validate_minimum_order_amount($order); |
|
56 | 56 | |
57 | - $prepared_source = $this->prepare_source( get_current_user_id(), true ); |
|
57 | + $prepared_source = $this->prepare_source(get_current_user_id(), true); |
|
58 | 58 | |
59 | 59 | // We need a source on file to continue. |
60 | - if ( empty( $prepared_source->customer ) || empty( $prepared_source->source ) ) { |
|
61 | - throw new WC_Stripe_Exception( __( 'Unable to store payment details. Please try again.', 'woocommerce-gateway-stripe' ) ); |
|
60 | + if (empty($prepared_source->customer) || empty($prepared_source->source)) { |
|
61 | + throw new WC_Stripe_Exception(__('Unable to store payment details. Please try again.', 'woocommerce-gateway-stripe')); |
|
62 | 62 | } |
63 | 63 | |
64 | - $this->save_source_to_order( $order, $prepared_source ); |
|
64 | + $this->save_source_to_order($order, $prepared_source); |
|
65 | 65 | |
66 | 66 | // Remove cart |
67 | 67 | WC()->cart->empty_cart(); |
68 | 68 | |
69 | 69 | // Is pre ordered! |
70 | - WC_Pre_Orders_Order::mark_order_as_pre_ordered( $order ); |
|
70 | + WC_Pre_Orders_Order::mark_order_as_pre_ordered($order); |
|
71 | 71 | |
72 | 72 | // Return thank you page redirect |
73 | 73 | return array( |
74 | 74 | 'result' => 'success', |
75 | - 'redirect' => $this->get_return_url( $order ), |
|
75 | + 'redirect' => $this->get_return_url($order), |
|
76 | 76 | ); |
77 | - } catch ( WC_Stripe_Exception $e ) { |
|
78 | - wc_add_notice( $e->getLocalizedMessage(), 'error' ); |
|
79 | - WC_Stripe_Logger::log( 'Pre Orders Error: ' . $e->getMessage() ); |
|
77 | + } catch (WC_Stripe_Exception $e) { |
|
78 | + wc_add_notice($e->getLocalizedMessage(), 'error'); |
|
79 | + WC_Stripe_Logger::log('Pre Orders Error: ' . $e->getMessage()); |
|
80 | 80 | |
81 | 81 | return array( |
82 | 82 | 'result' => 'success', |
83 | - 'redirect' => $order->get_checkout_payment_url( true ), |
|
83 | + 'redirect' => $order->get_checkout_payment_url(true), |
|
84 | 84 | ); |
85 | 85 | } |
86 | 86 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * @param WC_Order $order |
91 | 91 | * @return void |
92 | 92 | */ |
93 | - public function process_pre_order_release_payment( $order ) { |
|
93 | + public function process_pre_order_release_payment($order) { |
|
94 | 94 | try { |
95 | 95 | // Define some callbacks if the first attempt fails. |
96 | 96 | $retry_callbacks = array( |
@@ -98,33 +98,33 @@ discard block |
||
98 | 98 | 'remove_order_customer_before_retry', |
99 | 99 | ); |
100 | 100 | |
101 | - while ( 1 ) { |
|
102 | - $source = $this->prepare_order_source( $order ); |
|
103 | - $response = WC_Stripe_API::request( $this->generate_payment_request( $order, $source ) ); |
|
101 | + while (1) { |
|
102 | + $source = $this->prepare_order_source($order); |
|
103 | + $response = WC_Stripe_API::request($this->generate_payment_request($order, $source)); |
|
104 | 104 | |
105 | - if ( ! empty( $response->error ) ) { |
|
106 | - if ( 0 === sizeof( $retry_callbacks ) ) { |
|
107 | - throw new Exception( $response->error->message ); |
|
105 | + if ( ! empty($response->error)) { |
|
106 | + if (0 === sizeof($retry_callbacks)) { |
|
107 | + throw new Exception($response->error->message); |
|
108 | 108 | } else { |
109 | - $retry_callback = array_shift( $retry_callbacks ); |
|
110 | - call_user_func( array( $this, $retry_callback ), $order ); |
|
109 | + $retry_callback = array_shift($retry_callbacks); |
|
110 | + call_user_func(array($this, $retry_callback), $order); |
|
111 | 111 | } |
112 | 112 | } else { |
113 | 113 | // Successful |
114 | - $this->process_response( $response, $order ); |
|
114 | + $this->process_response($response, $order); |
|
115 | 115 | break; |
116 | 116 | } |
117 | 117 | } |
118 | - } catch ( Exception $e ) { |
|
118 | + } catch (Exception $e) { |
|
119 | 119 | /* translators: error message */ |
120 | - $order_note = sprintf( __( 'Stripe Transaction Failed (%s)', 'woocommerce-gateway-stripe' ), $e->getMessage() ); |
|
120 | + $order_note = sprintf(__('Stripe Transaction Failed (%s)', 'woocommerce-gateway-stripe'), $e->getMessage()); |
|
121 | 121 | |
122 | 122 | // Mark order as failed if not already set, |
123 | 123 | // otherwise, make sure we add the order note so we can detect when someone fails to check out multiple times |
124 | - if ( ! $order->has_status( 'failed' ) ) { |
|
125 | - $order->update_status( 'failed', $order_note ); |
|
124 | + if ( ! $order->has_status('failed')) { |
|
125 | + $order->update_status('failed', $order_note); |
|
126 | 126 | } else { |
127 | - $order->add_order_note( $order_note ); |
|
127 | + $order->add_order_note($order_note); |
|
128 | 128 | } |
129 | 129 | } |
130 | 130 | } |
@@ -1,41 +1,41 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_eps_settings', |
|
6 | +return apply_filters('wc_stripe_eps_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Austria', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'activation' => array( |
13 | - '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' ), |
|
13 | + '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 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'enabled' => array( |
17 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
18 | - 'label' => __( 'Enable Stripe EPS', 'woocommerce-gateway-stripe' ), |
|
17 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
18 | + 'label' => __('Enable Stripe EPS', 'woocommerce-gateway-stripe'), |
|
19 | 19 | 'type' => 'checkbox', |
20 | 20 | 'description' => '', |
21 | 21 | 'default' => 'no', |
22 | 22 | ), |
23 | 23 | 'title' => array( |
24 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
24 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
25 | 25 | 'type' => 'text', |
26 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
27 | - 'default' => __( 'EPS', 'woocommerce-gateway-stripe' ), |
|
26 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
27 | + 'default' => __('EPS', 'woocommerce-gateway-stripe'), |
|
28 | 28 | 'desc_tip' => true, |
29 | 29 | ), |
30 | 30 | 'description' => array( |
31 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
31 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'type' => 'text', |
33 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
34 | - 'default' => __( 'You will be redirected to EPS.', 'woocommerce-gateway-stripe' ), |
|
33 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
34 | + 'default' => __('You will be redirected to EPS.', 'woocommerce-gateway-stripe'), |
|
35 | 35 | 'desc_tip' => true, |
36 | 36 | ), |
37 | 37 | 'webhook' => array( |
38 | - 'title' => __( 'Webhook Enpoints', 'woocommerce-gateway-stripe' ), |
|
38 | + 'title' => __('Webhook Enpoints', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'type' => 'title', |
40 | 40 | /* translators: webhook URL */ |
41 | 41 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,189 +1,189 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_settings', |
|
6 | +return apply_filters('wc_stripe_settings', |
|
7 | 7 | array( |
8 | 8 | 'enabled' => array( |
9 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
10 | - 'label' => __( 'Enable Stripe', 'woocommerce-gateway-stripe' ), |
|
9 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
10 | + 'label' => __('Enable Stripe', 'woocommerce-gateway-stripe'), |
|
11 | 11 | 'type' => 'checkbox', |
12 | 12 | 'description' => '', |
13 | 13 | 'default' => 'no', |
14 | 14 | ), |
15 | 15 | 'title' => array( |
16 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
16 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
17 | 17 | 'type' => 'text', |
18 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
19 | - 'default' => __( 'Credit Card (Stripe)', 'woocommerce-gateway-stripe' ), |
|
18 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
19 | + 'default' => __('Credit Card (Stripe)', 'woocommerce-gateway-stripe'), |
|
20 | 20 | 'desc_tip' => true, |
21 | 21 | ), |
22 | 22 | 'description' => array( |
23 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
23 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
24 | 24 | 'type' => 'text', |
25 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
26 | - 'default' => __( 'Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe' ), |
|
25 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
26 | + 'default' => __('Pay with your credit card via Stripe.', 'woocommerce-gateway-stripe'), |
|
27 | 27 | 'desc_tip' => true, |
28 | 28 | ), |
29 | 29 | 'webhook' => array( |
30 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
30 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
31 | 31 | 'type' => 'title', |
32 | 32 | /* translators: webhook URL */ |
33 | 33 | 'description' => $this->display_admin_settings_webhook_description(), |
34 | 34 | ), |
35 | 35 | 'testmode' => array( |
36 | - 'title' => __( 'Test mode', 'woocommerce-gateway-stripe' ), |
|
37 | - 'label' => __( 'Enable Test Mode', 'woocommerce-gateway-stripe' ), |
|
36 | + 'title' => __('Test mode', 'woocommerce-gateway-stripe'), |
|
37 | + 'label' => __('Enable Test Mode', 'woocommerce-gateway-stripe'), |
|
38 | 38 | 'type' => 'checkbox', |
39 | - 'description' => __( 'Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe' ), |
|
39 | + 'description' => __('Place the payment gateway in test mode using test API keys.', 'woocommerce-gateway-stripe'), |
|
40 | 40 | 'default' => 'yes', |
41 | 41 | 'desc_tip' => true, |
42 | 42 | ), |
43 | 43 | 'test_publishable_key' => array( |
44 | - 'title' => __( 'Test Publishable Key', 'woocommerce-gateway-stripe' ), |
|
44 | + 'title' => __('Test Publishable Key', 'woocommerce-gateway-stripe'), |
|
45 | 45 | 'type' => 'password', |
46 | - 'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ), |
|
46 | + 'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'), |
|
47 | 47 | 'default' => '', |
48 | 48 | 'desc_tip' => true, |
49 | 49 | ), |
50 | 50 | 'test_secret_key' => array( |
51 | - 'title' => __( 'Test Secret Key', 'woocommerce-gateway-stripe' ), |
|
51 | + 'title' => __('Test Secret Key', 'woocommerce-gateway-stripe'), |
|
52 | 52 | 'type' => 'password', |
53 | - 'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ), |
|
53 | + 'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'), |
|
54 | 54 | 'default' => '', |
55 | 55 | 'desc_tip' => true, |
56 | 56 | ), |
57 | 57 | 'publishable_key' => array( |
58 | - 'title' => __( 'Live Publishable Key', 'woocommerce-gateway-stripe' ), |
|
58 | + 'title' => __('Live Publishable Key', 'woocommerce-gateway-stripe'), |
|
59 | 59 | 'type' => 'password', |
60 | - 'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ), |
|
60 | + 'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'), |
|
61 | 61 | 'default' => '', |
62 | 62 | 'desc_tip' => true, |
63 | 63 | ), |
64 | 64 | 'secret_key' => array( |
65 | - 'title' => __( 'Live Secret Key', 'woocommerce-gateway-stripe' ), |
|
65 | + 'title' => __('Live Secret Key', 'woocommerce-gateway-stripe'), |
|
66 | 66 | 'type' => 'password', |
67 | - 'description' => __( 'Get your API keys from your stripe account.', 'woocommerce-gateway-stripe' ), |
|
67 | + 'description' => __('Get your API keys from your stripe account.', 'woocommerce-gateway-stripe'), |
|
68 | 68 | 'default' => '', |
69 | 69 | 'desc_tip' => true, |
70 | 70 | ), |
71 | 71 | 'inline_cc_form' => array( |
72 | - 'title' => __( 'Inline Credit Card Form', 'woocommerce-gateway-stripe' ), |
|
72 | + 'title' => __('Inline Credit Card Form', 'woocommerce-gateway-stripe'), |
|
73 | 73 | 'type' => 'checkbox', |
74 | - 'description' => __( 'Choose the style you want to show for your credit card form. When unchecked, the credit card form will display separate credit card number field, expiry date field and cvc field.', 'woocommerce-gateway-stripe' ), |
|
74 | + 'description' => __('Choose the style you want to show for your credit card form. When unchecked, the credit card form will display separate credit card number field, expiry date field and cvc field.', 'woocommerce-gateway-stripe'), |
|
75 | 75 | 'default' => 'no', |
76 | 76 | 'desc_tip' => true, |
77 | 77 | ), |
78 | 78 | 'statement_descriptor' => array( |
79 | - 'title' => __( 'Statement Descriptor', 'woocommerce-gateway-stripe' ), |
|
79 | + 'title' => __('Statement Descriptor', 'woocommerce-gateway-stripe'), |
|
80 | 80 | 'type' => 'text', |
81 | - 'description' => __( 'This may be up to 22 characters. The statement description must contain at least one letter, may not include ><"\' characters, and will appear on your customer\'s statement in capital letters.', 'woocommerce-gateway-stripe' ), |
|
81 | + 'description' => __('This may be up to 22 characters. The statement description must contain at least one letter, may not include ><"\' characters, and will appear on your customer\'s statement in capital letters.', 'woocommerce-gateway-stripe'), |
|
82 | 82 | 'default' => '', |
83 | 83 | 'desc_tip' => true, |
84 | 84 | ), |
85 | 85 | 'capture' => array( |
86 | - 'title' => __( 'Capture', 'woocommerce-gateway-stripe' ), |
|
87 | - 'label' => __( 'Capture charge immediately', 'woocommerce-gateway-stripe' ), |
|
86 | + 'title' => __('Capture', 'woocommerce-gateway-stripe'), |
|
87 | + 'label' => __('Capture charge immediately', 'woocommerce-gateway-stripe'), |
|
88 | 88 | 'type' => 'checkbox', |
89 | - 'description' => __( 'Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.', 'woocommerce-gateway-stripe' ), |
|
89 | + 'description' => __('Whether or not to immediately capture the charge. When unchecked, the charge issues an authorization and will need to be captured later. Uncaptured charges expire in 7 days.', 'woocommerce-gateway-stripe'), |
|
90 | 90 | 'default' => 'yes', |
91 | 91 | 'desc_tip' => true, |
92 | 92 | ), |
93 | 93 | 'three_d_secure' => array( |
94 | - 'title' => __( '3D Secure', 'woocommerce-gateway-stripe' ), |
|
95 | - 'label' => __( 'Require 3D Secure when applicable', 'woocommerce-gateway-stripe' ), |
|
94 | + 'title' => __('3D Secure', 'woocommerce-gateway-stripe'), |
|
95 | + 'label' => __('Require 3D Secure when applicable', 'woocommerce-gateway-stripe'), |
|
96 | 96 | 'type' => 'checkbox', |
97 | - 'description' => __( 'Some payment methods have 3D Secure feature. This is an extra security layer for your store. Choose how to handle payments when 3D Secure is recommended. Enabling would require customers to use 3D Secure when recommended.', 'woocommerce-gateway-stripe' ), |
|
97 | + 'description' => __('Some payment methods have 3D Secure feature. This is an extra security layer for your store. Choose how to handle payments when 3D Secure is recommended. Enabling would require customers to use 3D Secure when recommended.', 'woocommerce-gateway-stripe'), |
|
98 | 98 | 'default' => 'yes', |
99 | 99 | 'desc_tip' => true, |
100 | 100 | ), |
101 | 101 | 'stripe_checkout' => array( |
102 | - 'title' => __( 'Stripe Checkout', 'woocommerce-gateway-stripe' ), |
|
103 | - 'label' => __( 'Enable Stripe Checkout', 'woocommerce-gateway-stripe' ), |
|
102 | + 'title' => __('Stripe Checkout', 'woocommerce-gateway-stripe'), |
|
103 | + 'label' => __('Enable Stripe Checkout', 'woocommerce-gateway-stripe'), |
|
104 | 104 | 'type' => 'checkbox', |
105 | - 'description' => __( 'If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page.', 'woocommerce-gateway-stripe' ), |
|
105 | + 'description' => __('If enabled, this option shows a "pay" button and modal credit card form on the checkout, instead of credit card fields directly on the page.', 'woocommerce-gateway-stripe'), |
|
106 | 106 | 'default' => 'no', |
107 | 107 | 'desc_tip' => true, |
108 | 108 | ), |
109 | 109 | 'stripe_bitcoin' => array( |
110 | - 'title' => __( 'Bitcoin Currency', 'woocommerce-gateway-stripe' ), |
|
111 | - 'label' => __( 'Enable Bitcoin Currency', 'woocommerce-gateway-stripe' ), |
|
110 | + 'title' => __('Bitcoin Currency', 'woocommerce-gateway-stripe'), |
|
111 | + 'label' => __('Enable Bitcoin Currency', 'woocommerce-gateway-stripe'), |
|
112 | 112 | 'type' => 'checkbox', |
113 | - 'description' => __( 'If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.', 'woocommerce-gateway-stripe' ), |
|
113 | + 'description' => __('If enabled, an option to accept bitcoin will show on the checkout modal. Note: Stripe Checkout needs to be enabled and store currency must be set to USD.', 'woocommerce-gateway-stripe'), |
|
114 | 114 | 'default' => 'no', |
115 | 115 | 'desc_tip' => true, |
116 | 116 | ), |
117 | 117 | 'stripe_checkout_image' => array( |
118 | - 'title' => __( 'Stripe Checkout Image', 'woocommerce-gateway-stripe' ), |
|
119 | - 'description' => __( 'Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>', 'woocommerce-gateway-stripe' ), |
|
118 | + 'title' => __('Stripe Checkout Image', 'woocommerce-gateway-stripe'), |
|
119 | + 'description' => __('Optionally enter the URL to a 128x128px image of your brand or product. e.g. <code>https://yoursite.com/wp-content/uploads/2013/09/yourimage.jpg</code>', 'woocommerce-gateway-stripe'), |
|
120 | 120 | 'type' => 'text', |
121 | 121 | 'default' => '', |
122 | 122 | 'desc_tip' => true, |
123 | 123 | ), |
124 | 124 | 'stripe_checkout_description' => array( |
125 | - 'title' => __( 'Stripe Checkout Description', 'woocommerce-gateway-stripe' ), |
|
125 | + 'title' => __('Stripe Checkout Description', 'woocommerce-gateway-stripe'), |
|
126 | 126 | 'type' => 'text', |
127 | - 'description' => __( 'Shows a description of your store on Stripe Modal Checkout.', 'woocommerce-gateway-stripe' ), |
|
127 | + 'description' => __('Shows a description of your store on Stripe Modal Checkout.', 'woocommerce-gateway-stripe'), |
|
128 | 128 | 'default' => '', |
129 | 129 | 'desc_tip' => true, |
130 | 130 | ), |
131 | 131 | 'payment_request' => array( |
132 | - 'title' => __( 'Payment Request Buttons', 'woocommerce-gateway-stripe' ), |
|
132 | + 'title' => __('Payment Request Buttons', 'woocommerce-gateway-stripe'), |
|
133 | 133 | /* translators: 1) br tag 2) opening anchor tag 3) closing anchor tag */ |
134 | - 'label' => sprintf( __( 'Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service.', 'woocommerce-gateway-stripe' ), '<br />', '<a href="https://stripe.com/apple-pay/legal" target="_blank">Stripe</a>', '<a href="https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/" target="_blank">Apple</a>' ), |
|
134 | + 'label' => sprintf(__('Enable Payment Request Buttons. (Apple Pay/Chrome Payment Request API) %1$sBy using Apple Pay, you agree to %2$s and %3$s\'s terms of service.', 'woocommerce-gateway-stripe'), '<br />', '<a href="https://stripe.com/apple-pay/legal" target="_blank">Stripe</a>', '<a href="https://developer.apple.com/apple-pay/acceptable-use-guidelines-for-websites/" target="_blank">Apple</a>'), |
|
135 | 135 | 'type' => 'checkbox', |
136 | - 'description' => __( 'If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe' ), |
|
136 | + 'description' => __('If enabled, users will be able to pay using Apple Pay or Chrome Payment Request if supported by the browser.', 'woocommerce-gateway-stripe'), |
|
137 | 137 | 'default' => 'yes', |
138 | 138 | 'desc_tip' => true, |
139 | 139 | ), |
140 | 140 | 'payment_request_button_type' => array( |
141 | - 'title' => __( 'Payment Request Button Type', 'woocommerce-gateway-stripe' ), |
|
142 | - 'label' => __( 'Button Type', 'woocommerce-gateway-stripe' ), |
|
141 | + 'title' => __('Payment Request Button Type', 'woocommerce-gateway-stripe'), |
|
142 | + 'label' => __('Button Type', 'woocommerce-gateway-stripe'), |
|
143 | 143 | 'type' => 'select', |
144 | - 'description' => __( 'Select the button type you would like to show.', 'woocommerce-gateway-stripe' ), |
|
144 | + 'description' => __('Select the button type you would like to show.', 'woocommerce-gateway-stripe'), |
|
145 | 145 | 'default' => 'buy', |
146 | 146 | 'desc_tip' => true, |
147 | 147 | 'options' => array( |
148 | - 'default' => __( 'Default', 'woocommerce-gateway-stripe' ), |
|
149 | - 'buy' => __( 'Buy', 'woocommerce-gateway-stripe' ), |
|
150 | - 'donate' => __( 'Donate', 'woocommerce-gateway-stripe' ), |
|
148 | + 'default' => __('Default', 'woocommerce-gateway-stripe'), |
|
149 | + 'buy' => __('Buy', 'woocommerce-gateway-stripe'), |
|
150 | + 'donate' => __('Donate', 'woocommerce-gateway-stripe'), |
|
151 | 151 | ), |
152 | 152 | ), |
153 | 153 | 'payment_request_button_theme' => array( |
154 | - 'title' => __( 'Payment Request Button Theme', 'woocommerce-gateway-stripe' ), |
|
155 | - 'label' => __( 'Button Theme', 'woocommerce-gateway-stripe' ), |
|
154 | + 'title' => __('Payment Request Button Theme', 'woocommerce-gateway-stripe'), |
|
155 | + 'label' => __('Button Theme', 'woocommerce-gateway-stripe'), |
|
156 | 156 | 'type' => 'select', |
157 | - 'description' => __( 'Select the button theme you would like to show.', 'woocommerce-gateway-stripe' ), |
|
157 | + 'description' => __('Select the button theme you would like to show.', 'woocommerce-gateway-stripe'), |
|
158 | 158 | 'default' => 'dark', |
159 | 159 | 'desc_tip' => true, |
160 | 160 | 'options' => array( |
161 | - 'dark' => __( 'Dark', 'woocommerce-gateway-stripe' ), |
|
162 | - 'light' => __( 'Light', 'woocommerce-gateway-stripe' ), |
|
163 | - 'light-outline' => __( 'Light-Outline', 'woocommerce-gateway-stripe' ), |
|
161 | + 'dark' => __('Dark', 'woocommerce-gateway-stripe'), |
|
162 | + 'light' => __('Light', 'woocommerce-gateway-stripe'), |
|
163 | + 'light-outline' => __('Light-Outline', 'woocommerce-gateway-stripe'), |
|
164 | 164 | ), |
165 | 165 | ), |
166 | 166 | 'payment_request_button_height' => array( |
167 | - 'title' => __( 'Payment Request Button Height', 'woocommerce-gateway-stripe' ), |
|
168 | - 'label' => __( 'Button Height', 'woocommerce-gateway-stripe' ), |
|
167 | + 'title' => __('Payment Request Button Height', 'woocommerce-gateway-stripe'), |
|
168 | + 'label' => __('Button Height', 'woocommerce-gateway-stripe'), |
|
169 | 169 | 'type' => 'text', |
170 | - 'description' => __( 'Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe' ), |
|
170 | + 'description' => __('Enter the height you would like the button to be in pixels. Width will always be 100%.', 'woocommerce-gateway-stripe'), |
|
171 | 171 | 'default' => '44', |
172 | 172 | 'desc_tip' => true, |
173 | 173 | ), |
174 | 174 | 'saved_cards' => array( |
175 | - 'title' => __( 'Saved Cards', 'woocommerce-gateway-stripe' ), |
|
176 | - 'label' => __( 'Enable Payment via Saved Cards', 'woocommerce-gateway-stripe' ), |
|
175 | + 'title' => __('Saved Cards', 'woocommerce-gateway-stripe'), |
|
176 | + 'label' => __('Enable Payment via Saved Cards', 'woocommerce-gateway-stripe'), |
|
177 | 177 | 'type' => 'checkbox', |
178 | - 'description' => __( 'If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.', 'woocommerce-gateway-stripe' ), |
|
178 | + 'description' => __('If enabled, users will be able to pay with a saved card during checkout. Card details are saved on Stripe servers, not on your store.', 'woocommerce-gateway-stripe'), |
|
179 | 179 | 'default' => 'no', |
180 | 180 | 'desc_tip' => true, |
181 | 181 | ), |
182 | 182 | 'logging' => array( |
183 | - 'title' => __( 'Logging', 'woocommerce-gateway-stripe' ), |
|
184 | - 'label' => __( 'Log debug messages', 'woocommerce-gateway-stripe' ), |
|
183 | + 'title' => __('Logging', 'woocommerce-gateway-stripe'), |
|
184 | + 'label' => __('Log debug messages', 'woocommerce-gateway-stripe'), |
|
185 | 185 | 'type' => 'checkbox', |
186 | - 'description' => __( 'Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe' ), |
|
186 | + 'description' => __('Save debug messages to the WooCommerce System Status log.', 'woocommerce-gateway-stripe'), |
|
187 | 187 | 'default' => 'no', |
188 | 188 | 'desc_tip' => true, |
189 | 189 | ), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_ideal_settings', |
|
6 | +return apply_filters('wc_stripe_ideal_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'iDeal', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('iDeal', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_alipay_settings', |
|
6 | +return apply_filters('wc_stripe_alipay_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Alipay', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Alipay', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_bancontact_settings', |
|
6 | +return apply_filters('wc_stripe_bancontact_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Bancontact', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Bancontact', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,41 +1,41 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_p24_settings', |
|
6 | +return apply_filters('wc_stripe_p24_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'activation' => array( |
13 | - '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' ), |
|
13 | + '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 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'enabled' => array( |
17 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
18 | - 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
|
17 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
18 | + 'label' => __('Enable Stripe P24', 'woocommerce-gateway-stripe'), |
|
19 | 19 | 'type' => 'checkbox', |
20 | 20 | 'description' => '', |
21 | 21 | 'default' => 'no', |
22 | 22 | ), |
23 | 23 | 'title' => array( |
24 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
24 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
25 | 25 | 'type' => 'text', |
26 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
27 | - 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
|
26 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
27 | + 'default' => __('Przelewy24 (P24)', 'woocommerce-gateway-stripe'), |
|
28 | 28 | 'desc_tip' => true, |
29 | 29 | ), |
30 | 30 | 'description' => array( |
31 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
31 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'type' => 'text', |
33 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
34 | - 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
|
33 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
34 | + 'default' => __('You will be redirected to P24.', 'woocommerce-gateway-stripe'), |
|
35 | 35 | 'desc_tip' => true, |
36 | 36 | ), |
37 | 37 | 'webhook' => array( |
38 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
38 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'type' => 'title', |
40 | 40 | /* translators: webhook URL */ |
41 | 41 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,45 +1,45 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_giropay_settings', |
|
6 | +return apply_filters('wc_stripe_giropay_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'guide' => array( |
13 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
13 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
14 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'activation' => array( |
17 | - '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' ), |
|
17 | + '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 | 18 | 'type' => 'title', |
19 | 19 | ), |
20 | 20 | 'enabled' => array( |
21 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
22 | - 'label' => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ), |
|
21 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
22 | + 'label' => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'), |
|
23 | 23 | 'type' => 'checkbox', |
24 | 24 | 'description' => '', |
25 | 25 | 'default' => 'no', |
26 | 26 | ), |
27 | 27 | 'title' => array( |
28 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
28 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
29 | 29 | 'type' => 'text', |
30 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
31 | - 'default' => __( 'Giropay', 'woocommerce-gateway-stripe' ), |
|
30 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
31 | + 'default' => __('Giropay', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'desc_tip' => true, |
33 | 33 | ), |
34 | 34 | 'description' => array( |
35 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
35 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
36 | 36 | 'type' => 'text', |
37 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
38 | - 'default' => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ), |
|
37 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
38 | + 'default' => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'desc_tip' => true, |
40 | 40 | ), |
41 | 41 | 'webhook' => array( |
42 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
42 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
43 | 43 | 'type' => 'title', |
44 | 44 | /* translators: webhook URL */ |
45 | 45 | 'description' => $this->display_admin_settings_webhook_description(), |
@@ -1,41 +1,41 @@ |
||
1 | 1 | <?php |
2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
2 | +if ( ! defined('ABSPATH')) { |
|
3 | 3 | exit; |
4 | 4 | } |
5 | 5 | |
6 | -return apply_filters( 'wc_stripe_multibanco_settings', |
|
6 | +return apply_filters('wc_stripe_multibanco_settings', |
|
7 | 7 | array( |
8 | 8 | 'geo_target' => array( |
9 | - 'description' => __( 'Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe' ), |
|
9 | + 'description' => __('Relevant Payer Geography: Portugal', 'woocommerce-gateway-stripe'), |
|
10 | 10 | 'type' => 'title', |
11 | 11 | ), |
12 | 12 | 'activation' => array( |
13 | - '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' ), |
|
13 | + '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 | 14 | 'type' => 'title', |
15 | 15 | ), |
16 | 16 | 'enabled' => array( |
17 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
18 | - 'label' => __( 'Enable Stripe Multibanco', 'woocommerce-gateway-stripe' ), |
|
17 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
18 | + 'label' => __('Enable Stripe Multibanco', 'woocommerce-gateway-stripe'), |
|
19 | 19 | 'type' => 'checkbox', |
20 | 20 | 'description' => '', |
21 | 21 | 'default' => 'no', |
22 | 22 | ), |
23 | 23 | 'title' => array( |
24 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
24 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
25 | 25 | 'type' => 'text', |
26 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
27 | - 'default' => __( 'Multibanco', 'woocommerce-gateway-stripe' ), |
|
26 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
27 | + 'default' => __('Multibanco', 'woocommerce-gateway-stripe'), |
|
28 | 28 | 'desc_tip' => true, |
29 | 29 | ), |
30 | 30 | 'description' => array( |
31 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
31 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
32 | 32 | 'type' => 'text', |
33 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
34 | - 'default' => __( 'You will be redirected to Multibanco.', 'woocommerce-gateway-stripe' ), |
|
33 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
34 | + 'default' => __('You will be redirected to Multibanco.', 'woocommerce-gateway-stripe'), |
|
35 | 35 | 'desc_tip' => true, |
36 | 36 | ), |
37 | 37 | 'webhook' => array( |
38 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
38 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
39 | 39 | 'type' => 'title', |
40 | 40 | /* translators: webhook URL */ |
41 | 41 | 'description' => $this->display_admin_settings_webhook_description(), |