Version Description
- 2020-10-06 =
- New - Add support for PayPal Credit messaging. PR#810
- Fix - Hide the "Pay Later" funding method when "PayPal Credit" is disabled. PR#811
- Fix - Display correct image size in the PayPal Checkout window. PR#779
Download this release
Release Info
Developer | woothemes |
Plugin | WooCommerce PayPal Express Checkout Payment Gateway |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.1.0
- assets/js/wc-gateway-ppec-settings.js +67 -0
- assets/js/wc-gateway-ppec-smart-payment-buttons.js +27 -3
- changelog.txt +5 -0
- includes/abstracts/abstract-wc-gateway-ppec.php +6 -1
- includes/class-wc-gateway-ppec-cart-handler.php +94 -21
- includes/class-wc-gateway-ppec-client.php +2 -2
- includes/class-wc-gateway-ppec-plugin.php +16 -1
- includes/settings/settings-ppec.php +108 -0
- languages/woocommerce-gateway-paypal-express-checkout.pot +209 -75
- readme.txt +9 -4
- woocommerce-gateway-paypal-express-checkout.php +3 -3
assets/js/wc-gateway-ppec-settings.js
CHANGED
@@ -240,6 +240,71 @@
|
|
240 |
} );
|
241 |
}
|
242 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
$( '.woocommerce_ppec_paypal_button_layout' ).change( function( event ) {
|
244 |
if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
|
245 |
return;
|
@@ -314,6 +379,7 @@
|
|
314 |
// Show all settings in section.
|
315 |
$( '#woocommerce_ppec_paypal_single_product_settings_toggle, .woocommerce_ppec_paypal_single_product' ).closest( 'tr' ).show();
|
316 |
$( '#woocommerce_ppec_paypal_single_product_button_layout' ).change();
|
|
|
317 |
}
|
318 |
showHideDefaultButtonSettings();
|
319 |
} ).change();
|
@@ -334,6 +400,7 @@
|
|
334 |
// Show all settings in section.
|
335 |
$( '#woocommerce_ppec_paypal_mark_settings_toggle, .woocommerce_ppec_paypal_mark' ).closest( 'tr' ).show();
|
336 |
$( '#woocommerce_ppec_paypal_mark_button_layout' ).change();
|
|
|
337 |
}
|
338 |
showHideDefaultButtonSettings();
|
339 |
} ).change();
|
240 |
} );
|
241 |
}
|
242 |
|
243 |
+
// Handle Credit settings.
|
244 |
+
var creditSettings = {
|
245 |
+
init: function() {
|
246 |
+
var refreshOnChange = [ 'button_layout', 'hide_funding_methods[]', 'credit_enabled', 'credit_message_enabled', 'credit_message_layout', 'credit_message_logo' ];
|
247 |
+
var selector = $.map( refreshOnChange, function( val ) { return '[name^="woocommerce_ppec_paypal_"][name$="' + val + '"]'; } ).join( ', ' );
|
248 |
+
|
249 |
+
$( selector ).change( this.refreshUI );
|
250 |
+
|
251 |
+
// Trigger this to configure initial state for cart settings.
|
252 |
+
$( '#woocommerce_ppec_paypal_credit_enabled' ).change();
|
253 |
+
$( '#woocommerce_ppec_paypal_hide_funding_methods' ).change();
|
254 |
+
},
|
255 |
+
|
256 |
+
refreshUI: function( event ) {
|
257 |
+
var $contextSettings = $( event.target ).closest( 'table' );
|
258 |
+
var $creditSettings = $contextSettings.find( '[name*="credit_"]' );
|
259 |
+
var $creditToggle = $creditSettings.filter( '[name$="credit_enabled"]' );
|
260 |
+
var $messageToggle = $creditSettings.filter( '[name$="credit_message_enabled"]' );
|
261 |
+
var $messageSettings = $creditSettings.filter( '[name*="credit_message"]' );
|
262 |
+
var $messageLayout = $creditSettings.filter( '[name$="credit_message_layout"]' );
|
263 |
+
var $messageLogo = $creditSettings.filter( '[name$="credit_message_logo"]' );
|
264 |
+
var creditEnabled = false;
|
265 |
+
|
266 |
+
if ( 'horizontal' === $contextSettings.find( '[name$="button_layout"]' ).val() ) {
|
267 |
+
creditEnabled = $creditToggle.is( ':checked' ) && ! $creditToggle.is(':disabled');
|
268 |
+
} else {
|
269 |
+
creditEnabled = ( -1 === $.inArray( 'CREDIT', $contextSettings.find( '[name$="hide_funding_methods[]"]' ).val() ) );
|
270 |
+
}
|
271 |
+
|
272 |
+
// Hide Credit settings if Credit is not enabled.
|
273 |
+
if ( ! creditEnabled ) {
|
274 |
+
$creditSettings.not( $creditToggle ).closest( 'tr' ).hide();
|
275 |
+
return;
|
276 |
+
}
|
277 |
+
|
278 |
+
// Show the Credit message toggle.
|
279 |
+
$messageToggle.closest( 'tr' ).show();
|
280 |
+
|
281 |
+
// Hide messaging related settings if Credit message is not enabled.
|
282 |
+
if ( ! $messageToggle.is( ':checked' ) ) {
|
283 |
+
$messageSettings.not( $messageToggle ).closest( 'tr' ).hide();
|
284 |
+
return;
|
285 |
+
}
|
286 |
+
|
287 |
+
// Display layout setting.
|
288 |
+
$messageLayout.closest( 'tr' ).show();
|
289 |
+
|
290 |
+
// Display layout specific settings.
|
291 |
+
switch ( $messageLayout.val() ) {
|
292 |
+
case 'flex':
|
293 |
+
$messageSettings.not( $messageToggle ).not( $messageLayout ).not( '[name*="_flex_"]' ).closest( 'tr' ).hide();
|
294 |
+
$messageSettings.filter( '[name*="_flex_"]' ).closest( 'tr' ).show();
|
295 |
+
break;
|
296 |
+
case 'text':
|
297 |
+
default:
|
298 |
+
$messageSettings.filter( '[name*="_flex_"] ').closest( 'tr' ).hide();
|
299 |
+
$messageLogo.closest( 'tr' ).show();
|
300 |
+
$messageSettings.filter( '[name$="logo_position"]' ).closest( 'tr' ).toggle( 'primary' === $messageLogo.val() || 'alternative' === $messageLogo.val() );
|
301 |
+
$messageSettings.filter( '[name$="text_color"]' ).closest( 'tr' ).show();
|
302 |
+
break;
|
303 |
+
}
|
304 |
+
}
|
305 |
+
};
|
306 |
+
creditSettings.init();
|
307 |
+
|
308 |
$( '.woocommerce_ppec_paypal_button_layout' ).change( function( event ) {
|
309 |
if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
|
310 |
return;
|
379 |
// Show all settings in section.
|
380 |
$( '#woocommerce_ppec_paypal_single_product_settings_toggle, .woocommerce_ppec_paypal_single_product' ).closest( 'tr' ).show();
|
381 |
$( '#woocommerce_ppec_paypal_single_product_button_layout' ).change();
|
382 |
+
$( '#woocommerce_ppec_paypal_single_product_credit_enabled' ).change();
|
383 |
}
|
384 |
showHideDefaultButtonSettings();
|
385 |
} ).change();
|
400 |
// Show all settings in section.
|
401 |
$( '#woocommerce_ppec_paypal_mark_settings_toggle, .woocommerce_ppec_paypal_mark' ).closest( 'tr' ).show();
|
402 |
$( '#woocommerce_ppec_paypal_mark_button_layout' ).change();
|
403 |
+
$( '#woocommerce_ppec_paypal_mark_credit_enabled' ).change();
|
404 |
}
|
405 |
showHideDefaultButtonSettings();
|
406 |
} ).change();
|
assets/js/wc-gateway-ppec-smart-payment-buttons.js
CHANGED
@@ -45,15 +45,35 @@
|
|
45 |
}
|
46 |
|
47 |
var paypal_funding_methods = [];
|
48 |
-
|
49 |
-
|
|
|
50 |
if ( method ) {
|
51 |
paypal_funding_methods.push( method );
|
52 |
}
|
53 |
-
}
|
|
|
54 |
return paypal_funding_methods;
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
var render = function( isMiniCart ) {
|
58 |
var prefix = isMiniCart ? 'mini_cart_' : '';
|
59 |
var button_size = wc_ppec_context[ prefix + 'button_size' ];
|
@@ -192,6 +212,10 @@
|
|
192 |
};
|
193 |
|
194 |
if ( ! wc_ppec_context.use_checkout_js ) {
|
|
|
|
|
|
|
|
|
195 |
// 'payment()' and 'onAuthorize()' callbacks from checkout.js are now 'createOrder()' and 'onApprove()'.
|
196 |
Object.defineProperty( button_args, 'createOrder', Object.getOwnPropertyDescriptor( button_args, 'payment' ) );
|
197 |
Object.defineProperty( button_args, 'onApprove', Object.getOwnPropertyDescriptor( button_args, 'onAuthorize' ) );
|
45 |
}
|
46 |
|
47 |
var paypal_funding_methods = [];
|
48 |
+
|
49 |
+
$.each( methods, function( index, method_name ) {
|
50 |
+
var method = paypal.FUNDING[ method_name.toUpperCase() ];
|
51 |
if ( method ) {
|
52 |
paypal_funding_methods.push( method );
|
53 |
}
|
54 |
+
} );
|
55 |
+
|
56 |
return paypal_funding_methods;
|
57 |
}
|
58 |
|
59 |
+
var renderCreditMessaging = function( buttonSelector ) {
|
60 |
+
if ( 'undefined' === typeof wc_ppec_context.credit_messaging || ! wc_ppec_context.credit_messaging || 'undefined' === typeof paypal.Messages ) {
|
61 |
+
return;
|
62 |
+
}
|
63 |
+
|
64 |
+
if ( 'undefined' != typeof paypal.isFundingEligible && ! paypal.isFundingEligible( paypal.FUNDING.CREDIT ) && ! paypal.isFundingEligible( paypal.FUNDING.PAYLATER ) ) {
|
65 |
+
return;
|
66 |
+
}
|
67 |
+
|
68 |
+
if ( 0 === $( buttonSelector ).length ) {
|
69 |
+
return;
|
70 |
+
}
|
71 |
+
|
72 |
+
// Add an element for messaging.
|
73 |
+
var messagingWrapper = $( '<div id="woo-ppec-credit-messaging"></div>' ).prependTo( buttonSelector ).get( 0 );
|
74 |
+
paypal.Messages( wc_ppec_context.credit_messaging ).render( messagingWrapper );
|
75 |
+
}
|
76 |
+
|
77 |
var render = function( isMiniCart ) {
|
78 |
var prefix = isMiniCart ? 'mini_cart_' : '';
|
79 |
var button_size = wc_ppec_context[ prefix + 'button_size' ];
|
212 |
};
|
213 |
|
214 |
if ( ! wc_ppec_context.use_checkout_js ) {
|
215 |
+
if ( ! isMiniCart ) {
|
216 |
+
renderCreditMessaging( selector );
|
217 |
+
}
|
218 |
+
|
219 |
// 'payment()' and 'onAuthorize()' callbacks from checkout.js are now 'createOrder()' and 'onApprove()'.
|
220 |
Object.defineProperty( button_args, 'createOrder', Object.getOwnPropertyDescriptor( button_args, 'payment' ) );
|
221 |
Object.defineProperty( button_args, 'onApprove', Object.getOwnPropertyDescriptor( button_args, 'onAuthorize' ) );
|
changelog.txt
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
*** Changelog ***
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
= 2.0.3 - 2020-07-01 =
|
4 |
* Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764
|
5 |
* Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765
|
1 |
*** Changelog ***
|
2 |
|
3 |
+
= 2.1.0 - 2020-10-06 =
|
4 |
+
* New - Add support for PayPal Credit messaging. PR#810
|
5 |
+
* Fix - Hide the "Pay Later" funding method when "PayPal Credit" is disabled. PR#811
|
6 |
+
* Fix - Display correct image size in the PayPal Checkout window. PR#779
|
7 |
+
|
8 |
= 2.0.3 - 2020-07-01 =
|
9 |
* Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764
|
10 |
* Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765
|
includes/abstracts/abstract-wc-gateway-ppec.php
CHANGED
@@ -72,6 +72,11 @@ abstract class WC_Gateway_PPEC extends WC_Payment_Gateway {
|
|
72 |
}
|
73 |
|
74 |
add_filter( 'woocommerce_ajax_get_endpoint', array( $this, 'pass_return_args_to_ajax' ), 10, 2 );
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
76 |
|
77 |
/**
|
@@ -576,7 +581,7 @@ abstract class WC_Gateway_PPEC extends WC_Payment_Gateway {
|
|
576 |
<div class="image-preview-wrapper">
|
577 |
<?php
|
578 |
if ( ! $value_is_url ) {
|
579 |
-
echo wp_get_attachment_image( $value, '
|
580 |
} else {
|
581 |
// Translators: placeholder is an image's URL.
|
582 |
echo sprintf( esc_html__( 'Already using URL as image: %s', 'woocommerce-gateway-paypal-express-checkout' ), esc_attr( $value ) );
|
72 |
}
|
73 |
|
74 |
add_filter( 'woocommerce_ajax_get_endpoint', array( $this, 'pass_return_args_to_ajax' ), 10, 2 );
|
75 |
+
|
76 |
+
if ( function_exists( 'add_image_size' ) ) {
|
77 |
+
add_image_size( 'ppec_logo_image_size', 190, 60 );
|
78 |
+
add_image_size( 'ppec_header_image_size', 750, 90 );
|
79 |
+
}
|
80 |
}
|
81 |
|
82 |
/**
|
581 |
<div class="image-preview-wrapper">
|
582 |
<?php
|
583 |
if ( ! $value_is_url ) {
|
584 |
+
echo wp_get_attachment_image( $value, 'logo_image_url' === $key ? 'ppec_logo_image_size' : 'ppec_header_image_size' );
|
585 |
} else {
|
586 |
// Translators: placeholder is an image's URL.
|
587 |
echo sprintf( esc_html__( 'Already using URL as image: %s', 'woocommerce-gateway-paypal-express-checkout' ), esc_attr( $value ) );
|
includes/class-wc-gateway-ppec-cart-handler.php
CHANGED
@@ -44,6 +44,9 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
44 |
if ( class_exists( 'WC_Subscriptions_Order' ) ) {
|
45 |
add_filter( 'woocommerce_paypal_express_checkout_payment_button_data', array( $this, 'hide_card_payment_buttons_for_subscriptions' ), 10, 2 );
|
46 |
}
|
|
|
|
|
|
|
47 |
}
|
48 |
|
49 |
/**
|
@@ -438,11 +441,9 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
438 |
protected function get_button_settings( $settings, $context = '' ) {
|
439 |
$prefix = $context ? $context . '_' : $context;
|
440 |
$data = array(
|
441 |
-
'button_layout'
|
442 |
-
'button_size'
|
443 |
-
'button_label'
|
444 |
-
'hide_funding_methods' => $settings->{ $prefix . 'hide_funding_methods' },
|
445 |
-
'credit_enabled' => $settings->{ $prefix . 'credit_enabled' },
|
446 |
);
|
447 |
|
448 |
$button_layout = $data['button_layout'];
|
@@ -450,22 +451,86 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
450 |
? 'medium'
|
451 |
: $data['button_size'];
|
452 |
|
453 |
-
|
454 |
-
|
455 |
-
if ( ! is_array( $data['hide_funding_methods'] ) ) {
|
456 |
-
$data['hide_funding_methods'] = array( 'CREDIT' );
|
457 |
-
} elseif ( ! in_array( 'CREDIT', $data['hide_funding_methods'], true ) ) {
|
458 |
-
$data['hide_funding_methods'][] = 'CREDIT';
|
459 |
-
}
|
460 |
-
}
|
461 |
|
462 |
-
if ( '
|
463 |
-
$data['
|
|
|
464 |
} else {
|
465 |
-
$
|
466 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
467 |
}
|
468 |
-
unset( $data['hide_funding_methods'], $data['credit_enabled'] );
|
469 |
|
470 |
return $data;
|
471 |
}
|
@@ -548,11 +613,15 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
548 |
'merchant-id' => $client->get_payer_id(),
|
549 |
'intent' => 'authorization' === $settings->get_paymentaction() ? 'authorize' : 'capture',
|
550 |
'locale' => $settings->get_paypal_locale(),
|
551 |
-
'components' => 'buttons,funding-eligibility',
|
552 |
'commit' => 'checkout' === $page ? 'true' : 'false',
|
553 |
'currency' => get_woocommerce_currency(),
|
554 |
);
|
555 |
|
|
|
|
|
|
|
|
|
556 |
$script_args = apply_filters( 'woocommerce_paypal_express_checkout_sdk_script_args', $script_args, $settings, $client );
|
557 |
|
558 |
wp_register_script( 'paypal-checkout-sdk', add_query_arg( $script_args, 'https://www.paypal.com/sdk/js' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
|
@@ -576,7 +645,7 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
576 |
}
|
577 |
|
578 |
/**
|
579 |
-
* Adds the data-namespace
|
580 |
*
|
581 |
* @since 2.0.1
|
582 |
* @param string $tag
|
@@ -584,7 +653,11 @@ class WC_Gateway_PPEC_Cart_Handler {
|
|
584 |
* @return string
|
585 |
*/
|
586 |
public function add_paypal_sdk_namespace_attribute( $tag, $handle ) {
|
587 |
-
|
|
|
|
|
|
|
|
|
588 |
}
|
589 |
|
590 |
/**
|
44 |
if ( class_exists( 'WC_Subscriptions_Order' ) ) {
|
45 |
add_filter( 'woocommerce_paypal_express_checkout_payment_button_data', array( $this, 'hide_card_payment_buttons_for_subscriptions' ), 10, 2 );
|
46 |
}
|
47 |
+
|
48 |
+
// Credit messaging.
|
49 |
+
add_filter( 'woocommerce_paypal_express_checkout_payment_button_data', array( $this, 'inject_credit_messaging_configuration' ), 10, 2 );
|
50 |
}
|
51 |
|
52 |
/**
|
441 |
protected function get_button_settings( $settings, $context = '' ) {
|
442 |
$prefix = $context ? $context . '_' : $context;
|
443 |
$data = array(
|
444 |
+
'button_layout' => $settings->{ $prefix . 'button_layout' },
|
445 |
+
'button_size' => $settings->{ $prefix . 'button_size' },
|
446 |
+
'button_label' => $settings->{ $prefix . 'button_label' },
|
|
|
|
|
447 |
);
|
448 |
|
449 |
$button_layout = $data['button_layout'];
|
451 |
? 'medium'
|
452 |
: $data['button_size'];
|
453 |
|
454 |
+
// PayPal Credit.
|
455 |
+
$credit_supported = wc_gateway_ppec_is_credit_supported();
|
|
|
|
|
|
|
|
|
|
|
|
|
456 |
|
457 |
+
if ( 'horizontal' === $button_layout ) {
|
458 |
+
$data['allowed_methods'] = ( $credit_supported && 'yes' === $settings->{ $prefix . 'credit_enabled' } ) ? array( 'PAYLATER' ) : array();
|
459 |
+
$data['disallowed_methods'] = ( ! $credit_supported || 'yes' !== $settings->{ $prefix . 'credit_enabled' } ) ? array( 'CREDIT', 'PAYLATER' ) : array();
|
460 |
} else {
|
461 |
+
$hide_funding_methods = $settings->{ $prefix . 'hide_funding_methods' };
|
462 |
+
$hide_funding_methods = is_array( $hide_funding_methods ) ? $hide_funding_methods : array();
|
463 |
+
|
464 |
+
$data['disallowed_methods'] = array_values(
|
465 |
+
array_unique(
|
466 |
+
array_merge(
|
467 |
+
$hide_funding_methods,
|
468 |
+
( ! $credit_supported || in_array( 'CREDIT', $hide_funding_methods, true ) ) ? array( 'CREDIT', 'PAYLATER' ) : array()
|
469 |
+
)
|
470 |
+
)
|
471 |
+
);
|
472 |
+
}
|
473 |
+
|
474 |
+
return $data;
|
475 |
+
}
|
476 |
+
|
477 |
+
/**
|
478 |
+
* Adds PayPal Credit Message context to `wc_ppec_context` for consumption by frontend scripts.
|
479 |
+
*
|
480 |
+
* @since 2.1
|
481 |
+
* @param array $data
|
482 |
+
* @param string $page
|
483 |
+
* @return array
|
484 |
+
*/
|
485 |
+
public function inject_credit_messaging_configuration( $data, $page = '' ) {
|
486 |
+
$context = ( 'product' === $page ) ? 'single_product_' : ( 'checkout' === $page ? 'mark_' : '' );
|
487 |
+
$context = ( $context && 'yes' === wc_gateway_ppec()->settings->{ $context . 'settings_toggle' } ) ? $context : '';
|
488 |
+
|
489 |
+
$show_credit_messaging = in_array( $page, array( 'product', 'cart', 'checkout' ), true );
|
490 |
+
$show_credit_messaging = $show_credit_messaging && ( 'no' !== wc_gateway_ppec()->settings->{ $context . 'credit_message_enabled' } );
|
491 |
+
|
492 |
+
// Credit messaging is disabled when Credit is not supported/enabled.
|
493 |
+
$show_credit_messaging = $show_credit_messaging && wc_gateway_ppec_is_credit_supported();
|
494 |
+
$show_credit_messaging = $show_credit_messaging && ( empty( $data['disallowed_methods'] ) || ( ! in_array( 'CREDIT', $data['disallowed_methods'], true ) && ! in_array( 'PAYLATER', $data['disallowed_methods'], true ) ) );
|
495 |
+
|
496 |
+
if ( $show_credit_messaging ) {
|
497 |
+
$style = wp_parse_args(
|
498 |
+
array(
|
499 |
+
'layout' => wc_gateway_ppec()->settings->{ $context . 'credit_message_layout' },
|
500 |
+
'logo' => wc_gateway_ppec()->settings->{ $context . 'credit_message_logo' },
|
501 |
+
'logo_position' => wc_gateway_ppec()->settings->{ $context . 'credit_message_logo_position' },
|
502 |
+
'text_color' => wc_gateway_ppec()->settings->{ $context . 'credit_message_text_color' },
|
503 |
+
'flex_color' => wc_gateway_ppec()->settings->{ $context . 'credit_message_flex_color' },
|
504 |
+
'flex_ratio' => wc_gateway_ppec()->settings->{ $context . 'credit_message_flex_ratio' },
|
505 |
+
),
|
506 |
+
array(
|
507 |
+
'layout' => 'text',
|
508 |
+
'logo' => 'primary',
|
509 |
+
'logo_position' => 'left',
|
510 |
+
'text_color' => 'black',
|
511 |
+
'flex_color' => 'black',
|
512 |
+
'flex_ratio' => '1x1',
|
513 |
+
)
|
514 |
+
);
|
515 |
+
|
516 |
+
$data['credit_messaging'] = array(
|
517 |
+
'style' => array(
|
518 |
+
'layout' => $style['layout'],
|
519 |
+
'logo' => array(
|
520 |
+
'type' => $style['logo'],
|
521 |
+
'position' => $style['logo_position'],
|
522 |
+
),
|
523 |
+
'text' => array(
|
524 |
+
'color' => $style['text_color'],
|
525 |
+
),
|
526 |
+
'color' => $style['flex_color'],
|
527 |
+
'ratio' => $style['flex_ratio'],
|
528 |
+
),
|
529 |
+
'placement' => ( 'checkout' === $page ) ? 'payment' : $page,
|
530 |
+
// If Subscriptions is installed, we should not pass the 'amount' value.
|
531 |
+
'amount' => class_exists( 'WC_Subscriptions' ) ? '' : ( ( 'product' === $page ) ? wc_get_price_including_tax( wc_get_product() ) : WC()->cart->get_total( 'raw' ) ),
|
532 |
+
);
|
533 |
}
|
|
|
534 |
|
535 |
return $data;
|
536 |
}
|
613 |
'merchant-id' => $client->get_payer_id(),
|
614 |
'intent' => 'authorization' === $settings->get_paymentaction() ? 'authorize' : 'capture',
|
615 |
'locale' => $settings->get_paypal_locale(),
|
616 |
+
'components' => 'buttons,funding-eligibility,messages',
|
617 |
'commit' => 'checkout' === $page ? 'true' : 'false',
|
618 |
'currency' => get_woocommerce_currency(),
|
619 |
);
|
620 |
|
621 |
+
if ( ( 'product' === $page && class_exists( 'WC_Subscriptions_Product' ) && WC_Subscriptions_Product::is_subscription( $GLOBALS['post']->ID ) ) || ( 'product' !== $page && wc_gateway_ppec()->checkout->needs_billing_agreement_creation( array() ) ) ) {
|
622 |
+
$script_args['vault'] = 'true';
|
623 |
+
}
|
624 |
+
|
625 |
$script_args = apply_filters( 'woocommerce_paypal_express_checkout_sdk_script_args', $script_args, $settings, $client );
|
626 |
|
627 |
wp_register_script( 'paypal-checkout-sdk', add_query_arg( $script_args, 'https://www.paypal.com/sdk/js' ), array(), null, true ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
|
645 |
}
|
646 |
|
647 |
/**
|
648 |
+
* Adds the data-namespace and data-partner-attribution-id attributes when enqueuing the PayPal SDK script.
|
649 |
*
|
650 |
* @since 2.0.1
|
651 |
* @param string $tag
|
653 |
* @return string
|
654 |
*/
|
655 |
public function add_paypal_sdk_namespace_attribute( $tag, $handle ) {
|
656 |
+
if ( 'paypal-checkout-sdk' === $handle ) {
|
657 |
+
$tag = str_replace( ' src=', ' data-namespace="paypal_sdk" data-partner-attribution-id="WooThemes_EC" src=', $tag );
|
658 |
+
}
|
659 |
+
|
660 |
+
return $tag;
|
661 |
}
|
662 |
|
663 |
/**
|
includes/class-wc-gateway-ppec-client.php
CHANGED
@@ -252,8 +252,8 @@ class WC_Gateway_PPEC_Client {
|
|
252 |
$params = array();
|
253 |
$logo_url_or_id = $settings->logo_image_url;
|
254 |
$header_url_or_id = $settings->header_image_url;
|
255 |
-
$params['LOGOIMG'] = filter_var( $logo_url_or_id, FILTER_VALIDATE_URL ) ? $logo_url_or_id : wp_get_attachment_image_url( $logo_url_or_id, '
|
256 |
-
$params['HDRIMG'] = filter_var( $header_url_or_id, FILTER_VALIDATE_URL ) ? $header_url_or_id : wp_get_attachment_image_url( $header_url_or_id, '
|
257 |
$params['PAGESTYLE'] = $settings->page_style;
|
258 |
$params['BRANDNAME'] = $settings->get_brand_name();
|
259 |
$params['RETURNURL'] = $this->_get_return_url( $args );
|
252 |
$params = array();
|
253 |
$logo_url_or_id = $settings->logo_image_url;
|
254 |
$header_url_or_id = $settings->header_image_url;
|
255 |
+
$params['LOGOIMG'] = filter_var( $logo_url_or_id, FILTER_VALIDATE_URL ) ? $logo_url_or_id : wp_get_attachment_image_url( $logo_url_or_id, 'ppec_logo_image_size' );
|
256 |
+
$params['HDRIMG'] = filter_var( $header_url_or_id, FILTER_VALIDATE_URL ) ? $header_url_or_id : wp_get_attachment_image_url( $header_url_or_id, 'ppec_header_image_size' );
|
257 |
$params['PAGESTYLE'] = $settings->page_style;
|
258 |
$params['BRANDNAME'] = $settings->get_brand_name();
|
259 |
$params['RETURNURL'] = $this->_get_return_url( $args );
|
includes/class-wc-gateway-ppec-plugin.php
CHANGED
@@ -128,12 +128,27 @@ class WC_Gateway_PPEC_Plugin {
|
|
128 |
delete_option( 'pp_woo_enabled' );
|
129 |
}
|
130 |
|
|
|
|
|
131 |
// Check the the WC version on plugin update to determine if we need to display a warning.
|
132 |
// The option was added in 1.6.19 so we only need to check stores updating from before that version. Updating from 1.6.19 or greater would already have it set.
|
133 |
-
if ( version_compare(
|
134 |
update_option( 'wc_ppec_display_wc_3_0_warning', 'true' );
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
update_option( 'wc_ppec_version', $new_version );
|
138 |
}
|
139 |
|
128 |
delete_option( 'pp_woo_enabled' );
|
129 |
}
|
130 |
|
131 |
+
$previous_version = get_option( 'wc_ppec_version' );
|
132 |
+
|
133 |
// Check the the WC version on plugin update to determine if we need to display a warning.
|
134 |
// The option was added in 1.6.19 so we only need to check stores updating from before that version. Updating from 1.6.19 or greater would already have it set.
|
135 |
+
if ( version_compare( $previous_version, '1.6.19', '<' ) && version_compare( WC_VERSION, '3.0', '<' ) ) {
|
136 |
update_option( 'wc_ppec_display_wc_3_0_warning', 'true' );
|
137 |
}
|
138 |
|
139 |
+
// Credit messaging is disabled by default for merchants upgrading from < 2.1.
|
140 |
+
if ( $previous_version && version_compare( $previous_version, '2.1.0', '<' ) ) {
|
141 |
+
$settings = get_option( 'woocommerce_ppec_paypal_settings', array() );
|
142 |
+
|
143 |
+
if ( is_array( $settings ) ) {
|
144 |
+
$settings['credit_message_enabled'] = 'no';
|
145 |
+
$settings['single_product_credit_message_enabled'] = 'no';
|
146 |
+
$settings['mark_credit_message_enabled'] = 'no';
|
147 |
+
|
148 |
+
update_option( 'woocommerce_ppec_paypal_settings', $settings );
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
update_option( 'wc_ppec_version', $new_version );
|
153 |
}
|
154 |
|
includes/settings/settings-ppec.php
CHANGED
@@ -450,8 +450,111 @@ $per_context_settings = array(
|
|
450 |
'desc_tip' => true,
|
451 |
'description' => $credit_enabled_description,
|
452 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
453 |
);
|
454 |
|
|
|
455 |
/**
|
456 |
* Cart / global button settings.
|
457 |
*/
|
@@ -489,6 +592,11 @@ $settings['mini_cart_settings_toggle'] = array(
|
|
489 |
'description' => __( 'Optionally override global button settings above and configure buttons for this context.', 'woocommerce-gateway-paypal-express-checkout' ),
|
490 |
);
|
491 |
foreach ( $per_context_settings as $key => $value ) {
|
|
|
|
|
|
|
|
|
|
|
492 |
$value['class'] .= ' woocommerce_ppec_paypal_mini_cart';
|
493 |
$settings[ 'mini_cart_' . $key ] = $value;
|
494 |
}
|
450 |
'desc_tip' => true,
|
451 |
'description' => $credit_enabled_description,
|
452 |
),
|
453 |
+
|
454 |
+
'credit_message_enabled' => array(
|
455 |
+
'title' => 'Enable PayPal Credit messages',
|
456 |
+
'type' => 'checkbox',
|
457 |
+
'class' => '',
|
458 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
459 |
+
'default' => 'yes',
|
460 |
+
'label' => __( 'Enable PayPal Credit messages', 'woocommerce-gateway-paypal-express-checkout' ),
|
461 |
+
'desc_tip' => true,
|
462 |
+
'description' => __( 'Display credit messages on your website to promote special financing offers, which help increase sales.', 'woocommerce-gateway-paypal-express-checkout' ),
|
463 |
+
),
|
464 |
+
'credit_message_layout' => array(
|
465 |
+
'title' => __( 'Credit Messaging Layout', 'woocommerce-gateway-paypal-express-checkout' ),
|
466 |
+
'type' => 'select',
|
467 |
+
'class' => 'wc-enhanced-select',
|
468 |
+
'default' => 'text',
|
469 |
+
'options' => array(
|
470 |
+
'text' => __( 'Text', 'woocommerce-gateway-paypal-express-checkout' ),
|
471 |
+
'flex' => __( 'Graphic', 'woocommerce-gateway-paypal-express-checkout' ),
|
472 |
+
),
|
473 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
474 |
+
'desc_tip' => true,
|
475 |
+
'description' => __( 'The layout of the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
476 |
+
),
|
477 |
+
'credit_message_logo' => array(
|
478 |
+
'title' => __( 'Credit Messaging logo', 'woocommerce-gateway-paypal-express-checkout' ),
|
479 |
+
'type' => 'select',
|
480 |
+
'class' => 'wc-enhanced-select',
|
481 |
+
'default' => 'primary',
|
482 |
+
'options' => array(
|
483 |
+
'primary' => __( 'Primary', 'woocommerce-gateway-paypal-express-checkout' ),
|
484 |
+
'alternative' => __( 'Alternative', 'woocommerce-gateway-paypal-express-checkout' ),
|
485 |
+
'inline' => __( 'In-Line', 'woocommerce-gateway-paypal-express-checkout' ),
|
486 |
+
'none' => __( 'None', 'woocommerce-gateway-paypal-express-checkout' ),
|
487 |
+
),
|
488 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
489 |
+
'desc_tip' => true,
|
490 |
+
'description' => __( 'PayPal Credit logo used in the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
491 |
+
),
|
492 |
+
'credit_message_logo_position' => array(
|
493 |
+
'title' => __( 'Credit Messaging logo position', 'woocommerce-gateway-paypal-express-checkout' ),
|
494 |
+
'type' => 'select',
|
495 |
+
'class' => 'wc-enhanced-select',
|
496 |
+
'default' => 'left',
|
497 |
+
'options' => array(
|
498 |
+
'left' => __( 'Left', 'woocommerce-gateway-paypal-express-checkout' ),
|
499 |
+
'right' => __( 'Right', 'woocommerce-gateway-paypal-express-checkout' ),
|
500 |
+
'top' => __( 'Top', 'woocommerce-gateway-paypal-express-checkout' ),
|
501 |
+
),
|
502 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
503 |
+
'desc_tip' => true,
|
504 |
+
'description' => __( 'Position of the PayPal logo in the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
505 |
+
),
|
506 |
+
'credit_message_text_color' => array(
|
507 |
+
'title' => __( 'Credit Messaging text color', 'woocommerce-gateway-paypal-express-checkout' ),
|
508 |
+
'type' => 'select',
|
509 |
+
'class' => 'wc-enhanced-select',
|
510 |
+
'default' => 'black',
|
511 |
+
'options' => array(
|
512 |
+
'black' => __( 'Black', 'woocommerce-gateway-paypal-express-checkout' ),
|
513 |
+
'white' => __( 'White', 'woocommerce-gateway-paypal-express-checkout' ),
|
514 |
+
'monochrome' => __( 'Monochrome', 'woocommerce-gateway-paypal-express-checkout' ),
|
515 |
+
'grayscale' => __( 'Grayscale', 'woocommerce-gateway-paypal-express-checkout' ),
|
516 |
+
),
|
517 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
518 |
+
'desc_tip' => true,
|
519 |
+
'description' => __( 'Text and logo color of the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
520 |
+
),
|
521 |
+
'credit_message_flex_color' => array(
|
522 |
+
'title' => __( 'Credit Messaging color', 'woocommerce-gateway-paypal-express-checkout' ),
|
523 |
+
'type' => 'select',
|
524 |
+
'class' => 'wc-enhanced-select',
|
525 |
+
'default' => 'black',
|
526 |
+
'options' => array(
|
527 |
+
'black' => __( 'Black', 'woocommerce-gateway-paypal-express-checkout' ),
|
528 |
+
'blue' => __( 'Blue', 'woocommerce-gateway-paypal-express-checkout' ),
|
529 |
+
'monochrome' => __( 'Monochrome', 'woocommerce-gateway-paypal-express-checkout' ),
|
530 |
+
'gray' => __( 'Gray', 'woocommerce-gateway-paypal-express-checkout' ),
|
531 |
+
'grayscale' => __( 'Grayscale', 'woocommerce-gateway-paypal-express-checkout' ),
|
532 |
+
'white' => __( 'White', 'woocommerce-gateway-paypal-express-checkout' ),
|
533 |
+
'white-no-border' => __( 'White no border', 'woocommerce-gateway-paypal-express-checkout' ),
|
534 |
+
),
|
535 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
536 |
+
'desc_tip' => true,
|
537 |
+
'description' => __( 'Color of the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
538 |
+
),
|
539 |
+
'credit_message_flex_ratio' => array(
|
540 |
+
'title' => __( 'Credit Messaging ratio', 'woocommerce-gateway-paypal-express-checkout' ),
|
541 |
+
'type' => 'select',
|
542 |
+
'class' => 'wc-enhanced-select',
|
543 |
+
'default' => '1x1',
|
544 |
+
'options' => array(
|
545 |
+
'1x1' => __( '1x1', 'woocommerce-gateway-paypal-express-checkout' ),
|
546 |
+
'1x4' => __( '1x4', 'woocommerce-gateway-paypal-express-checkout' ),
|
547 |
+
'8x1' => __( '8x1', 'woocommerce-gateway-paypal-express-checkout' ),
|
548 |
+
'20x1' => __( '20x1', 'woocommerce-gateway-paypal-express-checkout' ),
|
549 |
+
),
|
550 |
+
'disabled' => ! wc_gateway_ppec_is_credit_supported(),
|
551 |
+
'desc_tip' => true,
|
552 |
+
'description' => __( 'Shape and size of the message.', 'woocommerce-gateway-paypal-express-checkout' ),
|
553 |
+
),
|
554 |
+
|
555 |
);
|
556 |
|
557 |
+
|
558 |
/**
|
559 |
* Cart / global button settings.
|
560 |
*/
|
592 |
'description' => __( 'Optionally override global button settings above and configure buttons for this context.', 'woocommerce-gateway-paypal-express-checkout' ),
|
593 |
);
|
594 |
foreach ( $per_context_settings as $key => $value ) {
|
595 |
+
// No PayPal Credit messaging settings for mini-cart.
|
596 |
+
if ( 0 === strpos( $key, 'credit_message_' ) ) {
|
597 |
+
continue;
|
598 |
+
}
|
599 |
+
|
600 |
$value['class'] .= ' woocommerce_ppec_paypal_mini_cart';
|
601 |
$settings[ 'mini_cart_' . $key ] = $value;
|
602 |
}
|
languages/woocommerce-gateway-paypal-express-checkout.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the WooCommerce PayPal Checkout Gateway plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.0
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2020-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: woocommerce-gateway-paypal-express-checkout\n"
|
@@ -49,121 +49,121 @@ msgstr ""
|
|
49 |
msgid "Continue to payment"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
53 |
msgid "Sorry, an error occurred while trying to process your payment. Please try again."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
57 |
msgid "No API certificate on file."
|
58 |
msgstr ""
|
59 |
|
60 |
#. Translators: placeholders are a date in local format and its timezone.
|
61 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
62 |
msgid "expires on %1$s (%2$s)"
|
63 |
msgstr ""
|
64 |
|
65 |
#. Translators: placeholders are a date in local format and its timezone.
|
66 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
67 |
msgid "expired on %1$s (%2$s)"
|
68 |
msgstr ""
|
69 |
|
70 |
#. Translators: 1) is a certificate's CN, 2) is the expiration date.
|
71 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
72 |
msgid "Certificate belongs to API username %1$s; %2$s."
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
76 |
msgid "The certificate on file is not valid."
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
80 |
msgid "Error: You must enter API username."
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
84 |
msgid "Error: You must enter API password."
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
88 |
msgid "Error: You must provide API signature or certificate."
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
92 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
93 |
msgid "Error: The API credentials you provided are not valid. Please double-check that you entered them correctly and try again."
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
97 |
msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
101 |
msgid "Error: The API certificate is not valid."
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
105 |
msgid "Error: The API certificate has expired."
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
109 |
msgid "Error: The API username does not match the name in the API certificate. Make sure that you have the correct API certificate."
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
113 |
msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct."
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
117 |
msgid "The \"require billing address\" option is not enabled by your account and has been disabled."
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
121 |
msgid "Refund Error: You need to specify a refund amount."
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
125 |
msgid "Refund Error: Sorry! This is not a refundable transaction."
|
126 |
msgstr ""
|
127 |
|
128 |
#. Translators: placeholder is a transaction ID.
|
129 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
130 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
131 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
132 |
msgid "PayPal refund completed; transaction ID = %s"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
136 |
msgid "Refund Error: All transactions have been fully refunded. There is no amount left to refund"
|
137 |
msgstr ""
|
138 |
|
139 |
#. Translators: placeholder is an amount (with currency symbol).
|
140 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
141 |
msgid "Refund Error: The requested refund amount is too large. The refund amount must be less than or equal to %s."
|
142 |
msgstr ""
|
143 |
|
144 |
#. Translators: placeholder is an image's URL.
|
145 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
146 |
msgid "Already using URL as image: %s"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
150 |
msgid "Select a image to upload"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
154 |
msgid "Use this image"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
158 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
159 |
msgid "Add image"
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
163 |
msgid "Remove image"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: includes/abstracts/abstract-wc-gateway-ppec.php:
|
167 |
msgid "Remove"
|
168 |
msgstr ""
|
169 |
|
@@ -308,27 +308,27 @@ msgstr ""
|
|
308 |
msgid "An error (%s) occurred while processing your PayPal payment. Please contact the store owner for assistance."
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
312 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
313 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
314 |
msgid "Cheatin’ huh?"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
318 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
319 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
320 |
msgid "Check out with PayPal"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
324 |
msgid "OR"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
328 |
msgid "Pay with PayPal Credit"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: includes/class-wc-gateway-ppec-cart-handler.php:
|
332 |
msgid "An error occurred while processing your PayPal payment. Please contact the store owner for assistance."
|
333 |
msgstr ""
|
334 |
|
@@ -547,53 +547,53 @@ msgstr ""
|
|
547 |
msgid "Success! Your PayPal account has been set up successfully."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
551 |
msgid "bootstrap() in WooCommerce Gateway PayPal Checkout plugin can only be called once"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
555 |
msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce to be activated"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
559 |
msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5 or greater"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
563 |
msgid "WooCommerce Gateway PayPal Checkout requires cURL to be installed on your server"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
567 |
msgid "WooCommerce Gateway PayPal Checkout requires OpenSSL >= 1.0.1 to be installed on your server"
|
568 |
msgstr ""
|
569 |
|
570 |
#. Translators: placeholder is the URL of the gateway settings page.
|
571 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
572 |
msgid "PayPal Checkout is almost ready. To get started, <a href=\"%s\">connect your PayPal account</a>."
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
576 |
msgid "Settings"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
580 |
msgid "View Documentation"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
584 |
msgid "Docs"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
588 |
msgid "Open a support request at WooCommerce.com"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
592 |
msgid "Support"
|
593 |
msgstr ""
|
594 |
|
595 |
#. Translators: placeholder is the URL of the gateway settings page.
|
596 |
-
#: includes/class-wc-gateway-ppec-plugin.php:
|
597 |
msgid "<p>PayPal Checkout with new <strong>Smart Payment Buttons™</strong> gives your customers the power to pay the way they want without leaving your site.</p><p>The <strong>existing buttons will be removed</strong> in the <strong>next release</strong>. Please upgrade to Smart Payment Buttons on the <a href=\"%s\">PayPal Checkout settings page</a>.</p>"
|
598 |
msgstr ""
|
599 |
|
@@ -1050,6 +1050,7 @@ msgid "Gold (Recommended)"
|
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: includes/settings/settings-ppec.php:344
|
|
|
1053 |
msgid "Blue"
|
1054 |
msgstr ""
|
1055 |
|
@@ -1058,6 +1059,8 @@ msgid "Silver"
|
|
1058 |
msgstr ""
|
1059 |
|
1060 |
#: includes/settings/settings-ppec.php:346
|
|
|
|
|
1061 |
msgid "Black"
|
1062 |
msgstr ""
|
1063 |
|
@@ -1188,71 +1191,202 @@ msgstr ""
|
|
1188 |
msgid "Sofort"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: includes/settings/settings-ppec.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1192 |
msgid "Checkout on cart page"
|
1193 |
msgstr ""
|
1194 |
|
1195 |
-
#: includes/settings/settings-ppec.php:
|
1196 |
msgid "Enable PayPal Checkout on the cart page"
|
1197 |
msgstr ""
|
1198 |
|
1199 |
-
#: includes/settings/settings-ppec.php:
|
1200 |
msgid "This shows or hides the PayPal Checkout button on the cart page."
|
1201 |
msgstr ""
|
1202 |
|
1203 |
-
#: includes/settings/settings-ppec.php:
|
1204 |
msgid "Mini-cart Button Settings"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
-
#: includes/settings/settings-ppec.php:
|
1208 |
-
#: includes/settings/settings-ppec.php:
|
1209 |
-
#: includes/settings/settings-ppec.php:
|
1210 |
msgid "Configure Settings"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
-
#: includes/settings/settings-ppec.php:
|
1214 |
msgid "Configure settings specific to mini-cart"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
#: includes/settings/settings-ppec.php:
|
1218 |
-
#: includes/settings/settings-ppec.php:
|
1219 |
-
#: includes/settings/settings-ppec.php:
|
1220 |
msgid "Optionally override global button settings above and configure buttons for this context."
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: includes/settings/settings-ppec.php:
|
1224 |
msgid "Single Product Button Settings"
|
1225 |
msgstr ""
|
1226 |
|
1227 |
-
#: includes/settings/settings-ppec.php:
|
1228 |
-
#: includes/settings/settings-ppec.php:
|
1229 |
msgid "Checkout on Single Product"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
-
#: includes/settings/settings-ppec.php:
|
1233 |
msgid "Enable PayPal Checkout on Single Product view."
|
1234 |
msgstr ""
|
1235 |
|
1236 |
-
#: includes/settings/settings-ppec.php:
|
1237 |
msgid "Configure settings specific to Single Product view"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
-
#: includes/settings/settings-ppec.php:
|
1241 |
msgid "Regular Checkout Button Settings"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
-
#: includes/settings/settings-ppec.php:
|
1245 |
msgid "PayPal Mark"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
-
#: includes/settings/settings-ppec.php:
|
1249 |
msgid "Enable the PayPal Mark on regular checkout"
|
1250 |
msgstr ""
|
1251 |
|
1252 |
-
#: includes/settings/settings-ppec.php:
|
1253 |
msgid "This enables the PayPal mark, which can be shown on regular WooCommerce checkout to use PayPal Checkout like a regular WooCommerce gateway."
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: includes/settings/settings-ppec.php:
|
1257 |
msgid "Configure settings specific to regular checkout"
|
1258 |
msgstr ""
|
2 |
# This file is distributed under the same license as the WooCommerce PayPal Checkout Gateway plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2020-10-06T13:02:34+10:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
"X-Domain: woocommerce-gateway-paypal-express-checkout\n"
|
49 |
msgid "Continue to payment"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:174
|
53 |
msgid "Sorry, an error occurred while trying to process your payment. Please try again."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:207
|
57 |
msgid "No API certificate on file."
|
58 |
msgstr ""
|
59 |
|
60 |
#. Translators: placeholders are a date in local format and its timezone.
|
61 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:217
|
62 |
msgid "expires on %1$s (%2$s)"
|
63 |
msgstr ""
|
64 |
|
65 |
#. Translators: placeholders are a date in local format and its timezone.
|
66 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:222
|
67 |
msgid "expired on %1$s (%2$s)"
|
68 |
msgstr ""
|
69 |
|
70 |
#. Translators: 1) is a certificate's CN, 2) is the expiration date.
|
71 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:233
|
72 |
msgid "Certificate belongs to API username %1$s; %2$s."
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:235
|
76 |
msgid "The certificate on file is not valid."
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:300
|
80 |
msgid "Error: You must enter API username."
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:304
|
84 |
msgid "Error: You must enter API password."
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:308
|
88 |
msgid "Error: You must provide API signature or certificate."
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:318
|
92 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:345
|
93 |
msgid "Error: The API credentials you provided are not valid. Please double-check that you entered them correctly and try again."
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:322
|
97 |
msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct."
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:329
|
101 |
msgid "Error: The API certificate is not valid."
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:336
|
105 |
msgid "Error: The API certificate has expired."
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:338
|
109 |
msgid "Error: The API username does not match the name in the API certificate. Make sure that you have the correct API certificate."
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:348
|
113 |
msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct."
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:367
|
117 |
msgid "The \"require billing address\" option is not enabled by your account and has been disabled."
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:392
|
121 |
msgid "Refund Error: You need to specify a refund amount."
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:404
|
125 |
msgid "Refund Error: Sorry! This is not a refundable transaction."
|
126 |
msgstr ""
|
127 |
|
128 |
#. Translators: placeholder is a transaction ID.
|
129 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:417
|
130 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:442
|
131 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:494
|
132 |
msgid "PayPal refund completed; transaction ID = %s"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:466
|
136 |
msgid "Refund Error: All transactions have been fully refunded. There is no amount left to refund"
|
137 |
msgstr ""
|
138 |
|
139 |
#. Translators: placeholder is an amount (with currency symbol).
|
140 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:469
|
141 |
msgid "Refund Error: The requested refund amount is too large. The refund amount must be less than or equal to %s."
|
142 |
msgstr ""
|
143 |
|
144 |
#. Translators: placeholder is an image's URL.
|
145 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:587
|
146 |
msgid "Already using URL as image: %s"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:595
|
150 |
msgid "Select a image to upload"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:596
|
154 |
msgid "Use this image"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:597
|
158 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:600
|
159 |
msgid "Add image"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:608
|
163 |
msgid "Remove image"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: includes/abstracts/abstract-wc-gateway-ppec.php:647
|
167 |
msgid "Remove"
|
168 |
msgstr ""
|
169 |
|
308 |
msgid "An error (%s) occurred while processing your PayPal payment. Please contact the store owner for assistance."
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:74
|
312 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:144
|
313 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:165
|
314 |
msgid "Cheatin’ huh?"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:329
|
318 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:376
|
319 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:411
|
320 |
msgid "Check out with PayPal"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:365
|
324 |
msgid "OR"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:381
|
328 |
msgid "Pay with PayPal Credit"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: includes/class-wc-gateway-ppec-cart-handler.php:585
|
332 |
msgid "An error occurred while processing your PayPal payment. Please contact the store owner for assistance."
|
333 |
msgstr ""
|
334 |
|
547 |
msgid "Success! Your PayPal account has been set up successfully."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/class-wc-gateway-ppec-plugin.php:173
|
551 |
msgid "bootstrap() in WooCommerce Gateway PayPal Checkout plugin can only be called once"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: includes/class-wc-gateway-ppec-plugin.php:275
|
555 |
msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce to be activated"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/class-wc-gateway-ppec-plugin.php:279
|
559 |
msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5 or greater"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: includes/class-wc-gateway-ppec-plugin.php:283
|
563 |
msgid "WooCommerce Gateway PayPal Checkout requires cURL to be installed on your server"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/class-wc-gateway-ppec-plugin.php:286
|
567 |
msgid "WooCommerce Gateway PayPal Checkout requires OpenSSL >= 1.0.1 to be installed on your server"
|
568 |
msgstr ""
|
569 |
|
570 |
#. Translators: placeholder is the URL of the gateway settings page.
|
571 |
+
#: includes/class-wc-gateway-ppec-plugin.php:314
|
572 |
msgid "PayPal Checkout is almost ready. To get started, <a href=\"%s\">connect your PayPal account</a>."
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/class-wc-gateway-ppec-plugin.php:444
|
576 |
msgid "Settings"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: includes/class-wc-gateway-ppec-plugin.php:463
|
580 |
msgid "View Documentation"
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: includes/class-wc-gateway-ppec-plugin.php:463
|
584 |
msgid "Docs"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: includes/class-wc-gateway-ppec-plugin.php:464
|
588 |
msgid "Open a support request at WooCommerce.com"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: includes/class-wc-gateway-ppec-plugin.php:464
|
592 |
msgid "Support"
|
593 |
msgstr ""
|
594 |
|
595 |
#. Translators: placeholder is the URL of the gateway settings page.
|
596 |
+
#: includes/class-wc-gateway-ppec-plugin.php:520
|
597 |
msgid "<p>PayPal Checkout with new <strong>Smart Payment Buttons™</strong> gives your customers the power to pay the way they want without leaving your site.</p><p>The <strong>existing buttons will be removed</strong> in the <strong>next release</strong>. Please upgrade to Smart Payment Buttons on the <a href=\"%s\">PayPal Checkout settings page</a>.</p>"
|
598 |
msgstr ""
|
599 |
|
1050 |
msgstr ""
|
1051 |
|
1052 |
#: includes/settings/settings-ppec.php:344
|
1053 |
+
#: includes/settings/settings-ppec.php:528
|
1054 |
msgid "Blue"
|
1055 |
msgstr ""
|
1056 |
|
1059 |
msgstr ""
|
1060 |
|
1061 |
#: includes/settings/settings-ppec.php:346
|
1062 |
+
#: includes/settings/settings-ppec.php:512
|
1063 |
+
#: includes/settings/settings-ppec.php:527
|
1064 |
msgid "Black"
|
1065 |
msgstr ""
|
1066 |
|
1191 |
msgid "Sofort"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
+
#: includes/settings/settings-ppec.php:460
|
1195 |
+
msgid "Enable PayPal Credit messages"
|
1196 |
+
msgstr ""
|
1197 |
+
|
1198 |
+
#: includes/settings/settings-ppec.php:462
|
1199 |
+
msgid "Display credit messages on your website to promote special financing offers, which help increase sales."
|
1200 |
+
msgstr ""
|
1201 |
+
|
1202 |
+
#: includes/settings/settings-ppec.php:465
|
1203 |
+
msgid "Credit Messaging Layout"
|
1204 |
+
msgstr ""
|
1205 |
+
|
1206 |
+
#: includes/settings/settings-ppec.php:470
|
1207 |
+
msgid "Text"
|
1208 |
+
msgstr ""
|
1209 |
+
|
1210 |
+
#: includes/settings/settings-ppec.php:471
|
1211 |
+
msgid "Graphic"
|
1212 |
+
msgstr ""
|
1213 |
+
|
1214 |
+
#: includes/settings/settings-ppec.php:475
|
1215 |
+
msgid "The layout of the message."
|
1216 |
+
msgstr ""
|
1217 |
+
|
1218 |
+
#: includes/settings/settings-ppec.php:478
|
1219 |
+
msgid "Credit Messaging logo"
|
1220 |
+
msgstr ""
|
1221 |
+
|
1222 |
+
#: includes/settings/settings-ppec.php:483
|
1223 |
+
msgid "Primary"
|
1224 |
+
msgstr ""
|
1225 |
+
|
1226 |
+
#: includes/settings/settings-ppec.php:484
|
1227 |
+
msgid "Alternative"
|
1228 |
+
msgstr ""
|
1229 |
+
|
1230 |
+
#: includes/settings/settings-ppec.php:485
|
1231 |
+
msgid "In-Line"
|
1232 |
+
msgstr ""
|
1233 |
+
|
1234 |
+
#: includes/settings/settings-ppec.php:486
|
1235 |
+
msgid "None"
|
1236 |
+
msgstr ""
|
1237 |
+
|
1238 |
+
#: includes/settings/settings-ppec.php:490
|
1239 |
+
msgid "PayPal Credit logo used in the message."
|
1240 |
+
msgstr ""
|
1241 |
+
|
1242 |
+
#: includes/settings/settings-ppec.php:493
|
1243 |
+
msgid "Credit Messaging logo position"
|
1244 |
+
msgstr ""
|
1245 |
+
|
1246 |
+
#: includes/settings/settings-ppec.php:498
|
1247 |
+
msgid "Left"
|
1248 |
+
msgstr ""
|
1249 |
+
|
1250 |
+
#: includes/settings/settings-ppec.php:499
|
1251 |
+
msgid "Right"
|
1252 |
+
msgstr ""
|
1253 |
+
|
1254 |
+
#: includes/settings/settings-ppec.php:500
|
1255 |
+
msgid "Top"
|
1256 |
+
msgstr ""
|
1257 |
+
|
1258 |
+
#: includes/settings/settings-ppec.php:504
|
1259 |
+
msgid "Position of the PayPal logo in the message."
|
1260 |
+
msgstr ""
|
1261 |
+
|
1262 |
+
#: includes/settings/settings-ppec.php:507
|
1263 |
+
msgid "Credit Messaging text color"
|
1264 |
+
msgstr ""
|
1265 |
+
|
1266 |
+
#: includes/settings/settings-ppec.php:513
|
1267 |
+
#: includes/settings/settings-ppec.php:532
|
1268 |
+
msgid "White"
|
1269 |
+
msgstr ""
|
1270 |
+
|
1271 |
+
#: includes/settings/settings-ppec.php:514
|
1272 |
+
#: includes/settings/settings-ppec.php:529
|
1273 |
+
msgid "Monochrome"
|
1274 |
+
msgstr ""
|
1275 |
+
|
1276 |
+
#: includes/settings/settings-ppec.php:515
|
1277 |
+
#: includes/settings/settings-ppec.php:531
|
1278 |
+
msgid "Grayscale"
|
1279 |
+
msgstr ""
|
1280 |
+
|
1281 |
+
#: includes/settings/settings-ppec.php:519
|
1282 |
+
msgid "Text and logo color of the message."
|
1283 |
+
msgstr ""
|
1284 |
+
|
1285 |
+
#: includes/settings/settings-ppec.php:522
|
1286 |
+
msgid "Credit Messaging color"
|
1287 |
+
msgstr ""
|
1288 |
+
|
1289 |
+
#: includes/settings/settings-ppec.php:530
|
1290 |
+
msgid "Gray"
|
1291 |
+
msgstr ""
|
1292 |
+
|
1293 |
+
#: includes/settings/settings-ppec.php:533
|
1294 |
+
msgid "White no border"
|
1295 |
+
msgstr ""
|
1296 |
+
|
1297 |
+
#: includes/settings/settings-ppec.php:537
|
1298 |
+
msgid "Color of the message."
|
1299 |
+
msgstr ""
|
1300 |
+
|
1301 |
+
#: includes/settings/settings-ppec.php:540
|
1302 |
+
msgid "Credit Messaging ratio"
|
1303 |
+
msgstr ""
|
1304 |
+
|
1305 |
+
#: includes/settings/settings-ppec.php:545
|
1306 |
+
msgid "1x1"
|
1307 |
+
msgstr ""
|
1308 |
+
|
1309 |
+
#: includes/settings/settings-ppec.php:546
|
1310 |
+
msgid "1x4"
|
1311 |
+
msgstr ""
|
1312 |
+
|
1313 |
+
#: includes/settings/settings-ppec.php:547
|
1314 |
+
msgid "8x1"
|
1315 |
+
msgstr ""
|
1316 |
+
|
1317 |
+
#: includes/settings/settings-ppec.php:548
|
1318 |
+
msgid "20x1"
|
1319 |
+
msgstr ""
|
1320 |
+
|
1321 |
+
#: includes/settings/settings-ppec.php:552
|
1322 |
+
msgid "Shape and size of the message."
|
1323 |
+
msgstr ""
|
1324 |
+
|
1325 |
+
#: includes/settings/settings-ppec.php:567
|
1326 |
msgid "Checkout on cart page"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
+
#: includes/settings/settings-ppec.php:570
|
1330 |
msgid "Enable PayPal Checkout on the cart page"
|
1331 |
msgstr ""
|
1332 |
|
1333 |
+
#: includes/settings/settings-ppec.php:571
|
1334 |
msgid "This shows or hides the PayPal Checkout button on the cart page."
|
1335 |
msgstr ""
|
1336 |
|
1337 |
+
#: includes/settings/settings-ppec.php:580
|
1338 |
msgid "Mini-cart Button Settings"
|
1339 |
msgstr ""
|
1340 |
|
1341 |
+
#: includes/settings/settings-ppec.php:586
|
1342 |
+
#: includes/settings/settings-ppec.php:624
|
1343 |
+
#: includes/settings/settings-ppec.php:658
|
1344 |
msgid "Configure Settings"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
+
#: includes/settings/settings-ppec.php:587
|
1348 |
msgid "Configure settings specific to mini-cart"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
+
#: includes/settings/settings-ppec.php:592
|
1352 |
+
#: includes/settings/settings-ppec.php:630
|
1353 |
+
#: includes/settings/settings-ppec.php:664
|
1354 |
msgid "Optionally override global button settings above and configure buttons for this context."
|
1355 |
msgstr ""
|
1356 |
|
1357 |
+
#: includes/settings/settings-ppec.php:608
|
1358 |
msgid "Single Product Button Settings"
|
1359 |
msgstr ""
|
1360 |
|
1361 |
+
#: includes/settings/settings-ppec.php:614
|
1362 |
+
#: includes/settings/settings-ppec.php:617
|
1363 |
msgid "Checkout on Single Product"
|
1364 |
msgstr ""
|
1365 |
|
1366 |
+
#: includes/settings/settings-ppec.php:620
|
1367 |
msgid "Enable PayPal Checkout on Single Product view."
|
1368 |
msgstr ""
|
1369 |
|
1370 |
+
#: includes/settings/settings-ppec.php:625
|
1371 |
msgid "Configure settings specific to Single Product view"
|
1372 |
msgstr ""
|
1373 |
|
1374 |
+
#: includes/settings/settings-ppec.php:642
|
1375 |
msgid "Regular Checkout Button Settings"
|
1376 |
msgstr ""
|
1377 |
|
1378 |
+
#: includes/settings/settings-ppec.php:648
|
1379 |
msgid "PayPal Mark"
|
1380 |
msgstr ""
|
1381 |
|
1382 |
+
#: includes/settings/settings-ppec.php:651
|
1383 |
msgid "Enable the PayPal Mark on regular checkout"
|
1384 |
msgstr ""
|
1385 |
|
1386 |
+
#: includes/settings/settings-ppec.php:652
|
1387 |
msgid "This enables the PayPal mark, which can be shown on regular WooCommerce checkout to use PayPal Checkout like a regular WooCommerce gateway."
|
1388 |
msgstr ""
|
1389 |
|
1390 |
+
#: includes/settings/settings-ppec.php:659
|
1391 |
msgid "Configure settings specific to regular checkout"
|
1392 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WooCommerce PayPal Checkout Payment Gateway ===
|
2 |
-
Contributors: woocommerce, automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov, robobot3000
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 5.5
|
7 |
-
Stable tag: 2.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -102,6 +102,11 @@ Please use this to inform us about bugs, or make contributions via PRs.
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
|
|
105 |
= 2.0.3 - 2020-07-01 =
|
106 |
* Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764
|
107 |
* Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765
|
@@ -282,4 +287,4 @@ Please use this to inform us about bugs, or make contributions via PRs.
|
|
282 |
* Fix - Compatibility with Subscriptions and Checkout from Single Product page.
|
283 |
* Fix - Make sure session object exists before use to prevent fatal error.
|
284 |
|
285 |
-
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-paypal-express-checkout/
|
1 |
=== WooCommerce PayPal Checkout Payment Gateway ===
|
2 |
+
Contributors: woocommerce, automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov, robobot3000, jorgeatorres, mattdallan, menakas, chickenn00dle, jamesgallan, achyuthajoy, codestor
|
3 |
Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
|
4 |
Requires at least: 4.4
|
5 |
+
Tested up to: 5.5
|
6 |
Requires PHP: 5.5
|
7 |
+
Stable tag: 2.1.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 2.1.0 - 2020-10-06 =
|
106 |
+
* New - Add support for PayPal Credit messaging. PR#810
|
107 |
+
* Fix - Hide the "Pay Later" funding method when "PayPal Credit" is disabled. PR#811
|
108 |
+
* Fix - Display correct image size in the PayPal Checkout window. PR#779
|
109 |
+
|
110 |
= 2.0.3 - 2020-07-01 =
|
111 |
* Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764
|
112 |
* Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765
|
287 |
* Fix - Compatibility with Subscriptions and Checkout from Single Product page.
|
288 |
* Fix - Make sure session object exists before use to prevent fatal error.
|
289 |
|
290 |
+
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-paypal-express-checkout/trunk/changelog.txt).
|
woocommerce-gateway-paypal-express-checkout.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WooCommerce PayPal Checkout Gateway
|
4 |
* Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
|
5 |
* Description: Accept all major credit and debit cards, plus Venmo and PayPal Credit in the US, presenting options in a customizable stack of payment buttons. Fast, seamless, and flexible.
|
6 |
-
* Version: 2.0
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2019 WooCommerce / PayPal.
|
@@ -11,7 +11,7 @@
|
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
* Text Domain: woocommerce-gateway-paypal-express-checkout
|
13 |
* Domain Path: /languages
|
14 |
-
* WC tested up to: 4.
|
15 |
* WC requires at least: 2.6
|
16 |
*/
|
17 |
/**
|
@@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
27 |
exit; // Exit if accessed directly
|
28 |
}
|
29 |
|
30 |
-
define( 'WC_GATEWAY_PPEC_VERSION', '2.0
|
31 |
|
32 |
/**
|
33 |
* Return instance of WC_Gateway_PPEC_Plugin.
|
3 |
* Plugin Name: WooCommerce PayPal Checkout Gateway
|
4 |
* Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
|
5 |
* Description: Accept all major credit and debit cards, plus Venmo and PayPal Credit in the US, presenting options in a customizable stack of payment buttons. Fast, seamless, and flexible.
|
6 |
+
* Version: 2.1.0
|
7 |
* Author: WooCommerce
|
8 |
* Author URI: https://woocommerce.com
|
9 |
* Copyright: © 2019 WooCommerce / PayPal.
|
11 |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
12 |
* Text Domain: woocommerce-gateway-paypal-express-checkout
|
13 |
* Domain Path: /languages
|
14 |
+
* WC tested up to: 4.5
|
15 |
* WC requires at least: 2.6
|
16 |
*/
|
17 |
/**
|
27 |
exit; // Exit if accessed directly
|
28 |
}
|
29 |
|
30 |
+
define( 'WC_GATEWAY_PPEC_VERSION', '2.1.0' );
|
31 |
|
32 |
/**
|
33 |
* Return instance of WC_Gateway_PPEC_Plugin.
|