Changeset 2555358
- Timestamp:
- 06/28/2021 03:35:20 PM (5 years ago)
- Location:
- woocommerce-gateway-paypal-express-checkout/trunk
- Files:
-
- 6 added
- 14 edited
-
assets/css/admin (added)
-
assets/css/admin/ppec-upgrade-notice.css (added)
-
assets/js/admin (added)
-
assets/js/admin/ppec-upgrade-notice.js (added)
-
assets/js/wc-gateway-ppec-frontend-in-context-checkout.js (modified) (3 diffs)
-
assets/js/wc-gateway-ppec-generate-cart.js (modified) (1 diff)
-
assets/js/wc-gateway-ppec-settings.js (modified) (14 diffs)
-
assets/js/wc-gateway-ppec-smart-payment-buttons.js (modified) (4 diffs)
-
changelog.txt (modified) (1 diff)
-
includes/abstracts/abstract-wc-gateway-ppec.php (modified) (1 diff)
-
includes/class-wc-gateway-ppec-cart-handler.php (modified) (4 diffs)
-
includes/class-wc-gateway-ppec-checkout-handler.php (modified) (1 diff)
-
includes/class-wc-gateway-ppec-client.php (modified) (4 diffs)
-
includes/class-wc-gateway-ppec-plugin.php (modified) (4 diffs)
-
includes/settings/settings-ppec.php (modified) (4 diffs)
-
languages/woocommerce-gateway-paypal-express-checkout.pot (modified) (14 diffs)
-
readme.txt (modified) (2 diffs)
-
templates (added)
-
templates/paypal-payments-upgrade-notice.php (added)
-
woocommerce-gateway-paypal-express-checkout.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-frontend-in-context-checkout.js
r2246009 r2555358 4 4 var $wc_ppec = { 5 5 init: function() { 6 window.paypalCheckoutReady = function() { 6 window.paypalCheckoutReady = function() { 7 7 paypal.checkout.setup( 8 8 wc_ppec_context.payer_id, … … 20 20 var costs_updated = false; 21 21 22 $( '#woo_pp_ec_button' ). click(function( event ) {22 $( '#woo_pp_ec_button' ).on( 'click', function( event ) { 23 23 if ( costs_updated ) { 24 24 costs_updated = false; … … 41 41 success: function( response ) { 42 42 costs_updated = true; 43 $( '#woo_pp_ec_button' ). click();43 $( '#woo_pp_ec_button' ).trigger( 'click' ); 44 44 } 45 45 } ); -
woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-generate-cart.js
r2311329 r2555358 34 34 .on( 'mouseup', function( event ) { 35 35 event.stopImmediatePropagation(); 36 form.find( ':submit' ). click();36 form.find( ':submit' ).trigger( 'click' ); 37 37 } ) 38 38 .find( '> *' ) -
woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-settings.js
r2394165 r2555358 157 157 if ( 13 === event.which ) { 158 158 event.preventDefault(); 159 $( ".woocommerce-save-button[name='save']" ). click();159 $( ".woocommerce-save-button[name='save']" ).trigger( 'click' ); 160 160 } 161 161 }, … … 190 190 $( '#woocommerce_ppec_paypal_use_spb' ).closest( 'tr' ).hide(); 191 191 192 $( '#woocommerce_ppec_paypal_environment' ). change(function(){192 $( '#woocommerce_ppec_paypal_environment' ).on( 'change', function(){ 193 193 $( ppec_sandbox_fields + ',' + ppec_live_fields ).closest( 'tr' ).hide(); 194 194 … … 208 208 } 209 209 } 210 }). change();211 212 $( '#woocommerce_ppec_paypal_enabled' ). change(function(){210 }).trigger( 'change' ); 211 212 $( '#woocommerce_ppec_paypal_enabled' ).on( 'change', function(){ 213 213 if ( $( this ).is( ':checked' ) ) { 214 214 $( ppec_mark_fields ).closest( 'tr' ).show(); … … 216 216 $( ppec_mark_fields ).closest( 'tr' ).hide(); 217 217 } 218 }). change();219 220 $( '#woocommerce_ppec_paypal_paymentaction' ). change(function(){218 }).trigger( 'change' ); 219 220 $( '#woocommerce_ppec_paypal_paymentaction' ).on( 'change', function(){ 221 221 if ( 'sale' === $( this ).val() ) { 222 222 $( '#woocommerce_ppec_paypal_instant_payments' ).closest( 'tr' ).show(); … … 224 224 $( '#woocommerce_ppec_paypal_instant_payments' ).closest( 'tr' ).hide(); 225 225 } 226 }). change();226 }).trigger( 'change' ); 227 227 228 228 if ( enable_toggle ) { … … 247 247 var selector = $.map( refreshOnChange, function( val ) { return '[name^="woocommerce_ppec_paypal_"][name$="' + val + '"]'; } ).join( ', ' ); 248 248 249 $( selector ). change(this.refreshUI );249 $( selector ).on( 'change', this.refreshUI ); 250 250 251 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();252 $( '#woocommerce_ppec_paypal_credit_enabled' ).trigger( 'change' ); 253 $( '#woocommerce_ppec_paypal_hide_funding_methods' ).trigger( 'change' ); 254 254 }, 255 255 … … 306 306 creditSettings.init(); 307 307 308 $( '.woocommerce_ppec_paypal_button_layout' ). change(function( event ) {308 $( '.woocommerce_ppec_paypal_button_layout' ).on( 'change', function( event ) { 309 309 if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) { 310 310 return; … … 324 324 button_size_option.prop( 'disabled', isVertical ); 325 325 $( document.body ).trigger( 'wc-enhanced-select-init' ); 326 ! button_size.val() && button_size.val( 'responsive' ). change();327 } 328 } ). change();326 ! button_size.val() && button_size.val( 'responsive' ).trigger( 'change' ); 327 } 328 } ).trigger( 'change' ); 329 329 330 330 // Hide default layout and size settings if they'll be overridden anyway. … … 336 336 337 337 $( '#woocommerce_ppec_paypal_button_layout, #woocommerce_ppec_paypal_button_size, #woocommerce_ppec_paypal_hide_funding_methods, #woocommerce_ppec_paypal_credit_enabled' ).closest( 'tr' ).toggle( display ); 338 display && $( '#woocommerce_ppec_paypal_button_layout' ). change();338 display && $( '#woocommerce_ppec_paypal_button_layout' ).trigger( 'change' ); 339 339 } 340 340 341 341 // Toggle mini-cart section based on whether checkout on cart page is enabled 342 $( '#woocommerce_ppec_paypal_cart_checkout_enabled' ). change(function( event ) {342 $( '#woocommerce_ppec_paypal_cart_checkout_enabled' ).on( 'change', function( event ) { 343 343 if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) { 344 344 return; … … 352 352 .addBack() 353 353 .toggle( checked ); 354 checked && $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ). change();354 checked && $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ).trigger( 'change' ); 355 355 showHideDefaultButtonSettings(); 356 } ). change();357 358 $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ). change(function( event ) {356 } ).trigger( 'change' ); 357 358 $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ).on( 'change', function( event ) { 359 359 // Only show settings specific to mini-cart if configured to override global settings. 360 360 var checked = $( event.target ).is( ':checked' ); 361 361 $( '.woocommerce_ppec_paypal_mini_cart' ).closest( 'tr' ).toggle( checked ); 362 checked && $( '#woocommerce_ppec_paypal_mini_cart_button_layout' ). change();362 checked && $( '#woocommerce_ppec_paypal_mini_cart_button_layout' ).trigger( 'change' ); 363 363 showHideDefaultButtonSettings(); 364 } ). change();365 366 $( '#woocommerce_ppec_paypal_checkout_on_single_product_enabled, #woocommerce_ppec_paypal_single_product_settings_toggle' ). change(function( event ) {364 } ).trigger( 'change' ); 365 366 $( '#woocommerce_ppec_paypal_checkout_on_single_product_enabled, #woocommerce_ppec_paypal_single_product_settings_toggle' ).on( 'change', function( event ) { 367 367 if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) { 368 368 return; … … 379 379 // Show all settings in section. 380 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();381 $( '#woocommerce_ppec_paypal_single_product_button_layout' ).trigger( 'change' ); 382 $( '#woocommerce_ppec_paypal_single_product_credit_enabled' ).trigger( 'change' ); 383 383 } 384 384 showHideDefaultButtonSettings(); 385 } ). change();386 387 $( '#woocommerce_ppec_paypal_mark_enabled, #woocommerce_ppec_paypal_mark_settings_toggle' ). change(function() {385 } ).trigger( 'change' ); 386 387 $( '#woocommerce_ppec_paypal_mark_enabled, #woocommerce_ppec_paypal_mark_settings_toggle' ).on( 'change', function() { 388 388 if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) { 389 389 return; … … 400 400 // Show all settings in section. 401 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();402 $( '#woocommerce_ppec_paypal_mark_button_layout' ).trigger( 'change' ); 403 $( '#woocommerce_ppec_paypal_mark_credit_enabled' ).trigger( 'change' ); 404 404 } 405 405 showHideDefaultButtonSettings(); 406 } ). change();406 } ).trigger( 'change' ); 407 407 408 408 // Make sure handlers are only attached once if script is loaded multiple times. 409 409 $( '#woocommerce_ppec_paypal_use_spb' ).off( 'change' ); 410 410 411 $( '#woocommerce_ppec_paypal_use_spb' ). change(function( event ) {411 $( '#woocommerce_ppec_paypal_use_spb' ).on( 'change', function( event ) { 412 412 var checked = $( event.target ).is( ':checked' ); 413 413 … … 418 418 if ( checked ) { 419 419 // Trigger all logic that controls visibility of other settings. 420 $( '.woocommerce_ppec_paypal_visibility_toggle' ). change();420 $( '.woocommerce_ppec_paypal_visibility_toggle' ).trigger( 'change' ); 421 421 } else { 422 422 // If non-SPB mode is enabled, show all settings that may have been hidden. … … 429 429 ! checked && button_size.find( 'option[value=\"small\"]' ).prop( 'disabled', false ); 430 430 $( document.body ).trigger( 'wc-enhanced-select-init' ); 431 } ). change();431 } ).trigger( 'change' ); 432 432 433 433 // Reset button size values to default when switching modes. 434 $( '#woocommerce_ppec_paypal_use_spb' ). change(function( event ) {434 $( '#woocommerce_ppec_paypal_use_spb' ).on( 'change', function( event ) { 435 435 if ( $( event.target ).is( ':checked' ) ) { 436 436 // In SPB mode, set to recommended 'Responsive' value so it is not missed. 437 $( '#woocommerce_ppec_paypal_button_size' ).val( 'responsive' ). change();437 $( '#woocommerce_ppec_paypal_button_size' ).val( 'responsive' ).trigger( 'change' ); 438 438 } else if ( ! $( '#woocommerce_ppec_paypal_button_size' ).val() ) { 439 439 // Set back to original default for non-SPB mode. 440 $( '#woocommerce_ppec_paypal_button_size' ).val( 'large' ). change();440 $( '#woocommerce_ppec_paypal_button_size' ).val( 'large' ).trigger( 'change' ); 441 441 } 442 442 } ); -
woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-smart-payment-buttons.js
r2394165 r2555358 20 20 $( '.woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message' ).remove(); 21 21 $container.prepend( '<div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">' + errorMessage + '</div>' ); 22 $container.find( '.input-text, select, input:checkbox' ).trigger( 'validate' ). blur();22 $container.find( '.input-text, select, input:checkbox' ).trigger( 'validate' ).trigger( 'blur' ); 23 23 24 24 var scrollElement = $( '.woocommerce-NoticeGroup-checkout' ); … … 187 187 .append( $( '<input type="hidden" name="paymentToken" /> ' ).attr( 'value', ! wc_ppec_context.use_checkout_js ? data.orderID : data.paymentToken ) ) 188 188 .append( $( '<input type="hidden" name="payerID" /> ' ).attr( 'value', data.payerID ) ) 189 . submit();189 .trigger( 'submit' ); 190 190 } else { 191 191 // Navigate to order confirmation URL specified in original request to PayPal from back-end. … … 249 249 onCancel: button_args.onCancel, 250 250 fundingSource: fundingSource, 251 style: ( paypal.FUNDING.PAYPAL === fundingSource ) ? button_args.style : { layout: button_args.style.layout }251 style: ( paypal.FUNDING.PAYPAL === fundingSource ) ? button_args.style : { layout: button_args.style.layout, shape: button_args.style.shape } 252 252 }; 253 253 … … 269 269 render(); 270 270 } 271 271 272 $( document.body ).on( 'updated_cart_totals updated_checkout', render.bind( this, false ) ); 272 273 } -
woocommerce-gateway-paypal-express-checkout/trunk/changelog.txt
r2423948 r2555358 1 1 *** Changelog *** 2 3 = 2.1.2 - 2021-06-28 = 4 * Fix - Prevent fatal error when a line item isn't a WC_Product instance. PR#872 5 * Fix - [WC Subscriptions] Update the shipping packages address using a dynamic key rather than assuming a 0 index. PR#871 6 * New - Allow hiding of funding methods MercadoPago and BLIK. PR#870 7 * Tweak - Make labels/descriptions more consistent on the settings screen. PR#771 8 * Tweak - Make WooCommerce 3.2.0 explicit. PR#868 9 * Dev - Add hooks to alter names and descriptions of line items sent to PayPal. PR#869 10 * Fix - Create session cookie only when needed. PR#793, PR#845. 11 * Tweak - Mark as compatible with latest WordPress and WooCommerce. PR#867 12 * Fix - Replace jQuery 3.x deprecated functions. PR#852 13 * Fix - Honor shape settings when rendering buttons for alternative funding sources. PR#844 14 * New - Add notice on plugins page to upgrade to PayPal Payments. PR#866 2 15 3 16 = 2.1.1 - 2020-11-24 = -
woocommerce-gateway-paypal-express-checkout/trunk/includes/abstracts/abstract-wc-gateway-ppec.php
r2394165 r2555358 227 227 228 228 $expiry_date = new WC_DateTime( "@{$valid_until}", new DateTimeZone( 'UTC' ) ); 229 $expiry_date->setTimezone( wp_timezone() ); 230 231 $expires = sprintf( $expires, date_i18n( get_option( 'date_format' ), $expiry_date->getTimestamp() + $expiry_date->getOffset() ), $expiry_date->format( 'T' ) ); 229 $timestamp = $expiry_date->getTimestamp(); 230 231 // If there's support for wp_timezone(), display the expiry date in server time. Otherwise, use UTC. 232 if ( function_exists( 'wp_timezone' ) ) { 233 $timestamp += $expiry_date->getOffset(); 234 $expiry_date->setTimezone( wp_timezone() ); 235 } 236 237 $expires = sprintf( $expires, date_i18n( get_option( 'date_format' ), $timestamp ), $expiry_date->format( 'T' ) ); 232 238 // Translators: 1) is a certificate's CN, 2) is the expiration date. 233 239 $output = sprintf( __( 'Certificate belongs to API username %1$s; %2$s.', 'woocommerce-gateway-paypal-express-checkout' ), $cert_info['subject']['CN'], $expires ); -
woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-cart-handler.php
r2394165 r2555358 35 35 add_action( 'woocommerce_after_add_to_cart_form', array( $this, 'display_paypal_button_product' ), 1 ); 36 36 add_action( 'wc_ajax_wc_ppec_generate_cart', array( $this, 'wc_ajax_generate_cart' ) ); 37 add_action( 'wp', array( $this, 'ensure_session' ) ); // Ensure there is a customer session so that nonce is not invalidated by new session created on AJAX POST request. 38 } 37 } 38 39 // Ensure there is a customer session so that nonce is not invalidated by new session created on AJAX POST request. 40 add_action( 'wp', array( $this, 'maybe_ensure_session' ) ); 39 41 40 42 add_action( 'wc_ajax_wc_ppec_update_shipping_costs', array( $this, 'wc_ajax_update_shipping_costs' ) ); … … 663 665 /** 664 666 * Creates a customer session if one is not already active. 665 */ 666 public function ensure_session() { 667 * 668 * @since 2.1.2 669 */ 670 public function maybe_ensure_session() { 667 671 // TODO: this tries to replicate Woo core functionality of checking for frontend requests. 668 672 // It can be removed once we drop support for pre-3.5 versions. … … 673 677 } 674 678 675 if ( ! empty( WC()->session ) && ! WC()->session->has_session() ) { 679 $ensure_sesion = ( 'yes' === wc_gateway_ppec()->settings->checkout_on_single_product_enabled && is_product() ) || is_wc_endpoint_url( 'order-pay' ); 680 681 if ( ! empty( WC()->session ) && ! WC()->session->has_session() && $ensure_sesion ) { 676 682 WC()->session->set_customer_session_cookie( true ); 677 683 } … … 743 749 _deprecated_function( __METHOD__, '1.2.0', '' ); 744 750 } 751 752 /** 753 * @deprecated since 2.1.2 754 */ 755 public function ensure_session() { 756 _deprecated_function( __METHOD__, '2.1.2', 'WC_Gateway_PPEC_Cart_Handler::maybe_ensure_session()' ); 757 $this->maybe_ensure_session(); 758 } 745 759 } -
woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-checkout-handler.php
r2423948 r2555358 993 993 994 994 if ( ! empty( $destination ) ) { 995 $packages[0]['destination']['country'] = $destination['country']; 996 $packages[0]['destination']['state'] = $destination['state']; 997 $packages[0]['destination']['postcode'] = $destination['postcode']; 998 $packages[0]['destination']['city'] = $destination['city']; 999 $packages[0]['destination']['address'] = $destination['address_1']; 1000 $packages[0]['destination']['address_2'] = $destination['address_2']; 995 // WC Subscriptions uses string package keys so we need to get the package key dynamically. 996 $package_key = key( $packages ); 997 998 $packages[ $package_key ]['destination']['country'] = $destination['country']; 999 $packages[ $package_key ]['destination']['state'] = $destination['state']; 1000 $packages[ $package_key ]['destination']['postcode'] = $destination['postcode']; 1001 $packages[ $package_key ]['destination']['city'] = $destination['city']; 1002 $packages[ $package_key ]['destination']['address'] = $destination['address_1']; 1003 $packages[ $package_key ]['destination']['address_2'] = $destination['address_2']; 1001 1004 } 1002 1005 -
woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-client.php
r2394165 r2555358 509 509 510 510 $item = array( 511 'name' => $name,512 'description' => $description,511 'name' => apply_filters( 'woocommerce_paypal_express_checkout_cart_line_item_name', $name, $values, $cart_item_key ), 512 'description' => apply_filters( 'woocommerce_paypal_express_checkout_cart_line_item_description', $description, $values, $cart_item_key ), 513 513 'quantity' => $values['quantity'], 514 514 'amount' => $amount, … … 521 521 foreach ( WC()->cart->get_fees() as $fee_key => $fee_values ) { 522 522 $item = array( 523 'name' => $fee_values->name,524 'description' => '',523 'name' => apply_filters( 'woocommerce_paypal_express_checkout_cart_fee_name', $fee_values->name, $fee_values, $fee_key ), 524 'description' => apply_filters( 'woocommerce_paypal_express_checkout_cart_fee_description', '', $fee_values, $fee_key ), 525 525 'quantity' => 1, 526 526 'amount' => round( $fee_values->total, $decimals ), … … 829 829 if ( 'fee' === $order_item['type'] ) { 830 830 $item = array( 831 'name' => $order_item['name'],831 'name' => apply_filters( 'woocommerce_paypal_express_checkout_order_line_item_name', $order_item['name'], $order_item, $cart_item_key ), 832 832 'quantity' => 1, 833 833 'amount' => round( $order_item['line_total'], $decimals ), … … 837 837 $product = version_compare( WC_VERSION, '3.0', '<' ) ? $order->get_product_from_item( $order_item ) : $order_item->get_product(); 838 838 $item = array( 839 'name' => $order_item['name'],839 'name' => apply_filters( 'woocommerce_paypal_express_checkout_order_line_item_name', $order_item['name'], $order_item, $cart_item_key ), 840 840 'quantity' => $order_item['qty'], 841 841 'amount' => $amount, 842 'sku' => $product->get_sku(),842 'sku' => ( $product && is_callable( array( $product, 'get_sku' ) ) ) ? $product->get_sku() : '', 843 843 ); 844 844 } -
woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-plugin.php
r2394165 r2555358 150 150 } 151 151 152 if ( function_exists( 'add_woocommerce_inbox_variant' ) ) { 153 add_woocommerce_inbox_variant(); 154 } 155 152 156 update_option( 'wc_ppec_version', $new_version ); 153 157 } … … 166 170 add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 ); 167 171 add_action( 'wp_ajax_ppec_dismiss_notice_message', array( $this, 'ajax_dismiss_notice' ) ); 172 173 add_action( 'after_plugin_row_' . plugin_basename( $this->file ), array( $this, 'ppec_upgrade_notice' ), 10, 3 ); 168 174 } 169 175 … … 276 282 } 277 283 278 if ( version_compare( WC()->version, ' 2.5', '<' ) ) {279 throw new Exception( __( 'WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5or greater', 'woocommerce-gateway-paypal-express-checkout' ), self::DEPENDENCIES_UNSATISFIED );284 if ( version_compare( WC()->version, '3.2.0', '<' ) ) { 285 throw new Exception( __( 'WooCommerce Gateway PayPal Checkout requires WooCommerce version 3.2.0 or greater', 'woocommerce-gateway-paypal-express-checkout' ), self::DEPENDENCIES_UNSATISFIED ); 280 286 } 281 287 … … 493 499 } 494 500 501 /** 502 * Displays notice to upgrade to PayPal Payments. 503 * 504 * @param string $plugin_file Path to the plugin file relative to the plugins directory. 505 * @param array $plugin_data An array of plugin data. 506 * @param string $status Status filter currently applied to the plugin list. 507 */ 508 public function ppec_upgrade_notice( $plugin_file, $plugin_data, $status ) { 509 // Load styles & scripts required for the notice. 510 wp_enqueue_style( 'ppec-upgrade-notice', plugin_dir_url( __DIR__ ) . '/assets/css/admin/ppec-upgrade-notice.css', array(), WC_GATEWAY_PPEC_VERSION ); 511 wp_enqueue_script( 'ppec-upgrade-notice-js', plugin_dir_url( __DIR__ ) . '/assets/js/admin/ppec-upgrade-notice.js', array(), WC_GATEWAY_PPEC_VERSION, false ); 512 513 // Load notice template. 514 include_once $this->plugin_path . 'templates/paypal-payments-upgrade-notice.php'; 515 } 516 495 517 /* Deprecated Functions */ 496 518 -
woocommerce-gateway-paypal-express-checkout/trunk/includes/settings/settings-ppec.php
r2394165 r2555358 427 427 'description' => __( 'Hides the specified funding methods.', 'woocommerce-gateway-paypal-express-checkout' ), 428 428 'options' => array( 429 'CREDIT' => __( 'PayPal Credit', 'woocommerce-gateway-paypal-express-checkout' ), 430 'ELV' => __( 'ELV', 'woocommerce-gateway-paypal-express-checkout' ), 431 'CARD' => __( 'Credit or debit cards', 'woocommerce-gateway-paypal-express-checkout' ), 432 'VENMO' => __( 'Venmo', 'woocommerce-gateway-paypal-express-checkout' ), 433 'SEPA' => __( 'SEPA-Lastschrift', 'woocommerce-gateway-paypal-express-checkout' ), 434 'BANCONTACT' => __( 'Bancontact', 'woocommerce-gateway-paypal-express-checkout' ), 435 'EPS' => __( 'eps', 'woocommerce-gateway-paypal-express-checkout' ), 436 'GIROPAY' => __( 'giropay', 'woocommerce-gateway-paypal-express-checkout' ), 437 'IDEAL' => __( 'iDEAL', 'woocommerce-gateway-paypal-express-checkout' ), 438 'MYBANK' => __( 'MyBank', 'woocommerce-gateway-paypal-express-checkout' ), 439 'P24' => __( 'Przelewy24', 'woocommerce-gateway-paypal-express-checkout' ), 440 'SOFORT' => __( 'Sofort', 'woocommerce-gateway-paypal-express-checkout' ), 429 'CARD' => __( 'Credit or debit cards', 'woocommerce-gateway-paypal-express-checkout' ), 430 'CREDIT' => __( 'PayPal Credit', 'woocommerce-gateway-paypal-express-checkout' ), 431 'BANCONTACT' => __( 'Bancontact', 'woocommerce-gateway-paypal-express-checkout' ), 432 'BLIK' => __( 'BLIK', 'woocommerce-gateway-paypal-express-checkout' ), 433 'ELV' => __( 'ELV', 'woocommerce-gateway-paypal-express-checkout' ), 434 'EPS' => __( 'eps', 'woocommerce-gateway-paypal-express-checkout' ), 435 'GIROPAY' => __( 'giropay', 'woocommerce-gateway-paypal-express-checkout' ), 436 'IDEAL' => __( 'iDEAL', 'woocommerce-gateway-paypal-express-checkout' ), 437 'MERCADOPAGO' => __( 'MercadoPago', 'woocommerce-gateway-paypal-express-checkout' ), 438 'MYBANK' => __( 'MyBank', 'woocommerce-gateway-paypal-express-checkout' ), 439 'P24' => __( 'Przelewy24', 'woocommerce-gateway-paypal-express-checkout' ), 440 'SEPA' => __( 'SEPA-Lastschrift', 'woocommerce-gateway-paypal-express-checkout' ), 441 'SOFORT' => __( 'Sofort', 'woocommerce-gateway-paypal-express-checkout' ), 442 'VENMO' => __( 'Venmo', 'woocommerce-gateway-paypal-express-checkout' ), 441 443 ), 442 444 ), … … 565 567 566 568 $settings['cart_checkout_enabled'] = array( 567 'title' => __( ' Checkout oncart page', 'woocommerce-gateway-paypal-express-checkout' ),569 'title' => __( 'Enable on the cart page', 'woocommerce-gateway-paypal-express-checkout' ), 568 570 'type' => 'checkbox', 569 571 'class' => 'woocommerce_ppec_paypal_visibility_toggle', 570 'label' => __( 'Enable PayPal Checkout on the cart page', 'woocommerce-gateway-paypal-express-checkout' ), 571 'description' => __( 'This shows or hides the PayPal Checkout button on the cart page.', 'woocommerce-gateway-paypal-express-checkout' ), 572 'label' => __( 'Enable PayPal Checkout buttons on the cart page', 'woocommerce-gateway-paypal-express-checkout' ), 572 573 'desc_tip' => true, 573 574 'default' => 'yes', … … 612 613 613 614 $settings['checkout_on_single_product_enabled'] = array( 614 'title' => __( ' Checkout on Single Product', 'woocommerce-gateway-paypal-express-checkout' ),615 'title' => __( 'Enable on the single product page', 'woocommerce-gateway-paypal-express-checkout' ), 615 616 'type' => 'checkbox', 616 617 'class' => 'woocommerce_ppec_paypal_visibility_toggle', 617 'label' => __( ' Checkout on Single Product', 'woocommerce-gateway-paypal-express-checkout' ),618 'label' => __( 'Enable PayPal Checkout buttons on the single product page', 'woocommerce-gateway-paypal-express-checkout' ), 618 619 'default' => 'yes', 619 620 'desc_tip' => true, 620 'description' => __( 'Enable PayPal Checkout on Single Product view.', 'woocommerce-gateway-paypal-express-checkout' ),621 621 ); 622 622 … … 646 646 647 647 $settings['mark_enabled'] = array( 648 'title' => __( ' PayPal Mark', 'woocommerce-gateway-paypal-express-checkout' ),648 'title' => __( 'Enable on the checkout page', 'woocommerce-gateway-paypal-express-checkout' ), 649 649 'type' => 'checkbox', 650 650 'class' => 'woocommerce_ppec_paypal_visibility_toggle', 651 'label' => __( 'Enable the PayPal Mark on regular checkout', 'woocommerce-gateway-paypal-express-checkout' ), 652 'description' => __( 'This enables the PayPal mark, which can be shown on regular WooCommerce checkout to use PayPal Checkout like a regular WooCommerce gateway.', 'woocommerce-gateway-paypal-express-checkout' ), 651 'label' => __( 'Enable PayPal Checkout buttons on the regular checkout page', 'woocommerce-gateway-paypal-express-checkout' ), 653 652 'desc_tip' => true, 654 653 'default' => 'yes', -
woocommerce-gateway-paypal-express-checkout/trunk/languages/woocommerce-gateway-paypal-express-checkout.pot
r2423948 r2555358 1 # Copyright (C) 202 0WooCommerce1 # Copyright (C) 2021 WooCommerce 2 2 # This file is distributed under the same license as the WooCommerce PayPal Checkout Gateway plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1. 1\n"5 "Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 0-11-23T22:15:57+00:00\n"12 "POT-Creation-Date: 2021-06-28T15:10:18+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 69 69 70 70 #. Translators: 1) is a certificate's CN, 2) is the expiration date. 71 #: includes/abstracts/abstract-wc-gateway-ppec.php:23 371 #: includes/abstracts/abstract-wc-gateway-ppec.php:239 72 72 msgid "Certificate belongs to API username %1$s; %2$s." 73 73 msgstr "" 74 74 75 #: includes/abstracts/abstract-wc-gateway-ppec.php:2 3575 #: includes/abstracts/abstract-wc-gateway-ppec.php:241 76 76 msgid "The certificate on file is not valid." 77 77 msgstr "" 78 78 79 #: includes/abstracts/abstract-wc-gateway-ppec.php:30 079 #: includes/abstracts/abstract-wc-gateway-ppec.php:306 80 80 msgid "Error: You must enter API username." 81 81 msgstr "" 82 82 83 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 0483 #: includes/abstracts/abstract-wc-gateway-ppec.php:310 84 84 msgid "Error: You must enter API password." 85 85 msgstr "" 86 86 87 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 0887 #: includes/abstracts/abstract-wc-gateway-ppec.php:314 88 88 msgid "Error: You must provide API signature or certificate." 89 89 msgstr "" 90 90 91 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 1892 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 4591 #: includes/abstracts/abstract-wc-gateway-ppec.php:324 92 #: includes/abstracts/abstract-wc-gateway-ppec.php:351 93 93 msgid "Error: The API credentials you provided are not valid. Please double-check that you entered them correctly and try again." 94 94 msgstr "" 95 95 96 #: includes/abstracts/abstract-wc-gateway-ppec.php:32 296 #: includes/abstracts/abstract-wc-gateway-ppec.php:328 97 97 msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct." 98 98 msgstr "" 99 99 100 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 29100 #: includes/abstracts/abstract-wc-gateway-ppec.php:335 101 101 msgid "Error: The API certificate is not valid." 102 102 msgstr "" 103 103 104 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 36104 #: includes/abstracts/abstract-wc-gateway-ppec.php:342 105 105 msgid "Error: The API certificate has expired." 106 106 msgstr "" 107 107 108 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 38108 #: includes/abstracts/abstract-wc-gateway-ppec.php:344 109 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 110 msgstr "" 111 111 112 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 48112 #: includes/abstracts/abstract-wc-gateway-ppec.php:354 113 113 msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct." 114 114 msgstr "" 115 115 116 #: includes/abstracts/abstract-wc-gateway-ppec.php:3 67116 #: includes/abstracts/abstract-wc-gateway-ppec.php:373 117 117 msgid "The \"require billing address\" option is not enabled by your account and has been disabled." 118 118 msgstr "" 119 119 120 #: includes/abstracts/abstract-wc-gateway-ppec.php:39 2120 #: includes/abstracts/abstract-wc-gateway-ppec.php:398 121 121 msgid "Refund Error: You need to specify a refund amount." 122 122 msgstr "" 123 123 124 #: includes/abstracts/abstract-wc-gateway-ppec.php:4 04124 #: includes/abstracts/abstract-wc-gateway-ppec.php:410 125 125 msgid "Refund Error: Sorry! This is not a refundable transaction." 126 126 msgstr "" 127 127 128 128 #. Translators: placeholder is a transaction ID. 129 #: includes/abstracts/abstract-wc-gateway-ppec.php:4 17130 #: includes/abstracts/abstract-wc-gateway-ppec.php:44 2131 #: includes/abstracts/abstract-wc-gateway-ppec.php: 494129 #: includes/abstracts/abstract-wc-gateway-ppec.php:423 130 #: includes/abstracts/abstract-wc-gateway-ppec.php:448 131 #: includes/abstracts/abstract-wc-gateway-ppec.php:500 132 132 msgid "PayPal refund completed; transaction ID = %s" 133 133 msgstr "" 134 134 135 #: includes/abstracts/abstract-wc-gateway-ppec.php:4 66135 #: includes/abstracts/abstract-wc-gateway-ppec.php:472 136 136 msgid "Refund Error: All transactions have been fully refunded. There is no amount left to refund" 137 137 msgstr "" 138 138 139 139 #. Translators: placeholder is an amount (with currency symbol). 140 #: includes/abstracts/abstract-wc-gateway-ppec.php:4 69140 #: includes/abstracts/abstract-wc-gateway-ppec.php:475 141 141 msgid "Refund Error: The requested refund amount is too large. The refund amount must be less than or equal to %s." 142 142 msgstr "" 143 143 144 144 #. Translators: placeholder is an image's URL. 145 #: includes/abstracts/abstract-wc-gateway-ppec.php:5 87145 #: includes/abstracts/abstract-wc-gateway-ppec.php:593 146 146 msgid "Already using URL as image: %s" 147 147 msgstr "" 148 148 149 #: includes/abstracts/abstract-wc-gateway-ppec.php: 595149 #: includes/abstracts/abstract-wc-gateway-ppec.php:601 150 150 msgid "Select a image to upload" 151 151 msgstr "" 152 152 153 #: includes/abstracts/abstract-wc-gateway-ppec.php: 596153 #: includes/abstracts/abstract-wc-gateway-ppec.php:602 154 154 msgid "Use this image" 155 155 msgstr "" 156 156 157 #: includes/abstracts/abstract-wc-gateway-ppec.php: 597158 #: includes/abstracts/abstract-wc-gateway-ppec.php:60 0157 #: includes/abstracts/abstract-wc-gateway-ppec.php:603 158 #: includes/abstracts/abstract-wc-gateway-ppec.php:606 159 159 msgid "Add image" 160 160 msgstr "" 161 161 162 #: includes/abstracts/abstract-wc-gateway-ppec.php:6 08162 #: includes/abstracts/abstract-wc-gateway-ppec.php:614 163 163 msgid "Remove image" 164 164 msgstr "" 165 165 166 #: includes/abstracts/abstract-wc-gateway-ppec.php:6 47166 #: includes/abstracts/abstract-wc-gateway-ppec.php:653 167 167 msgid "Remove" 168 168 msgstr "" … … 309 309 msgstr "" 310 310 311 #: includes/class-wc-gateway-ppec-cart-handler.php:7 4312 #: includes/class-wc-gateway-ppec-cart-handler.php:14 4313 #: includes/class-wc-gateway-ppec-cart-handler.php:16 5311 #: includes/class-wc-gateway-ppec-cart-handler.php:76 312 #: includes/class-wc-gateway-ppec-cart-handler.php:146 313 #: includes/class-wc-gateway-ppec-cart-handler.php:167 314 314 msgid "Cheatin’ huh?" 315 315 msgstr "" 316 316 317 #: includes/class-wc-gateway-ppec-cart-handler.php:3 29318 #: includes/class-wc-gateway-ppec-cart-handler.php:37 6319 #: includes/class-wc-gateway-ppec-cart-handler.php:41 1317 #: includes/class-wc-gateway-ppec-cart-handler.php:331 318 #: includes/class-wc-gateway-ppec-cart-handler.php:378 319 #: includes/class-wc-gateway-ppec-cart-handler.php:413 320 320 msgid "Check out with PayPal" 321 321 msgstr "" 322 322 323 #: includes/class-wc-gateway-ppec-cart-handler.php:36 5323 #: includes/class-wc-gateway-ppec-cart-handler.php:367 324 324 msgid "OR" 325 325 msgstr "" 326 326 327 #: includes/class-wc-gateway-ppec-cart-handler.php:38 1327 #: includes/class-wc-gateway-ppec-cart-handler.php:383 328 328 msgid "Pay with PayPal Credit" 329 329 msgstr "" 330 330 331 #: includes/class-wc-gateway-ppec-cart-handler.php:58 5331 #: includes/class-wc-gateway-ppec-cart-handler.php:587 332 332 msgid "An error occurred while processing your PayPal payment. Please contact the store owner for assistance." 333 333 msgstr "" … … 371 371 #: includes/class-wc-gateway-ppec-checkout-handler.php:444 372 372 #: includes/class-wc-gateway-ppec-checkout-handler.php:499 373 #: includes/class-wc-gateway-ppec-checkout-handler.php:113 0373 #: includes/class-wc-gateway-ppec-checkout-handler.php:1133 374 374 msgid "Your PayPal checkout session has expired. Please check out again." 375 375 msgstr "" … … 399 399 msgstr "" 400 400 401 #: includes/class-wc-gateway-ppec-checkout-handler.php:114 1401 #: includes/class-wc-gateway-ppec-checkout-handler.php:1144 402 402 msgid "The payment method was updated for this subscription." 403 403 msgstr "" 404 404 405 #: includes/class-wc-gateway-ppec-checkout-handler.php:114 6405 #: includes/class-wc-gateway-ppec-checkout-handler.php:1149 406 406 msgid "The payment method was updated for all your current subscriptions." 407 407 msgstr "" 408 408 409 #: includes/class-wc-gateway-ppec-checkout-handler.php:115 5409 #: includes/class-wc-gateway-ppec-checkout-handler.php:1158 410 410 msgid "There was a problem updating your payment method. Please try again later or use a different payment method." 411 411 msgstr "" 412 412 413 #: includes/class-wc-gateway-ppec-checkout-handler.php:11 78413 #: includes/class-wc-gateway-ppec-checkout-handler.php:1181 414 414 msgid "You have cancelled Checkout with PayPal. The payment method was not updated." 415 415 msgstr "" … … 548 548 msgstr "" 549 549 550 #: includes/class-wc-gateway-ppec-plugin.php:17 3550 #: includes/class-wc-gateway-ppec-plugin.php:179 551 551 msgid "bootstrap() in WooCommerce Gateway PayPal Checkout plugin can only be called once" 552 552 msgstr "" 553 553 554 #: includes/class-wc-gateway-ppec-plugin.php:2 75554 #: includes/class-wc-gateway-ppec-plugin.php:281 555 555 msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce to be activated" 556 556 msgstr "" 557 557 558 #: includes/class-wc-gateway-ppec-plugin.php:2 79559 msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5or greater"560 msgstr "" 561 562 #: includes/class-wc-gateway-ppec-plugin.php:28 3558 #: includes/class-wc-gateway-ppec-plugin.php:285 559 msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 3.2.0 or greater" 560 msgstr "" 561 562 #: includes/class-wc-gateway-ppec-plugin.php:289 563 563 msgid "WooCommerce Gateway PayPal Checkout requires cURL to be installed on your server" 564 564 msgstr "" 565 565 566 #: includes/class-wc-gateway-ppec-plugin.php:2 86566 #: includes/class-wc-gateway-ppec-plugin.php:292 567 567 msgid "WooCommerce Gateway PayPal Checkout requires OpenSSL >= 1.0.1 to be installed on your server" 568 568 msgstr "" 569 569 570 570 #. Translators: placeholder is the URL of the gateway settings page. 571 #: includes/class-wc-gateway-ppec-plugin.php:3 14571 #: includes/class-wc-gateway-ppec-plugin.php:320 572 572 msgid "PayPal Checkout is almost ready. To get started, <a href=\"%s\">connect your PayPal account</a>." 573 573 msgstr "" 574 574 575 #: includes/class-wc-gateway-ppec-plugin.php:4 44575 #: includes/class-wc-gateway-ppec-plugin.php:450 576 576 msgid "Settings" 577 577 msgstr "" 578 578 579 #: includes/class-wc-gateway-ppec-plugin.php:46 3579 #: includes/class-wc-gateway-ppec-plugin.php:469 580 580 msgid "View Documentation" 581 581 msgstr "" 582 582 583 #: includes/class-wc-gateway-ppec-plugin.php:46 3583 #: includes/class-wc-gateway-ppec-plugin.php:469 584 584 msgid "Docs" 585 585 msgstr "" 586 586 587 #: includes/class-wc-gateway-ppec-plugin.php:4 64587 #: includes/class-wc-gateway-ppec-plugin.php:470 588 588 msgid "Open a support request at WooCommerce.com" 589 589 msgstr "" 590 590 591 #: includes/class-wc-gateway-ppec-plugin.php:4 64591 #: includes/class-wc-gateway-ppec-plugin.php:470 592 592 msgid "Support" 593 593 msgstr "" 594 594 595 595 #. Translators: placeholder is the URL of the gateway settings page. 596 #: includes/class-wc-gateway-ppec-plugin.php:5 20596 #: includes/class-wc-gateway-ppec-plugin.php:542 597 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 598 msgstr "" … … 665 665 666 666 #: includes/class-wc-gateway-ppec-with-paypal-credit.php:15 667 #: includes/settings/settings-ppec.php:4 29667 #: includes/settings/settings-ppec.php:430 668 668 msgid "PayPal Credit" 669 669 msgstr "" … … 724 724 725 725 #: includes/settings/settings-ppec.php:63 726 #: includes/settings/settings-ppec.php:44 4726 #: includes/settings/settings-ppec.php:446 727 727 msgid "Enable PayPal Credit to eligible customers" 728 728 msgstr "" … … 1051 1051 1052 1052 #: includes/settings/settings-ppec.php:344 1053 #: includes/settings/settings-ppec.php:5 281053 #: includes/settings/settings-ppec.php:530 1054 1054 msgid "Blue" 1055 1055 msgstr "" … … 1060 1060 1061 1061 #: includes/settings/settings-ppec.php:346 1062 #: includes/settings/settings-ppec.php:51 21063 #: includes/settings/settings-ppec.php:52 71062 #: includes/settings/settings-ppec.php:514 1063 #: includes/settings/settings-ppec.php:529 1064 1064 msgid "Black" 1065 1065 msgstr "" … … 1148 1148 msgstr "" 1149 1149 1150 #: includes/settings/settings-ppec.php:430 1150 #: includes/settings/settings-ppec.php:429 1151 msgid "Credit or debit cards" 1152 msgstr "" 1153 1154 #: includes/settings/settings-ppec.php:431 1155 msgid "Bancontact" 1156 msgstr "" 1157 1158 #: includes/settings/settings-ppec.php:432 1159 msgid "BLIK" 1160 msgstr "" 1161 1162 #: includes/settings/settings-ppec.php:433 1151 1163 msgid "ELV" 1152 1164 msgstr "" 1153 1165 1154 #: includes/settings/settings-ppec.php:4311155 msgid "Credit or debit cards"1156 msgstr ""1157 1158 #: includes/settings/settings-ppec.php:4321159 msgid "Venmo"1160 msgstr ""1161 1162 #: includes/settings/settings-ppec.php:4331163 msgid "SEPA-Lastschrift"1164 msgstr ""1165 1166 1166 #: includes/settings/settings-ppec.php:434 1167 msgid " Bancontact"1167 msgid "eps" 1168 1168 msgstr "" 1169 1169 1170 1170 #: includes/settings/settings-ppec.php:435 1171 msgid " eps"1171 msgid "giropay" 1172 1172 msgstr "" 1173 1173 1174 1174 #: includes/settings/settings-ppec.php:436 1175 msgid " giropay"1175 msgid "iDEAL" 1176 1176 msgstr "" 1177 1177 1178 1178 #: includes/settings/settings-ppec.php:437 1179 msgid " iDEAL"1179 msgid "MercadoPago" 1180 1180 msgstr "" 1181 1181 … … 1189 1189 1190 1190 #: includes/settings/settings-ppec.php:440 1191 msgid "SEPA-Lastschrift" 1192 msgstr "" 1193 1194 #: includes/settings/settings-ppec.php:441 1191 1195 msgid "Sofort" 1192 1196 msgstr "" 1193 1197 1194 #: includes/settings/settings-ppec.php:460 1198 #: includes/settings/settings-ppec.php:442 1199 msgid "Venmo" 1200 msgstr "" 1201 1202 #: includes/settings/settings-ppec.php:462 1195 1203 msgid "Enable PayPal Credit messages" 1196 1204 msgstr "" 1197 1205 1198 #: includes/settings/settings-ppec.php:46 21206 #: includes/settings/settings-ppec.php:464 1199 1207 msgid "Display credit messages on your website to promote special financing offers, which help increase sales." 1200 1208 msgstr "" 1201 1209 1202 #: includes/settings/settings-ppec.php:46 51210 #: includes/settings/settings-ppec.php:467 1203 1211 msgid "Credit Messaging Layout" 1204 1212 msgstr "" 1205 1213 1206 #: includes/settings/settings-ppec.php:47 01214 #: includes/settings/settings-ppec.php:472 1207 1215 msgid "Text" 1208 1216 msgstr "" 1209 1217 1210 #: includes/settings/settings-ppec.php:47 11218 #: includes/settings/settings-ppec.php:473 1211 1219 msgid "Graphic" 1212 1220 msgstr "" 1213 1221 1214 #: includes/settings/settings-ppec.php:47 51222 #: includes/settings/settings-ppec.php:477 1215 1223 msgid "The layout of the message." 1216 1224 msgstr "" 1217 1225 1218 #: includes/settings/settings-ppec.php:4 781226 #: includes/settings/settings-ppec.php:480 1219 1227 msgid "Credit Messaging logo" 1220 1228 msgstr "" 1221 1229 1222 #: includes/settings/settings-ppec.php:48 31230 #: includes/settings/settings-ppec.php:485 1223 1231 msgid "Primary" 1224 1232 msgstr "" 1225 1233 1226 #: includes/settings/settings-ppec.php:48 41234 #: includes/settings/settings-ppec.php:486 1227 1235 msgid "Alternative" 1228 1236 msgstr "" 1229 1237 1230 #: includes/settings/settings-ppec.php:48 51238 #: includes/settings/settings-ppec.php:487 1231 1239 msgid "In-Line" 1232 1240 msgstr "" 1233 1241 1234 #: includes/settings/settings-ppec.php:48 61242 #: includes/settings/settings-ppec.php:488 1235 1243 msgid "None" 1236 1244 msgstr "" 1237 1245 1238 #: includes/settings/settings-ppec.php:49 01246 #: includes/settings/settings-ppec.php:492 1239 1247 msgid "PayPal Credit logo used in the message." 1240 1248 msgstr "" 1241 1249 1242 #: includes/settings/settings-ppec.php:49 31250 #: includes/settings/settings-ppec.php:495 1243 1251 msgid "Credit Messaging logo position" 1244 1252 msgstr "" 1245 1253 1246 #: includes/settings/settings-ppec.php: 4981254 #: includes/settings/settings-ppec.php:500 1247 1255 msgid "Left" 1248 1256 msgstr "" 1249 1257 1250 #: includes/settings/settings-ppec.php: 4991258 #: includes/settings/settings-ppec.php:501 1251 1259 msgid "Right" 1252 1260 msgstr "" 1253 1261 1254 #: includes/settings/settings-ppec.php:50 01262 #: includes/settings/settings-ppec.php:502 1255 1263 msgid "Top" 1256 1264 msgstr "" 1257 1265 1258 #: includes/settings/settings-ppec.php:50 41266 #: includes/settings/settings-ppec.php:506 1259 1267 msgid "Position of the PayPal logo in the message." 1260 1268 msgstr "" 1261 1269 1262 #: includes/settings/settings-ppec.php:50 71270 #: includes/settings/settings-ppec.php:509 1263 1271 msgid "Credit Messaging text color" 1264 1272 msgstr "" 1265 1273 1266 #: includes/settings/settings-ppec.php:513 1274 #: includes/settings/settings-ppec.php:515 1275 #: includes/settings/settings-ppec.php:534 1276 msgid "White" 1277 msgstr "" 1278 1279 #: includes/settings/settings-ppec.php:516 1280 #: includes/settings/settings-ppec.php:531 1281 msgid "Monochrome" 1282 msgstr "" 1283 1284 #: includes/settings/settings-ppec.php:517 1285 #: includes/settings/settings-ppec.php:533 1286 msgid "Grayscale" 1287 msgstr "" 1288 1289 #: includes/settings/settings-ppec.php:521 1290 msgid "Text and logo color of the message." 1291 msgstr "" 1292 1293 #: includes/settings/settings-ppec.php:524 1294 msgid "Credit Messaging color" 1295 msgstr "" 1296 1267 1297 #: includes/settings/settings-ppec.php:532 1268 msgid "White"1269 msgstr ""1270 1271 #: includes/settings/settings-ppec.php:5141272 #: includes/settings/settings-ppec.php:5291273 msgid "Monochrome"1274 msgstr ""1275 1276 #: includes/settings/settings-ppec.php:5151277 #: includes/settings/settings-ppec.php:5311278 msgid "Grayscale"1279 msgstr ""1280 1281 #: includes/settings/settings-ppec.php:5191282 msgid "Text and logo color of the message."1283 msgstr ""1284 1285 #: includes/settings/settings-ppec.php:5221286 msgid "Credit Messaging color"1287 msgstr ""1288 1289 #: includes/settings/settings-ppec.php:5301290 1298 msgid "Gray" 1291 1299 msgstr "" 1292 1300 1293 #: includes/settings/settings-ppec.php:53 31301 #: includes/settings/settings-ppec.php:535 1294 1302 msgid "White no border" 1295 1303 msgstr "" 1296 1304 1297 #: includes/settings/settings-ppec.php:53 71305 #: includes/settings/settings-ppec.php:539 1298 1306 msgid "Color of the message." 1299 1307 msgstr "" 1300 1308 1301 #: includes/settings/settings-ppec.php:54 01309 #: includes/settings/settings-ppec.php:542 1302 1310 msgid "Credit Messaging ratio" 1303 1311 msgstr "" 1304 1312 1305 #: includes/settings/settings-ppec.php:54 51313 #: includes/settings/settings-ppec.php:547 1306 1314 msgid "1x1" 1307 1315 msgstr "" 1308 1316 1309 #: includes/settings/settings-ppec.php:54 61317 #: includes/settings/settings-ppec.php:548 1310 1318 msgid "1x4" 1311 1319 msgstr "" 1312 1320 1313 #: includes/settings/settings-ppec.php:54 71321 #: includes/settings/settings-ppec.php:549 1314 1322 msgid "8x1" 1315 1323 msgstr "" 1316 1324 1317 #: includes/settings/settings-ppec.php:5 481325 #: includes/settings/settings-ppec.php:550 1318 1326 msgid "20x1" 1319 1327 msgstr "" 1320 1328 1321 #: includes/settings/settings-ppec.php:55 21329 #: includes/settings/settings-ppec.php:554 1322 1330 msgid "Shape and size of the message." 1323 1331 msgstr "" 1324 1332 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 1333 #: includes/settings/settings-ppec.php:569 1334 msgid "Enable on the cart page" 1335 msgstr "" 1336 1337 #: includes/settings/settings-ppec.php:572 1338 msgid "Enable PayPal Checkout buttons on the cart page" 1339 msgstr "" 1340 1341 #: includes/settings/settings-ppec.php:581 1338 1342 msgid "Mini-cart Button Settings" 1339 1343 msgstr "" 1340 1344 1341 #: includes/settings/settings-ppec.php:58 61345 #: includes/settings/settings-ppec.php:587 1342 1346 #: includes/settings/settings-ppec.php:624 1343 #: includes/settings/settings-ppec.php:65 81347 #: includes/settings/settings-ppec.php:657 1344 1348 msgid "Configure Settings" 1345 1349 msgstr "" 1346 1350 1347 #: includes/settings/settings-ppec.php:58 71351 #: includes/settings/settings-ppec.php:588 1348 1352 msgid "Configure settings specific to mini-cart" 1349 1353 msgstr "" 1350 1354 1351 #: includes/settings/settings-ppec.php:59 21355 #: includes/settings/settings-ppec.php:593 1352 1356 #: includes/settings/settings-ppec.php:630 1353 #: includes/settings/settings-ppec.php:66 41357 #: includes/settings/settings-ppec.php:663 1354 1358 msgid "Optionally override global button settings above and configure buttons for this context." 1355 1359 msgstr "" 1356 1360 1357 #: includes/settings/settings-ppec.php:60 81361 #: includes/settings/settings-ppec.php:609 1358 1362 msgid "Single Product Button Settings" 1359 1363 msgstr "" 1360 1364 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." 1365 #: includes/settings/settings-ppec.php:615 1366 msgid "Enable on the single product page" 1367 msgstr "" 1368 1369 #: includes/settings/settings-ppec.php:618 1370 msgid "Enable PayPal Checkout buttons on the single product page" 1368 1371 msgstr "" 1369 1372 … … 1377 1380 1378 1381 #: includes/settings/settings-ppec.php:648 1379 msgid " PayPal Mark"1382 msgid "Enable on the checkout page" 1380 1383 msgstr "" 1381 1384 1382 1385 #: 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 1386 msgid "Enable PayPal Checkout buttons on the regular checkout page" 1387 msgstr "" 1388 1389 #: includes/settings/settings-ppec.php:658 1391 1390 msgid "Configure settings specific to regular checkout" 1392 1391 msgstr "" -
woocommerce-gateway-paypal-express-checkout/trunk/readme.txt
r2423948 r2555358 3 3 Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal 4 4 Requires at least: 4.4 5 Tested up to: 5. 55 Tested up to: 5.7 6 6 Requires PHP: 5.5 7 Stable tag: 2.1. 17 Stable tag: 2.1.2 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 102 102 103 103 == Changelog == 104 105 = 2.1.2 - 2021-06-28 = 106 * Fix - Prevent fatal error when a line item isn't a WC_Product instance. PR#872 107 * Fix - [WC Subscriptions] Update the shipping packages address using a dynamic key rather than assuming a 0 index. PR#871 108 * New - Allow hiding of funding methods MercadoPago and BLIK. PR#870 109 * Tweak - Make labels/descriptions more consistent on the settings screen. PR#771 110 * Tweak - Make WooCommerce 3.2.0 explicit. PR#868 111 * Dev - Add hooks to alter names and descriptions of line items sent to PayPal. PR#869 112 * Fix - Create session cookie only when needed. PR#793, PR#845. 113 * Tweak - Mark as compatible with latest WordPress and WooCommerce. PR#867 114 * Fix - Replace jQuery 3.x deprecated functions. PR#852 115 * Fix - Honor shape settings when rendering buttons for alternative funding sources. PR#844 116 * New - Add notice on plugins page to upgrade to PayPal Payments. PR#866 104 117 105 118 = 2.1.1 - 2020-11-24 = -
woocommerce-gateway-paypal-express-checkout/trunk/woocommerce-gateway-paypal-express-checkout.php
r2423948 r2555358 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/ 5 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. 16 * Version: 2.1.2 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com 9 * Copyright: © 20 19WooCommerce / PayPal.9 * Copyright: © 2021 WooCommerce / PayPal. 10 10 * License: GNU General Public License v3.0 11 11 * License URI: http://www.gnu.org/licenses/gpl-3.0.html 12 12 * Text Domain: woocommerce-gateway-paypal-express-checkout 13 13 * Domain Path: /languages 14 * WC tested up to: 4.715 * WC requires at least: 2.614 * WC tested up to: 5.4 15 * WC requires at least: 3.2.0 16 16 */ 17 17 /** … … 28 28 } 29 29 30 define( 'WC_GATEWAY_PPEC_VERSION', '2.1. 1' );30 define( 'WC_GATEWAY_PPEC_VERSION', '2.1.2' ); 31 31 32 32 /** … … 48 48 49 49 wc_gateway_ppec()->maybe_run(); 50 51 /** 52 * Adds the WooCommerce Inbox option on plugin activation 53 * 54 * @since 2.1.2 55 */ 56 if ( ! function_exists( 'add_woocommerce_inbox_variant' ) ) { 57 function add_woocommerce_inbox_variant() { 58 $option = 'woocommerce_inbox_variant_assignment'; 59 60 if ( false === get_option( $option, false ) ) { 61 update_option( $option, wp_rand( 1, 12 ) ); 62 } 63 } 64 } 65 register_activation_hook( __FILE__, 'add_woocommerce_inbox_variant' );
Note: See TracChangeset
for help on using the changeset viewer.