@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_ideal_settings', |
|
| 8 | +return apply_filters('wc_stripe_ideal_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: The Netherlands', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#ideal" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe iDeal', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe iDeal', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'iDeal', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('iDeal', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'You will be redirected to iDeal.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('You will be redirected to iDeal.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_sofort_settings', |
|
| 8 | +return apply_filters('wc_stripe_sofort_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: Germany, Austria', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sofort" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe SOFORT', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'SOFORT', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('SOFORT', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'You will be redirected to SOFORT.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('You will be redirected to SOFORT.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_giropay_settings', |
|
| 8 | +return apply_filters('wc_stripe_giropay_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: Germany', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#giropay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe Giropay', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe Giropay', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'Giropay', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('Giropay', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'You will be redirected to Giropay.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('You will be redirected to Giropay.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_sepa_settings', |
|
| 8 | +return apply_filters('wc_stripe_sepa_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: France, Germany, Spain, Belgium, Netherlands, Luxembourg, Italy, Portugal, Austria, Ireland', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#sepa-direct-debit" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'SEPA Direct Debit', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('SEPA Direct Debit', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'Mandate Information.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('Mandate Information.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_bancontact_settings', |
|
| 8 | +return apply_filters('wc_stripe_bancontact_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: Belgium', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#bancontact" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe Bancontact', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'Bancontact', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('Bancontact', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'You will be redirected to Bancontact.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('You will be redirected to Bancontact.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,50 +1,50 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_alipay_settings', |
|
| 8 | +return apply_filters('wc_stripe_alipay_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: China', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: China', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'guide' => array( |
| 15 | - 'description' => __( '<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe' ), |
|
| 15 | + 'description' => __('<a href="https://stripe.com/payments/payment-methods-guide#alipay" target="_blank">Payment Method Guide</a>', 'woocommerce-gateway-stripe'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'activation' => array( |
| 19 | - '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 | + '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'), |
|
| 20 | 20 | 'type' => 'title', |
| 21 | 21 | ), |
| 22 | 22 | 'enabled' => array( |
| 23 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 24 | - 'label' => __( 'Enable Stripe Alipay', 'woocommerce-gateway-stripe' ), |
|
| 23 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 24 | + 'label' => __('Enable Stripe Alipay', 'woocommerce-gateway-stripe'), |
|
| 25 | 25 | 'type' => 'checkbox', |
| 26 | 26 | 'description' => '', |
| 27 | 27 | 'default' => 'no', |
| 28 | 28 | ), |
| 29 | 29 | 'title' => array( |
| 30 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 30 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 31 | 31 | 'type' => 'text', |
| 32 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 33 | - 'default' => __( 'Alipay', 'woocommerce-gateway-stripe' ), |
|
| 32 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 33 | + 'default' => __('Alipay', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'desc_tip' => true, |
| 35 | 35 | ), |
| 36 | 36 | 'description' => array( |
| 37 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 37 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 38 | 38 | 'type' => 'text', |
| 39 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 40 | - 'default' => __( 'You will be redirected to Alipay.', 'woocommerce-gateway-stripe' ), |
|
| 39 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 40 | + 'default' => __('You will be redirected to Alipay.', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'desc_tip' => true, |
| 42 | 42 | ), |
| 43 | 43 | 'webhook' => array( |
| 44 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 44 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 45 | 45 | 'type' => 'title', |
| 46 | 46 | /* translators: webhook URL */ |
| 47 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 47 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 48 | 48 | ), |
| 49 | 49 | ) |
| 50 | 50 | ); |
@@ -1,46 +1,46 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) { |
|
| 2 | +if ( ! defined('ABSPATH')) { |
|
| 3 | 3 | exit; |
| 4 | 4 | } |
| 5 | 5 | |
| 6 | 6 | $webhook_url = WC_Stripe_Helper::get_webhook_url(); |
| 7 | 7 | |
| 8 | -return apply_filters( 'wc_stripe_p24_settings', |
|
| 8 | +return apply_filters('wc_stripe_p24_settings', |
|
| 9 | 9 | array( |
| 10 | 10 | 'geo_target' => array( |
| 11 | - 'description' => __( 'Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe' ), |
|
| 11 | + 'description' => __('Relevant Payer Geography: Poland', 'woocommerce-gateway-stripe'), |
|
| 12 | 12 | 'type' => 'title', |
| 13 | 13 | ), |
| 14 | 14 | 'activation' => array( |
| 15 | - '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 | + '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'), |
|
| 16 | 16 | 'type' => 'title', |
| 17 | 17 | ), |
| 18 | 18 | 'enabled' => array( |
| 19 | - 'title' => __( 'Enable/Disable', 'woocommerce-gateway-stripe' ), |
|
| 20 | - 'label' => __( 'Enable Stripe P24', 'woocommerce-gateway-stripe' ), |
|
| 19 | + 'title' => __('Enable/Disable', 'woocommerce-gateway-stripe'), |
|
| 20 | + 'label' => __('Enable Stripe P24', 'woocommerce-gateway-stripe'), |
|
| 21 | 21 | 'type' => 'checkbox', |
| 22 | 22 | 'description' => '', |
| 23 | 23 | 'default' => 'no', |
| 24 | 24 | ), |
| 25 | 25 | 'title' => array( |
| 26 | - 'title' => __( 'Title', 'woocommerce-gateway-stripe' ), |
|
| 26 | + 'title' => __('Title', 'woocommerce-gateway-stripe'), |
|
| 27 | 27 | 'type' => 'text', |
| 28 | - 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 29 | - 'default' => __( 'Przelewy24 (P24)', 'woocommerce-gateway-stripe' ), |
|
| 28 | + 'description' => __('This controls the title which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 29 | + 'default' => __('Przelewy24 (P24)', 'woocommerce-gateway-stripe'), |
|
| 30 | 30 | 'desc_tip' => true, |
| 31 | 31 | ), |
| 32 | 32 | 'description' => array( |
| 33 | - 'title' => __( 'Description', 'woocommerce-gateway-stripe' ), |
|
| 33 | + 'title' => __('Description', 'woocommerce-gateway-stripe'), |
|
| 34 | 34 | 'type' => 'text', |
| 35 | - 'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe' ), |
|
| 36 | - 'default' => __( 'You will be redirected to P24.', 'woocommerce-gateway-stripe' ), |
|
| 35 | + 'description' => __('This controls the description which the user sees during checkout.', 'woocommerce-gateway-stripe'), |
|
| 36 | + 'default' => __('You will be redirected to P24.', 'woocommerce-gateway-stripe'), |
|
| 37 | 37 | 'desc_tip' => true, |
| 38 | 38 | ), |
| 39 | 39 | 'webhook' => array( |
| 40 | - 'title' => __( 'Webhook Endpoints', 'woocommerce-gateway-stripe' ), |
|
| 40 | + 'title' => __('Webhook Endpoints', 'woocommerce-gateway-stripe'), |
|
| 41 | 41 | 'type' => 'title', |
| 42 | 42 | /* translators: webhook URL */ |
| 43 | - 'description' => sprintf( __( 'You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe' ), $webhook_url ), |
|
| 43 | + 'description' => sprintf(__('You must add the webhook endpoint <strong style="background-color:#ddd;"> %s </strong> to your Stripe Account Settings <a href="https://dashboard.stripe.com/account/webhooks" target="_blank">Here</a> so you can receive notifications on the charge statuses.', 'woocommerce-gateway-stripe'), $webhook_url), |
|
| 44 | 44 | ), |
| 45 | 45 | ) |
| 46 | 46 | ); |
@@ -2,12 +2,12 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | class WC_Stripe_Test extends WP_UnitTestCase { |
| 4 | 4 | public function test_constants_defined() { |
| 5 | - $this->assertTrue( defined( 'WC_STRIPE_VERSION' ) ); |
|
| 6 | - $this->assertTrue( defined( 'WC_STRIPE_MIN_PHP_VER' ) ); |
|
| 7 | - $this->assertTrue( defined( 'WC_STRIPE_MIN_WC_VER' ) ); |
|
| 8 | - $this->assertTrue( defined( 'WC_STRIPE_MAIN_FILE' ) ); |
|
| 9 | - $this->assertTrue( defined( 'WC_STRIPE_PLUGIN_URL' ) ); |
|
| 10 | - $this->assertTrue( defined( 'WC_STRIPE_PLUGIN_PATH' ) ); |
|
| 5 | + $this->assertTrue(defined('WC_STRIPE_VERSION')); |
|
| 6 | + $this->assertTrue(defined('WC_STRIPE_MIN_PHP_VER')); |
|
| 7 | + $this->assertTrue(defined('WC_STRIPE_MIN_WC_VER')); |
|
| 8 | + $this->assertTrue(defined('WC_STRIPE_MAIN_FILE')); |
|
| 9 | + $this->assertTrue(defined('WC_STRIPE_PLUGIN_URL')); |
|
| 10 | + $this->assertTrue(defined('WC_STRIPE_PLUGIN_PATH')); |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | * This test will see if we're indeed converting the price correctly. |
| 16 | 16 | */ |
| 17 | 17 | public function test_price_conversion_before_send_to_stripe() { |
| 18 | - $this->assertEquals( 10050, WC_Stripe_Helper::get_stripe_amount( 100.50, 'USD' ) ); |
|
| 19 | - $this->assertEquals( 10050, WC_Stripe_Helper::get_stripe_amount( 10050, 'JPY' ) ); |
|
| 20 | - $this->assertEquals( 100, WC_Stripe_Helper::get_stripe_amount( 100.50, 'JPY' ) ); |
|
| 21 | - $this->assertEquals( 10050, WC_Stripe_Helper::get_stripe_amount( 100.50 ) ); |
|
| 22 | - $this->assertInternalType( 'int', WC_Stripe_Helper::get_stripe_amount( 100.50, 'USD' ) ); |
|
| 18 | + $this->assertEquals(10050, WC_Stripe_Helper::get_stripe_amount(100.50, 'USD')); |
|
| 19 | + $this->assertEquals(10050, WC_Stripe_Helper::get_stripe_amount(10050, 'JPY')); |
|
| 20 | + $this->assertEquals(100, WC_Stripe_Helper::get_stripe_amount(100.50, 'JPY')); |
|
| 21 | + $this->assertEquals(10050, WC_Stripe_Helper::get_stripe_amount(100.50)); |
|
| 22 | + $this->assertInternalType('int', WC_Stripe_Helper::get_stripe_amount(100.50, 'USD')); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -33,37 +33,37 @@ discard block |
||
| 33 | 33 | $balance_fee1->net = 10000; |
| 34 | 34 | $balance_fee1->currency = 'USD'; |
| 35 | 35 | |
| 36 | - $this->assertEquals( 105.00, WC_Stripe_Helper::format_balance_fee( $balance_fee1, 'fee' ) ); |
|
| 36 | + $this->assertEquals(105.00, WC_Stripe_Helper::format_balance_fee($balance_fee1, 'fee')); |
|
| 37 | 37 | |
| 38 | 38 | $balance_fee2 = new stdClass(); |
| 39 | 39 | $balance_fee2->fee = 10500; |
| 40 | 40 | $balance_fee2->net = 10000; |
| 41 | 41 | $balance_fee2->currency = 'JPY'; |
| 42 | 42 | |
| 43 | - $this->assertEquals( 10500, WC_Stripe_Helper::format_balance_fee( $balance_fee2, 'fee' ) ); |
|
| 43 | + $this->assertEquals(10500, WC_Stripe_Helper::format_balance_fee($balance_fee2, 'fee')); |
|
| 44 | 44 | |
| 45 | 45 | $balance_fee3 = new stdClass(); |
| 46 | 46 | $balance_fee3->fee = 10500; |
| 47 | 47 | $balance_fee3->net = 10000; |
| 48 | 48 | $balance_fee3->currency = 'USD'; |
| 49 | 49 | |
| 50 | - $this->assertEquals( 100.00, WC_Stripe_Helper::format_balance_fee( $balance_fee3, 'net' ) ); |
|
| 50 | + $this->assertEquals(100.00, WC_Stripe_Helper::format_balance_fee($balance_fee3, 'net')); |
|
| 51 | 51 | |
| 52 | 52 | $balance_fee4 = new stdClass(); |
| 53 | 53 | $balance_fee4->fee = 10500; |
| 54 | 54 | $balance_fee4->net = 10000; |
| 55 | 55 | $balance_fee4->currency = 'JPY'; |
| 56 | 56 | |
| 57 | - $this->assertEquals( 10000, WC_Stripe_Helper::format_balance_fee( $balance_fee4, 'net' ) ); |
|
| 57 | + $this->assertEquals(10000, WC_Stripe_Helper::format_balance_fee($balance_fee4, 'net')); |
|
| 58 | 58 | |
| 59 | 59 | $balance_fee5 = new stdClass(); |
| 60 | 60 | $balance_fee5->fee = 10500; |
| 61 | 61 | $balance_fee5->net = 10000; |
| 62 | 62 | $balance_fee5->currency = 'USD'; |
| 63 | 63 | |
| 64 | - $this->assertEquals( 105.00, WC_Stripe_Helper::format_balance_fee( $balance_fee5 ) ); |
|
| 64 | + $this->assertEquals(105.00, WC_Stripe_Helper::format_balance_fee($balance_fee5)); |
|
| 65 | 65 | |
| 66 | - $this->assertInternalType( 'string', WC_Stripe_Helper::format_balance_fee( $balance_fee5 ) ); |
|
| 66 | + $this->assertInternalType('string', WC_Stripe_Helper::format_balance_fee($balance_fee5)); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -76,27 +76,27 @@ discard block |
||
| 76 | 76 | 'expected' => 'Tests Store', |
| 77 | 77 | ); |
| 78 | 78 | |
| 79 | - $this->assertEquals( $statement_descriptor1['expected'], WC_Stripe_Helper::clean_statement_descriptor( $statement_descriptor1['actual'] ) ); |
|
| 79 | + $this->assertEquals($statement_descriptor1['expected'], WC_Stripe_Helper::clean_statement_descriptor($statement_descriptor1['actual'])); |
|
| 80 | 80 | |
| 81 | 81 | $statement_descriptor2 = array( |
| 82 | 82 | 'actual' => 'Test\'s Store > Driving Course Range', |
| 83 | 83 | 'expected' => 'Tests Store Driving C', |
| 84 | 84 | ); |
| 85 | 85 | |
| 86 | - $this->assertEquals( $statement_descriptor2['expected'], WC_Stripe_Helper::clean_statement_descriptor( $statement_descriptor2['actual'] ) ); |
|
| 86 | + $this->assertEquals($statement_descriptor2['expected'], WC_Stripe_Helper::clean_statement_descriptor($statement_descriptor2['actual'])); |
|
| 87 | 87 | |
| 88 | 88 | $statement_descriptor3 = array( |
| 89 | 89 | 'actual' => 'Test\'s Store < Driving Course Range', |
| 90 | 90 | 'expected' => 'Tests Store Driving C', |
| 91 | 91 | ); |
| 92 | 92 | |
| 93 | - $this->assertEquals( $statement_descriptor3['expected'], WC_Stripe_Helper::clean_statement_descriptor( $statement_descriptor3['actual'] ) ); |
|
| 93 | + $this->assertEquals($statement_descriptor3['expected'], WC_Stripe_Helper::clean_statement_descriptor($statement_descriptor3['actual'])); |
|
| 94 | 94 | |
| 95 | 95 | $statement_descriptor4 = array( |
| 96 | 96 | 'actual' => 'Test\'s Store " Driving Course Range', |
| 97 | 97 | 'expected' => 'Tests Store Driving C', |
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | - $this->assertEquals( $statement_descriptor4['expected'], WC_Stripe_Helper::clean_statement_descriptor( $statement_descriptor4['actual'] ) ); |
|
| 100 | + $this->assertEquals($statement_descriptor4['expected'], WC_Stripe_Helper::clean_statement_descriptor($statement_descriptor4['actual'])); |
|
| 101 | 101 | } |
| 102 | 102 | } |
@@ -1,14 +1,14 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$_tests_dir = getenv( 'WP_TESTS_DIR' ); |
|
| 4 | -if ( ! $_tests_dir ) { |
|
| 3 | +$_tests_dir = getenv('WP_TESTS_DIR'); |
|
| 4 | +if ( ! $_tests_dir) { |
|
| 5 | 5 | $_tests_dir = '/tmp/wordpress-tests-lib'; |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | 8 | require_once $_tests_dir . '/includes/functions.php'; |
| 9 | 9 | |
| 10 | 10 | function _manually_load_plugin() { |
| 11 | - $plugin_dir = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/'; |
|
| 11 | + $plugin_dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/'; |
|
| 12 | 12 | require $plugin_dir . 'woocommerce-gateway-stripe/woocommerce-gateway-stripe.php'; |
| 13 | 13 | require $plugin_dir . 'woocommerce/woocommerce.php'; |
| 14 | 14 | } |
@@ -17,20 +17,20 @@ discard block |
||
| 17 | 17 | return true; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | -function woothemes_queue_update( $file, $file_id, $product_id ) { |
|
| 20 | +function woothemes_queue_update($file, $file_id, $product_id) { |
|
| 21 | 21 | return true; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | -tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); |
|
| 24 | +tests_add_filter('muplugins_loaded', '_manually_load_plugin'); |
|
| 25 | 25 | |
| 26 | 26 | require $_tests_dir . '/includes/bootstrap.php'; |
| 27 | 27 | |
| 28 | -$wc_tests_framework_base_dir = dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/woocommerce/tests/framework/'; |
|
| 29 | -require_once( $wc_tests_framework_base_dir . 'class-wc-mock-session-handler.php' ); |
|
| 30 | -require_once( $wc_tests_framework_base_dir . 'class-wc-unit-test-case.php' ); |
|
| 31 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-product.php' ); |
|
| 32 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-coupon.php' ); |
|
| 33 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-fee.php' ); |
|
| 34 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-shipping.php' ); |
|
| 35 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-customer.php' ); |
|
| 36 | -require_once( $wc_tests_framework_base_dir . 'helpers/class-wc-helper-order.php' ); |
|
| 28 | +$wc_tests_framework_base_dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/woocommerce/tests/framework/'; |
|
| 29 | +require_once($wc_tests_framework_base_dir . 'class-wc-mock-session-handler.php'); |
|
| 30 | +require_once($wc_tests_framework_base_dir . 'class-wc-unit-test-case.php'); |
|
| 31 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-product.php'); |
|
| 32 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-coupon.php'); |
|
| 33 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-fee.php'); |
|
| 34 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-shipping.php'); |
|
| 35 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-customer.php'); |
|
| 36 | +require_once($wc_tests_framework_base_dir . 'helpers/class-wc-helper-order.php'); |
|