mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
fix translation slug
This commit is contained in:
parent
8fef1ec612
commit
7536efbe3a
11 changed files with 4746 additions and 87 deletions
4658
modules.local/ppcp-button/yarn.lock
Normal file
4658
modules.local/ppcp-button/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
|
@ -125,23 +125,23 @@ return [
|
||||||
);
|
);
|
||||||
return [
|
return [
|
||||||
'ppcp_onboarding' => [
|
'ppcp_onboarding' => [
|
||||||
'title' => __('Connect to PayPal', 'woocommerce-paypal-gateway'),
|
'title' => __('Connect to PayPal', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'ppcp_onboarding',
|
'type' => 'ppcp_onboarding',
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'sandbox_on' => [
|
'sandbox_on' => [
|
||||||
'title' => __('Sandbox', 'woocommerce-paypal-gateway'),
|
'title' => __('Sandbox', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('To test your Woocommerce installation, you can use the sandbox mode.', 'woocommerce-paypal-gateway'),
|
'label' => __('To test your Woocommerce installation, you can use the sandbox mode.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 0,
|
'default' => 0,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_START,
|
State::STATE_START,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'sandbox_on_info' => [
|
'sandbox_on_info' => [
|
||||||
'title' => __('Sandbox', 'woocommerce-paypal-gateway'),
|
'title' => __('Sandbox', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'ppcp-text',
|
'type' => 'ppcp-text',
|
||||||
'text' => $sandboxText,
|
'text' => $sandboxText,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
|
@ -151,17 +151,17 @@ return [
|
||||||
'hidden' => 'sandbox_on',
|
'hidden' => 'sandbox_on',
|
||||||
],
|
],
|
||||||
'merchant_email' => [
|
'merchant_email' => [
|
||||||
'title' => __('Email address', 'woocommerce-paypal-gateway'),
|
'title' => __('Email address', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __('The email address of your PayPal account.', 'woocommerce-paypal-gateway'),
|
'description' => __('The email address of your PayPal account.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_START,
|
State::STATE_START,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'merchant_email_info' => [
|
'merchant_email_info' => [
|
||||||
'title' => __('Email address', 'woocommerce-paypal-gateway'),
|
'title' => __('Email address', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'ppcp-text',
|
'type' => 'ppcp-text',
|
||||||
'text' => $merchantEmailText,
|
'text' => $merchantEmailText,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
|
@ -171,13 +171,13 @@ return [
|
||||||
'hidden' => 'merchant_email',
|
'hidden' => 'merchant_email',
|
||||||
],
|
],
|
||||||
'title' => [
|
'title' => [
|
||||||
'title' => __('Title', 'woocommerce-paypal-gateway'),
|
'title' => __('Title', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'This controls the title which the user sees during checkout.',
|
'This controls the title which the user sees during checkout.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'default' => __('PayPal', 'woocommerce-paypal-gateway'),
|
'default' => __('PayPal', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -185,16 +185,16 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'description' => [
|
'description' => [
|
||||||
'title' => __('Description', 'woocommerce-paypal-gateway'),
|
'title' => __('Description', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'This controls the description which the user sees during checkout.',
|
'This controls the description which the user sees during checkout.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'default' => __(
|
'default' => __(
|
||||||
'Pay via PayPal; you can pay with your credit card if you don\'t have a PayPal account.',
|
'Pay via PayPal; you can pay with your credit card if you don\'t have a PayPal account.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -202,27 +202,27 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'intent' => [
|
'intent' => [
|
||||||
'title' => __('Intent', 'woocommerce-paypal-gateway'),
|
'title' => __('Intent', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'class' => ['wc-enhanced-select'],
|
'class' => ['wc-enhanced-select'],
|
||||||
'default' => 'capture',
|
'default' => 'capture',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'The intent to either capture payment immediately or authorize a payment for an order after order creation.',
|
'The intent to either capture payment immediately or authorize a payment for an order after order creation.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'options' => [
|
'options' => [
|
||||||
'capture' => __('Capture', 'woocommerce-paypal-gateway'),
|
'capture' => __('Capture', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'authorize' => __('Authorize', 'woocommerce-paypal-gateway'),
|
'authorize' => __('Authorize', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'button_single_product_enabled' => [
|
'button_single_product_enabled' => [
|
||||||
'title' => __('Buttons on Single Product', 'woocommerce-paypal-gateway'),
|
'title' => __('Buttons on Single Product', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Enable on Single Product', 'woocommerce-paypal-gateway'),
|
'label' => __('Enable on Single Product', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -230,9 +230,9 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'button_mini_cart_enabled' => [
|
'button_mini_cart_enabled' => [
|
||||||
'title' => __('Buttons on Mini Cart', 'woocommerce-paypal-gateway'),
|
'title' => __('Buttons on Mini Cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Enable on Mini Cart', 'woocommerce-paypal-gateway'),
|
'label' => __('Enable on Mini Cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -240,9 +240,9 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'button_cart_enabled' => [
|
'button_cart_enabled' => [
|
||||||
'title' => __('Buttons on Cart', 'woocommerce-paypal-gateway'),
|
'title' => __('Buttons on Cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Enable on Cart', 'woocommerce-paypal-gateway'),
|
'label' => __('Enable on Cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -250,20 +250,20 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'button_color' => [
|
'button_color' => [
|
||||||
'title' => __('Color', 'woocommerce-paypal-gateway'),
|
'title' => __('Color', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'class' => ['wc-enhanced-select'],
|
'class' => ['wc-enhanced-select'],
|
||||||
'default' => 'gold',
|
'default' => 'gold',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'Controls the background color of the primary button. Use "Gold" to leverage PayPal\'s recognition and preference, or change it to match your site design or aesthetic.',
|
'Controls the background color of the primary button. Use "Gold" to leverage PayPal\'s recognition and preference, or change it to match your site design or aesthetic.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'options' => [
|
'options' => [
|
||||||
'gold' => __('Gold (Recommended)', 'woocommerce-paypal-gateway'),
|
'gold' => __('Gold (Recommended)', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'blue' => __('Blue', 'woocommerce-paypal-gateway'),
|
'blue' => __('Blue', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'silver' => __('Silver', 'woocommerce-paypal-gateway'),
|
'silver' => __('Silver', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'black' => __('Black', 'woocommerce-paypal-gateway'),
|
'black' => __('Black', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -271,18 +271,18 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'button_shape' => [
|
'button_shape' => [
|
||||||
'title' => __('Shape', 'woocommerce-paypal-gateway'),
|
'title' => __('Shape', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'class' => ['wc-enhanced-select'],
|
'class' => ['wc-enhanced-select'],
|
||||||
'default' => 'rect',
|
'default' => 'rect',
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'The pill-shaped button\'s unique and powerful shape signifies PayPal in people\'s minds. Use the rectangular button as an alternative when pill-shaped buttons might pose design challenges.',
|
'The pill-shaped button\'s unique and powerful shape signifies PayPal in people\'s minds. Use the rectangular button as an alternative when pill-shaped buttons might pose design challenges.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'options' => [
|
'options' => [
|
||||||
'pill' => __('Pill', 'woocommerce-paypal-gateway'),
|
'pill' => __('Pill', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'rect' => __('Rectangle', 'woocommerce-paypal-gateway'),
|
'rect' => __('Rectangle', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -290,27 +290,27 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'disable_funding' => [
|
'disable_funding' => [
|
||||||
'title' => __('Disable funding sources', 'woocommerce-paypal-gateway'),
|
'title' => __('Disable funding sources', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'ppcp-multiselect',
|
'type' => 'ppcp-multiselect',
|
||||||
'class' => ['wc-enhanced-select'],
|
'class' => ['wc-enhanced-select'],
|
||||||
'default' => [],
|
'default' => [],
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'By default all possible funding sources will be shown. You can disable some sources, if you wish.',
|
'By default all possible funding sources will be shown. You can disable some sources, if you wish.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'options' => [
|
'options' => [
|
||||||
'card' => _x('Credit or debit cards', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'card' => _x('Credit or debit cards', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'credit' => _x('PayPal Credit', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'credit' => _x('PayPal Credit', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'venmo' => _x('Venmo', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'venmo' => _x('Venmo', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'sepa' => _x('SEPA-Lastschrift', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'sepa' => _x('SEPA-Lastschrift', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'bancontact' => _x('Bancontact', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'bancontact' => _x('Bancontact', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'eps' => _x('eps', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'eps' => _x('eps', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'giropay' => _x('giropay', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'giropay' => _x('giropay', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'ideal' => _x('iDEAL', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'ideal' => _x('iDEAL', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'mybank' => _x('MyBank', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'mybank' => _x('MyBank', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'p24' => _x('Przelewy24', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'p24' => _x('Przelewy24', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'sofort' => _x('Sofort', 'Name of payment method', 'woocommerce-paypal-gateway'),
|
'sofort' => _x('Sofort', 'Name of payment method', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_PROGRESSIVE,
|
State::STATE_PROGRESSIVE,
|
||||||
|
@ -318,59 +318,59 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'dcc_cart_enabled' => [
|
'dcc_cart_enabled' => [
|
||||||
'title' => __('Enable credit card on cart', 'woocommerce-paypal-gateway'),
|
'title' => __('Enable credit card on cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Allow your customers to pay with credit card directly in your cart.', 'woocommerce-paypal-gateway'),
|
'label' => __('Allow your customers to pay with credit card directly in your cart.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'dcc_mini_cart_enabled' => [
|
'dcc_mini_cart_enabled' => [
|
||||||
'title' => __('Enable credit card on mini cart', 'woocommerce-paypal-gateway'),
|
'title' => __('Enable credit card on mini cart', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Allow your customers to pay with credit card directly in your mini cart.', 'woocommerce-paypal-gateway'),
|
'label' => __('Allow your customers to pay with credit card directly in your mini cart.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'dcc_checkout_enabled' => [
|
'dcc_checkout_enabled' => [
|
||||||
'title' => __('Enable credit card on checkout', 'woocommerce-paypal-gateway'),
|
'title' => __('Enable credit card on checkout', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Allow your customers to pay with credit card in the checkout.', 'woocommerce-paypal-gateway'),
|
'label' => __('Allow your customers to pay with credit card in the checkout.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'dcc_single_product_enabled' => [
|
'dcc_single_product_enabled' => [
|
||||||
'title' => __('Enable credit card on products', 'woocommerce-paypal-gateway'),
|
'title' => __('Enable credit card on products', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Allow your customers to pay with credit card instantly on the product page.', 'woocommerce-paypal-gateway'),
|
'label' => __('Allow your customers to pay with credit card instantly on the product page.', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 1,
|
'default' => 1,
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'disable_cards' => [
|
'disable_cards' => [
|
||||||
'title' => __('Disable specific credid cards', 'woocommerce-paypal-gateway'),
|
'title' => __('Disable specific credid cards', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'ppcp-multiselect',
|
'type' => 'ppcp-multiselect',
|
||||||
'class' => ['wc-enhanced-select'],
|
'class' => ['wc-enhanced-select'],
|
||||||
'default' => [],
|
'default' => [],
|
||||||
'desc_tip' => true,
|
'desc_tip' => true,
|
||||||
'description' => __(
|
'description' => __(
|
||||||
'By default all possible credit cards will be shown. You can disable some cards, if you wish.',
|
'By default all possible credit cards will be shown. You can disable some cards, if you wish.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'options' => [
|
'options' => [
|
||||||
'visa' => _x('Visa', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'visa' => _x('Visa', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'mastercard' => _x('Mastercard', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'mastercard' => _x('Mastercard', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'amex' => _x('American Express', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'amex' => _x('American Express', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'discover' => _x('Discover', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'discover' => _x('Discover', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'jcb' => _x('JCB', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'jcb' => _x('JCB', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'elo' => _x('Elo', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'elo' => _x('Elo', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'hiper' => _x('Hiper', 'Name of credit card', 'woocommerce-paypal-gateway'),
|
'hiper' => _x('Hiper', 'Name of credit card', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
'screens' => [
|
'screens' => [
|
||||||
State::STATE_ONBOARDED,
|
State::STATE_ONBOARDED,
|
||||||
|
|
|
@ -31,7 +31,7 @@ class OrderTablePaymentStatusColumn
|
||||||
$columns = array_merge(
|
$columns = array_merge(
|
||||||
array_slice($columns, 0, $toInsertPosition),
|
array_slice($columns, 0, $toInsertPosition),
|
||||||
[
|
[
|
||||||
self::COLUMN_KEY => __('Payment Captured', 'woocommerce-paypal-gateway'),
|
self::COLUMN_KEY => __('Payment Captured', 'woocommerce-paypal-commerce-gateway'),
|
||||||
],
|
],
|
||||||
array_slice($columns, $toInsertPosition)
|
array_slice($columns, $toInsertPosition)
|
||||||
);
|
);
|
||||||
|
@ -86,7 +86,7 @@ class OrderTablePaymentStatusColumn
|
||||||
{
|
{
|
||||||
printf(
|
printf(
|
||||||
'<mark class="onbackorder">%s</mark>',
|
'<mark class="onbackorder">%s</mark>',
|
||||||
esc_html__('Not captured', 'woocommerce-paypal-gateway')
|
esc_html__('Not captured', 'woocommerce-paypal-commerce-gateway')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,11 +27,11 @@ class PaymentStatusOrderDetail
|
||||||
'<li class="wide"><p><mark class="order-status status-on-hold"><span>%1$s</span></mark></p><p>%2$s</p></li>',
|
'<li class="wide"><p><mark class="order-status status-on-hold"><span>%1$s</span></mark></p><p>%2$s</p></li>',
|
||||||
esc_html__(
|
esc_html__(
|
||||||
'Not captured',
|
'Not captured',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
esc_html__(
|
esc_html__(
|
||||||
'To capture the payment select capture action from the list below.',
|
'To capture the payment select capture action from the list below.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,10 +50,10 @@ class WcGateway extends \WC_Payment_Gateway
|
||||||
$this->settingsRenderer = $settingsRenderer;
|
$this->settingsRenderer = $settingsRenderer;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-gateway');
|
$this->method_title = __('PayPal Payments', 'woocommerce-paypal-commerce-gateway');
|
||||||
$this->method_description = __(
|
$this->method_description = __(
|
||||||
'Provide your customers with the PayPal payment system',
|
'Provide your customers with the PayPal payment system',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
);
|
);
|
||||||
$this->title = $this->config->has('title') ?
|
$this->title = $this->config->has('title') ?
|
||||||
$this->config->get('title') : $this->method_title;
|
$this->config->get('title') : $this->method_title;
|
||||||
|
@ -80,9 +80,9 @@ class WcGateway extends \WC_Payment_Gateway
|
||||||
{
|
{
|
||||||
$this->form_fields = [
|
$this->form_fields = [
|
||||||
'enabled' => [
|
'enabled' => [
|
||||||
'title' => __('Enable/Disable', 'woocommerce-paypal-gateway'),
|
'title' => __('Enable/Disable', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'label' => __('Enable PayPal Payments', 'woocommerce-paypal-gateway'),
|
'label' => __('Enable PayPal Payments', 'woocommerce-paypal-commerce-gateway'),
|
||||||
'default' => 'yes',
|
'default' => 'yes',
|
||||||
],
|
],
|
||||||
'ppcp' => [
|
'ppcp' => [
|
||||||
|
@ -117,7 +117,7 @@ class WcGateway extends \WC_Payment_Gateway
|
||||||
|
|
||||||
if ($isProcessed) {
|
if ($isProcessed) {
|
||||||
$wcOrder->add_order_note(
|
$wcOrder->add_order_note(
|
||||||
__('Payment successfully captured.', 'woocommerce-paypal-gateway')
|
__('Payment successfully captured.', 'woocommerce-paypal-commerce-gateway')
|
||||||
);
|
);
|
||||||
|
|
||||||
$wcOrder->set_status('processing');
|
$wcOrder->set_status('processing');
|
||||||
|
@ -129,7 +129,7 @@ class WcGateway extends \WC_Payment_Gateway
|
||||||
if ($this->authorizedPayments->lastStatus() === AuthorizedPaymentsProcessor::ALREADY_CAPTURED) {
|
if ($this->authorizedPayments->lastStatus() === AuthorizedPaymentsProcessor::ALREADY_CAPTURED) {
|
||||||
if ($wcOrder->get_status() === 'on-hold') {
|
if ($wcOrder->get_status() === 'on-hold') {
|
||||||
$wcOrder->add_order_note(
|
$wcOrder->add_order_note(
|
||||||
__('Payment successfully captured.', 'woocommerce-paypal-gateway')
|
__('Payment successfully captured.', 'woocommerce-paypal-commerce-gateway')
|
||||||
);
|
);
|
||||||
$wcOrder->set_status('processing');
|
$wcOrder->set_status('processing');
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,35 +32,35 @@ class AuthorizeOrderActionNotice
|
||||||
$messages[self::NO_INFO] = [
|
$messages[self::NO_INFO] = [
|
||||||
'message' => __(
|
'message' => __(
|
||||||
'Could not retrieve information. Try again later.',
|
'Could not retrieve information. Try again later.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'type' => 'error',
|
'type' => 'error',
|
||||||
];
|
];
|
||||||
$messages[self::ALREADY_CAPTURED] = [
|
$messages[self::ALREADY_CAPTURED] = [
|
||||||
'message' => __(
|
'message' => __(
|
||||||
'Payment already captured.',
|
'Payment already captured.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'type' => 'error',
|
'type' => 'error',
|
||||||
];
|
];
|
||||||
$messages[self::FAILED] = [
|
$messages[self::FAILED] = [
|
||||||
'message' => __(
|
'message' => __(
|
||||||
'Failed to capture. Try again later.',
|
'Failed to capture. Try again later.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'type' => 'error',
|
'type' => 'error',
|
||||||
];
|
];
|
||||||
$messages[self::NOT_FOUND] = [
|
$messages[self::NOT_FOUND] = [
|
||||||
'message' => __(
|
'message' => __(
|
||||||
'Could not find payment to process.',
|
'Could not find payment to process.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'type' => 'error',
|
'type' => 'error',
|
||||||
];
|
];
|
||||||
$messages[self::SUCCESS] = [
|
$messages[self::SUCCESS] = [
|
||||||
'message' => __(
|
'message' => __(
|
||||||
'Payment successfully captured.',
|
'Payment successfully captured.',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
),
|
),
|
||||||
'type' => 'success',
|
'type' => 'success',
|
||||||
];
|
];
|
||||||
|
|
|
@ -46,12 +46,12 @@ class OrderProcessor
|
||||||
|
|
||||||
$errorMessage = null;
|
$errorMessage = null;
|
||||||
if (!$order || !$order->status()->is(OrderStatus::APPROVED)) {
|
if (!$order || !$order->status()->is(OrderStatus::APPROVED)) {
|
||||||
$errorMessage = __('The payment has not been approved yet.', 'woocommerce-paypal-gateway');
|
$errorMessage = __('The payment has not been approved yet.', 'woocommerce-paypal-commerce-gateway');
|
||||||
}
|
}
|
||||||
if ($errorMessage) {
|
if ($errorMessage) {
|
||||||
$this->lastError = sprintf(
|
$this->lastError = sprintf(
|
||||||
// translators: %s is the message of the error.
|
// translators: %s is the message of the error.
|
||||||
__('Payment error: %s', 'woocommerce-paypal-gateway'),
|
__('Payment error: %s', 'woocommerce-paypal-commerce-gateway'),
|
||||||
$errorMessage
|
$errorMessage
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
@ -67,9 +67,9 @@ class OrderProcessor
|
||||||
$wcOrder->update_meta_data(WcGateway::CAPTURED_META_KEY, 'false');
|
$wcOrder->update_meta_data(WcGateway::CAPTURED_META_KEY, 'false');
|
||||||
}
|
}
|
||||||
|
|
||||||
$wcOrder->update_status('on-hold', __('Awaiting payment.', 'woocommerce-paypal-gateway'));
|
$wcOrder->update_status('on-hold', __('Awaiting payment.', 'woocommerce-paypal-commerce-gateway'));
|
||||||
if ($order->status()->is(OrderStatus::COMPLETED) && $order->intent() === 'CAPTURE') {
|
if ($order->status()->is(OrderStatus::COMPLETED) && $order->intent() === 'CAPTURE') {
|
||||||
$wcOrder->update_status('processing', __('Payment received.', 'woocommerce-paypal-gateway'));
|
$wcOrder->update_status('processing', __('Payment received.', 'woocommerce-paypal-commerce-gateway'));
|
||||||
}
|
}
|
||||||
$woocommerce->cart->empty_cart();
|
$woocommerce->cart->empty_cart();
|
||||||
$this->sessionHandler->destroySessionData();
|
$this->sessionHandler->destroySessionData();
|
||||||
|
|
|
@ -69,6 +69,7 @@ class Settings implements ContainerInterface
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->settings = get_option(self::KEY, []);
|
$this->settings = get_option(self::KEY, []);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ class WcGatewayModule implements ModuleInterface
|
||||||
static function ($orderActions): array {
|
static function ($orderActions): array {
|
||||||
$orderActions['ppcp_authorize_order'] = __(
|
$orderActions['ppcp_authorize_order'] = __(
|
||||||
'Capture authorized PayPal payment',
|
'Capture authorized PayPal payment',
|
||||||
'woocommerce-paypal-gateway'
|
'woocommerce-paypal-commerce-gateway'
|
||||||
);
|
);
|
||||||
return $orderActions;
|
return $orderActions;
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,11 +88,11 @@ class CheckoutOrderCompleted implements RequestHandler
|
||||||
*/
|
*/
|
||||||
$wcOrder->update_status(
|
$wcOrder->update_status(
|
||||||
'processing',
|
'processing',
|
||||||
__('Payment received.', 'woocommerce-paypal-gateway')
|
__('Payment received.', 'woocommerce-paypal-commerce-gateway')
|
||||||
);
|
);
|
||||||
$this->logger->log(
|
$this->logger->log(
|
||||||
'info',
|
'info',
|
||||||
__('Order ' . $wcOrder->get_id() . ' has been updated through PayPal' , 'woocommerce-paypal-gateway'),
|
__('Order ' . $wcOrder->get_id() . ' has been updated through PayPal' , 'woocommerce-paypal-commerce-gateway'),
|
||||||
[
|
[
|
||||||
'request' => $request,
|
'request' => $request,
|
||||||
'order' => $wcOrder,
|
'order' => $wcOrder,
|
||||||
|
|
|
@ -74,7 +74,7 @@ class PaymentCaptureRefunded implements RequestHandler
|
||||||
|
|
||||||
$this->logger->log(
|
$this->logger->log(
|
||||||
'warning',
|
'warning',
|
||||||
__('Order ' . $wcOrder->get_id() . ' could not be refunded' , 'woocommerce-paypal-gateway'),
|
__('Order ' . $wcOrder->get_id() . ' could not be refunded' , 'woocommerce-paypal-commerce-gateway'),
|
||||||
[
|
[
|
||||||
'request' => $request,
|
'request' => $request,
|
||||||
'error' => $refund,
|
'error' => $refund,
|
||||||
|
@ -89,7 +89,7 @@ class PaymentCaptureRefunded implements RequestHandler
|
||||||
'info',
|
'info',
|
||||||
sprintf(
|
sprintf(
|
||||||
//translators: %1$s is the order id %2$s is the amount which has been refunded.
|
//translators: %1$s is the order id %2$s is the amount which has been refunded.
|
||||||
__('Order %1$s has been refunded with %2$s through PayPal' , 'woocommerce-paypal-gateway'),
|
__('Order %1$s has been refunded with %2$s through PayPal' , 'woocommerce-paypal-commerce-gateway'),
|
||||||
(string) $wcOrder->get_id(),
|
(string) $wcOrder->get_id(),
|
||||||
(string) $refund->get_amount()
|
(string) $refund->get_amount()
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue