Plugin Directory

Changeset 2555358


Ignore:
Timestamp:
06/28/2021 03:35:20 PM (5 years ago)
Author:
woothemes
Message:

Version 2.1.2 bump, changelog and .pot file updates

Location:
woocommerce-gateway-paypal-express-checkout/trunk
Files:
6 added
14 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-frontend-in-context-checkout.js

    r2246009 r2555358  
    44    var $wc_ppec = {
    55        init: function() {
    6             window.paypalCheckoutReady = function() {               
     6            window.paypalCheckoutReady = function() {
    77                paypal.checkout.setup(
    88                    wc_ppec_context.payer_id,
     
    2020    var costs_updated = false;
    2121
    22     $( '#woo_pp_ec_button' ).click( function( event ) {
     22    $( '#woo_pp_ec_button' ).on( 'click', function( event ) {
    2323        if ( costs_updated ) {
    2424            costs_updated = false;
     
    4141            success: function( response ) {
    4242                costs_updated = true;
    43                 $( '#woo_pp_ec_button' ).click();
     43                $( '#woo_pp_ec_button' ).trigger( 'click' );
    4444            }
    4545        } );
  • woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-generate-cart.js

    r2311329 r2555358  
    3434                .on( 'mouseup', function( event ) {
    3535                    event.stopImmediatePropagation();
    36                     form.find( ':submit' ).click();
     36                    form.find( ':submit' ).trigger( 'click' );
    3737                } )
    3838                .find( '> *' )
  • woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-settings.js

    r2394165 r2555358  
    157157            if ( 13 === event.which ) {
    158158                event.preventDefault();
    159                 $( ".woocommerce-save-button[name='save']" ).click();
     159                $( ".woocommerce-save-button[name='save']" ).trigger( 'click' );
    160160            }
    161161        },
     
    190190        $( '#woocommerce_ppec_paypal_use_spb' ).closest( 'tr' ).hide();
    191191
    192         $( '#woocommerce_ppec_paypal_environment' ).change(function(){
     192        $( '#woocommerce_ppec_paypal_environment' ).on( 'change', function(){
    193193            $( ppec_sandbox_fields + ',' + ppec_live_fields ).closest( 'tr' ).hide();
    194194
     
    208208                }
    209209            }
    210         }).change();
    211 
    212         $( '#woocommerce_ppec_paypal_enabled' ).change(function(){
     210        }).trigger( 'change' );
     211
     212        $( '#woocommerce_ppec_paypal_enabled' ).on( 'change', function(){
    213213            if ( $( this ).is( ':checked' ) ) {
    214214                $( ppec_mark_fields ).closest( 'tr' ).show();
     
    216216                $( ppec_mark_fields ).closest( 'tr' ).hide();
    217217            }
    218         }).change();
    219 
    220         $( '#woocommerce_ppec_paypal_paymentaction' ).change(function(){
     218        }).trigger( 'change' );
     219
     220        $( '#woocommerce_ppec_paypal_paymentaction' ).on( 'change', function(){
    221221            if ( 'sale' === $( this ).val() ) {
    222222                $( '#woocommerce_ppec_paypal_instant_payments' ).closest( 'tr' ).show();
     
    224224                $( '#woocommerce_ppec_paypal_instant_payments' ).closest( 'tr' ).hide();
    225225            }
    226         }).change();
     226        }).trigger( 'change' );
    227227
    228228        if ( enable_toggle ) {
     
    247247                var selector        = $.map( refreshOnChange, function( val ) { return '[name^="woocommerce_ppec_paypal_"][name$="' + val + '"]'; } ).join( ', ' );
    248248
    249                 $( selector ).change( this.refreshUI );
     249                $( selector ).on( 'change', this.refreshUI );
    250250
    251251                // 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' );
    254254            },
    255255
     
    306306        creditSettings.init();
    307307
    308         $( '.woocommerce_ppec_paypal_button_layout' ).change( function( event ) {
     308        $( '.woocommerce_ppec_paypal_button_layout' ).on( 'change', function( event ) {
    309309            if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
    310310                return;
     
    324324                button_size_option.prop( 'disabled', isVertical );
    325325                $( 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' );
    329329
    330330        // Hide default layout and size settings if they'll be overridden anyway.
     
    336336
    337337            $( '#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' );
    339339        }
    340340
    341341        // 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 ) {
    343343            if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
    344344                return;
     
    352352                .addBack()
    353353                .toggle( checked );
    354             checked && $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ).change();
     354            checked && $( '#woocommerce_ppec_paypal_mini_cart_settings_toggle' ).trigger( 'change' );
    355355            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 ) {
    359359            // Only show settings specific to mini-cart if configured to override global settings.
    360360            var checked = $( event.target ).is( ':checked' );
    361361            $( '.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' );
    363363            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 ) {
    367367            if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
    368368                return;
     
    379379                // Show all settings in section.
    380380                $( '#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' );
    383383            }
    384384            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() {
    388388            if ( ! $( '#woocommerce_ppec_paypal_use_spb' ).is( ':checked' ) ) {
    389389                return;
     
    400400                // Show all settings in section.
    401401                $( '#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' );
    404404            }
    405405            showHideDefaultButtonSettings();
    406         } ).change();
     406        } ).trigger( 'change' );
    407407
    408408        // Make sure handlers are only attached once if script is loaded multiple times.
    409409        $( '#woocommerce_ppec_paypal_use_spb' ).off( 'change' );
    410410
    411         $( '#woocommerce_ppec_paypal_use_spb' ).change( function( event ) {
     411        $( '#woocommerce_ppec_paypal_use_spb' ).on( 'change', function( event ) {
    412412            var checked = $( event.target ).is( ':checked' );
    413413
     
    418418            if ( checked ) {
    419419                // Trigger all logic that controls visibility of other settings.
    420                 $( '.woocommerce_ppec_paypal_visibility_toggle' ).change();
     420                $( '.woocommerce_ppec_paypal_visibility_toggle' ).trigger( 'change' );
    421421            } else {
    422422                // If non-SPB mode is enabled, show all settings that may have been hidden.
     
    429429            ! checked && button_size.find( 'option[value=\"small\"]' ).prop( 'disabled', false );
    430430            $( document.body ).trigger( 'wc-enhanced-select-init' );
    431         } ).change();
     431        } ).trigger( 'change' );
    432432
    433433        // 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 ) {
    435435            if ( $( event.target ).is( ':checked' ) ) {
    436436                // 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' );
    438438            } else if ( ! $( '#woocommerce_ppec_paypal_button_size' ).val() ) {
    439439                // 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' );
    441441            }
    442442        } );
  • woocommerce-gateway-paypal-express-checkout/trunk/assets/js/wc-gateway-ppec-smart-payment-buttons.js

    r2394165 r2555358  
    2020        $( '.woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message' ).remove();
    2121        $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' );
    2323
    2424        var scrollElement = $( '.woocommerce-NoticeGroup-checkout' );
     
    187187                        .append( $( '<input type="hidden" name="paymentToken" /> ' ).attr( 'value', ! wc_ppec_context.use_checkout_js ? data.orderID : data.paymentToken ) )
    188188                        .append( $( '<input type="hidden" name="payerID" /> ' ).attr( 'value', data.payerID ) )
    189                         .submit();
     189                        .trigger( 'submit' );
    190190                } else {
    191191                    // Navigate to order confirmation URL specified in original request to PayPal from back-end.
     
    249249                        onCancel:      button_args.onCancel,
    250250                        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 }
    252252                    };
    253253
     
    269269            render();
    270270        }
     271
    271272        $( document.body ).on( 'updated_cart_totals updated_checkout', render.bind( this, false ) );
    272273    }
  • woocommerce-gateway-paypal-express-checkout/trunk/changelog.txt

    r2423948 r2555358  
    11*** 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
    215
    316= 2.1.1 - 2020-11-24 =
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/abstracts/abstract-wc-gateway-ppec.php

    r2394165 r2555358  
    227227
    228228            $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' ) );
    232238            // Translators: 1) is a certificate's CN, 2) is the expiration date.
    233239            $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  
    3535            add_action( 'woocommerce_after_add_to_cart_form', array( $this, 'display_paypal_button_product' ), 1 );
    3636            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' ) );
    3941
    4042        add_action( 'wc_ajax_wc_ppec_update_shipping_costs', array( $this, 'wc_ajax_update_shipping_costs' ) );
     
    663665    /**
    664666     * 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() {
    667671        // TODO: this tries to replicate Woo core functionality of checking for frontend requests.
    668672        // It can be removed once we drop support for pre-3.5 versions.
     
    673677        }
    674678
    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 ) {
    676682            WC()->session->set_customer_session_cookie( true );
    677683        }
     
    743749        _deprecated_function( __METHOD__, '1.2.0', '' );
    744750    }
     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    }
    745759}
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-checkout-handler.php

    r2423948 r2555358  
    993993
    994994        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'];
    10011004        }
    10021005
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-client.php

    r2394165 r2555358  
    509509
    510510            $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 ),
    513513                'quantity'    => $values['quantity'],
    514514                'amount'      => $amount,
     
    521521        foreach ( WC()->cart->get_fees() as $fee_key => $fee_values ) {
    522522            $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 ),
    525525                'quantity'    => 1,
    526526                'amount'      => round( $fee_values->total, $decimals ),
     
    829829            if ( 'fee' === $order_item['type'] ) {
    830830                $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 ),
    832832                    'quantity' => 1,
    833833                    'amount'   => round( $order_item['line_total'], $decimals ),
     
    837837                $product = version_compare( WC_VERSION, '3.0', '<' ) ? $order->get_product_from_item( $order_item ) : $order_item->get_product();
    838838                $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 ),
    840840                    'quantity' => $order_item['qty'],
    841841                    'amount'   => $amount,
    842                     'sku'      => $product->get_sku(),
     842                    'sku'      => ( $product && is_callable( array( $product, 'get_sku' ) ) ) ? $product->get_sku() : '',
    843843                );
    844844            }
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/class-wc-gateway-ppec-plugin.php

    r2394165 r2555358  
    150150        }
    151151
     152        if ( function_exists( 'add_woocommerce_inbox_variant' ) ) {
     153            add_woocommerce_inbox_variant();
     154        }
     155
    152156        update_option( 'wc_ppec_version', $new_version );
    153157    }
     
    166170        add_filter( 'plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 2 );
    167171        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 );
    168174    }
    169175
     
    276282        }
    277283
    278         if ( version_compare( WC()->version, '2.5', '<' ) ) {
    279             throw new Exception( __( 'WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5 or 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 );
    280286        }
    281287
     
    493499    }
    494500
     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
    495517    /* Deprecated Functions */
    496518
  • woocommerce-gateway-paypal-express-checkout/trunk/includes/settings/settings-ppec.php

    r2394165 r2555358  
    427427        'description' => __( 'Hides the specified funding methods.', 'woocommerce-gateway-paypal-express-checkout' ),
    428428        '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' ),
    441443        ),
    442444    ),
     
    565567
    566568$settings['cart_checkout_enabled'] = array(
    567     'title'       => __( 'Checkout on cart page', 'woocommerce-gateway-paypal-express-checkout' ),
     569    'title'       => __( 'Enable on the cart page', 'woocommerce-gateway-paypal-express-checkout' ),
    568570    'type'        => 'checkbox',
    569571    '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' ),
    572573    'desc_tip'    => true,
    573574    'default'     => 'yes',
     
    612613
    613614$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' ),
    615616    'type'        => 'checkbox',
    616617    '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' ),
    618619    'default'     => 'yes',
    619620    'desc_tip'    => true,
    620     'description' => __( 'Enable PayPal Checkout on Single Product view.', 'woocommerce-gateway-paypal-express-checkout' ),
    621621);
    622622
     
    646646
    647647$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' ),
    649649    'type'        => 'checkbox',
    650650    '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' ),
    653652    'desc_tip'    => true,
    654653    'default'     => 'yes',
  • woocommerce-gateway-paypal-express-checkout/trunk/languages/woocommerce-gateway-paypal-express-checkout.pot

    r2423948 r2555358  
    1 # Copyright (C) 2020 WooCommerce
     1# Copyright (C) 2021 WooCommerce
    22# This file is distributed under the same license as the WooCommerce PayPal Checkout Gateway plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1.1\n"
     5"Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1.2\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-11-23T22:15:57+00:00\n"
     12"POT-Creation-Date: 2021-06-28T15:10:18+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    6969
    7070#. Translators: 1) is a certificate's CN, 2) is the expiration date.
    71 #: includes/abstracts/abstract-wc-gateway-ppec.php:233
     71#: includes/abstracts/abstract-wc-gateway-ppec.php:239
    7272msgid "Certificate belongs to API username %1$s; %2$s."
    7373msgstr ""
    7474
    75 #: includes/abstracts/abstract-wc-gateway-ppec.php:235
     75#: includes/abstracts/abstract-wc-gateway-ppec.php:241
    7676msgid "The certificate on file is not valid."
    7777msgstr ""
    7878
    79 #: includes/abstracts/abstract-wc-gateway-ppec.php:300
     79#: includes/abstracts/abstract-wc-gateway-ppec.php:306
    8080msgid "Error: You must enter API username."
    8181msgstr ""
    8282
    83 #: includes/abstracts/abstract-wc-gateway-ppec.php:304
     83#: includes/abstracts/abstract-wc-gateway-ppec.php:310
    8484msgid "Error: You must enter API password."
    8585msgstr ""
    8686
    87 #: includes/abstracts/abstract-wc-gateway-ppec.php:308
     87#: includes/abstracts/abstract-wc-gateway-ppec.php:314
    8888msgid "Error: You must provide API signature or certificate."
    8989msgstr ""
    9090
    91 #: includes/abstracts/abstract-wc-gateway-ppec.php:318
    92 #: includes/abstracts/abstract-wc-gateway-ppec.php:345
     91#: includes/abstracts/abstract-wc-gateway-ppec.php:324
     92#: includes/abstracts/abstract-wc-gateway-ppec.php:351
    9393msgid "Error: The API credentials you provided are not valid.  Please double-check that you entered them correctly and try again."
    9494msgstr ""
    9595
    96 #: includes/abstracts/abstract-wc-gateway-ppec.php:322
     96#: includes/abstracts/abstract-wc-gateway-ppec.php:328
    9797msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct."
    9898msgstr ""
    9999
    100 #: includes/abstracts/abstract-wc-gateway-ppec.php:329
     100#: includes/abstracts/abstract-wc-gateway-ppec.php:335
    101101msgid "Error: The API certificate is not valid."
    102102msgstr ""
    103103
    104 #: includes/abstracts/abstract-wc-gateway-ppec.php:336
     104#: includes/abstracts/abstract-wc-gateway-ppec.php:342
    105105msgid "Error: The API certificate has expired."
    106106msgstr ""
    107107
    108 #: includes/abstracts/abstract-wc-gateway-ppec.php:338
     108#: includes/abstracts/abstract-wc-gateway-ppec.php:344
    109109msgid "Error: The API username does not match the name in the API certificate. Make sure that you have the correct API certificate."
    110110msgstr ""
    111111
    112 #: includes/abstracts/abstract-wc-gateway-ppec.php:348
     112#: includes/abstracts/abstract-wc-gateway-ppec.php:354
    113113msgid "An error occurred while trying to validate your API credentials.  Unable to verify that your API credentials are correct."
    114114msgstr ""
    115115
    116 #: includes/abstracts/abstract-wc-gateway-ppec.php:367
     116#: includes/abstracts/abstract-wc-gateway-ppec.php:373
    117117msgid "The \"require billing address\" option is not enabled by your account and has been disabled."
    118118msgstr ""
    119119
    120 #: includes/abstracts/abstract-wc-gateway-ppec.php:392
     120#: includes/abstracts/abstract-wc-gateway-ppec.php:398
    121121msgid "Refund Error: You need to specify a refund amount."
    122122msgstr ""
    123123
    124 #: includes/abstracts/abstract-wc-gateway-ppec.php:404
     124#: includes/abstracts/abstract-wc-gateway-ppec.php:410
    125125msgid "Refund Error: Sorry! This is not a refundable transaction."
    126126msgstr ""
    127127
    128128#. 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
     129#: 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
    132132msgid "PayPal refund completed; transaction ID = %s"
    133133msgstr ""
    134134
    135 #: includes/abstracts/abstract-wc-gateway-ppec.php:466
     135#: includes/abstracts/abstract-wc-gateway-ppec.php:472
    136136msgid "Refund Error: All transactions have been fully refunded. There is no amount left to refund"
    137137msgstr ""
    138138
    139139#. Translators: placeholder is an amount (with currency symbol).
    140 #: includes/abstracts/abstract-wc-gateway-ppec.php:469
     140#: includes/abstracts/abstract-wc-gateway-ppec.php:475
    141141msgid "Refund Error: The requested refund amount is too large. The refund amount must be less than or equal to %s."
    142142msgstr ""
    143143
    144144#. Translators: placeholder is an image's URL.
    145 #: includes/abstracts/abstract-wc-gateway-ppec.php:587
     145#: includes/abstracts/abstract-wc-gateway-ppec.php:593
    146146msgid "Already using URL as image: %s"
    147147msgstr ""
    148148
    149 #: includes/abstracts/abstract-wc-gateway-ppec.php:595
     149#: includes/abstracts/abstract-wc-gateway-ppec.php:601
    150150msgid "Select a image to upload"
    151151msgstr ""
    152152
    153 #: includes/abstracts/abstract-wc-gateway-ppec.php:596
     153#: includes/abstracts/abstract-wc-gateway-ppec.php:602
    154154msgid "Use this image"
    155155msgstr ""
    156156
    157 #: includes/abstracts/abstract-wc-gateway-ppec.php:597
    158 #: includes/abstracts/abstract-wc-gateway-ppec.php:600
     157#: includes/abstracts/abstract-wc-gateway-ppec.php:603
     158#: includes/abstracts/abstract-wc-gateway-ppec.php:606
    159159msgid "Add image"
    160160msgstr ""
    161161
    162 #: includes/abstracts/abstract-wc-gateway-ppec.php:608
     162#: includes/abstracts/abstract-wc-gateway-ppec.php:614
    163163msgid "Remove image"
    164164msgstr ""
    165165
    166 #: includes/abstracts/abstract-wc-gateway-ppec.php:647
     166#: includes/abstracts/abstract-wc-gateway-ppec.php:653
    167167msgid "Remove"
    168168msgstr ""
     
    309309msgstr ""
    310310
    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
     311#: 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
    314314msgid "Cheatin&#8217; huh?"
    315315msgstr ""
    316316
    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
     317#: 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
    320320msgid "Check out with PayPal"
    321321msgstr ""
    322322
    323 #: includes/class-wc-gateway-ppec-cart-handler.php:365
     323#: includes/class-wc-gateway-ppec-cart-handler.php:367
    324324msgid "OR"
    325325msgstr ""
    326326
    327 #: includes/class-wc-gateway-ppec-cart-handler.php:381
     327#: includes/class-wc-gateway-ppec-cart-handler.php:383
    328328msgid "Pay with PayPal Credit"
    329329msgstr ""
    330330
    331 #: includes/class-wc-gateway-ppec-cart-handler.php:585
     331#: includes/class-wc-gateway-ppec-cart-handler.php:587
    332332msgid "An error occurred while processing your PayPal payment. Please contact the store owner for assistance."
    333333msgstr ""
     
    371371#: includes/class-wc-gateway-ppec-checkout-handler.php:444
    372372#: includes/class-wc-gateway-ppec-checkout-handler.php:499
    373 #: includes/class-wc-gateway-ppec-checkout-handler.php:1130
     373#: includes/class-wc-gateway-ppec-checkout-handler.php:1133
    374374msgid "Your PayPal checkout session has expired. Please check out again."
    375375msgstr ""
     
    399399msgstr ""
    400400
    401 #: includes/class-wc-gateway-ppec-checkout-handler.php:1141
     401#: includes/class-wc-gateway-ppec-checkout-handler.php:1144
    402402msgid "The payment method was updated for this subscription."
    403403msgstr ""
    404404
    405 #: includes/class-wc-gateway-ppec-checkout-handler.php:1146
     405#: includes/class-wc-gateway-ppec-checkout-handler.php:1149
    406406msgid "The payment method was updated for all your current subscriptions."
    407407msgstr ""
    408408
    409 #: includes/class-wc-gateway-ppec-checkout-handler.php:1155
     409#: includes/class-wc-gateway-ppec-checkout-handler.php:1158
    410410msgid "There was a problem updating your payment method. Please try again later or use a different payment method."
    411411msgstr ""
    412412
    413 #: includes/class-wc-gateway-ppec-checkout-handler.php:1178
     413#: includes/class-wc-gateway-ppec-checkout-handler.php:1181
    414414msgid "You have cancelled Checkout with PayPal. The payment method was not updated."
    415415msgstr ""
     
    548548msgstr ""
    549549
    550 #: includes/class-wc-gateway-ppec-plugin.php:173
     550#: includes/class-wc-gateway-ppec-plugin.php:179
    551551msgid "bootstrap() in WooCommerce Gateway PayPal Checkout plugin can only be called once"
    552552msgstr ""
    553553
    554 #: includes/class-wc-gateway-ppec-plugin.php:275
     554#: includes/class-wc-gateway-ppec-plugin.php:281
    555555msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce to be activated"
    556556msgstr ""
    557557
    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
     558#: includes/class-wc-gateway-ppec-plugin.php:285
     559msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 3.2.0 or greater"
     560msgstr ""
     561
     562#: includes/class-wc-gateway-ppec-plugin.php:289
    563563msgid "WooCommerce Gateway PayPal Checkout requires cURL to be installed on your server"
    564564msgstr ""
    565565
    566 #: includes/class-wc-gateway-ppec-plugin.php:286
     566#: includes/class-wc-gateway-ppec-plugin.php:292
    567567msgid "WooCommerce Gateway PayPal Checkout requires OpenSSL >= 1.0.1 to be installed on your server"
    568568msgstr ""
    569569
    570570#. Translators: placeholder is the URL of the gateway settings page.
    571 #: includes/class-wc-gateway-ppec-plugin.php:314
     571#: includes/class-wc-gateway-ppec-plugin.php:320
    572572msgid "PayPal Checkout is almost ready. To get started, <a href=\"%s\">connect your PayPal account</a>."
    573573msgstr ""
    574574
    575 #: includes/class-wc-gateway-ppec-plugin.php:444
     575#: includes/class-wc-gateway-ppec-plugin.php:450
    576576msgid "Settings"
    577577msgstr ""
    578578
    579 #: includes/class-wc-gateway-ppec-plugin.php:463
     579#: includes/class-wc-gateway-ppec-plugin.php:469
    580580msgid "View Documentation"
    581581msgstr ""
    582582
    583 #: includes/class-wc-gateway-ppec-plugin.php:463
     583#: includes/class-wc-gateway-ppec-plugin.php:469
    584584msgid "Docs"
    585585msgstr ""
    586586
    587 #: includes/class-wc-gateway-ppec-plugin.php:464
     587#: includes/class-wc-gateway-ppec-plugin.php:470
    588588msgid "Open a support request at WooCommerce.com"
    589589msgstr ""
    590590
    591 #: includes/class-wc-gateway-ppec-plugin.php:464
     591#: includes/class-wc-gateway-ppec-plugin.php:470
    592592msgid "Support"
    593593msgstr ""
    594594
    595595#. Translators: placeholder is the URL of the gateway settings page.
    596 #: includes/class-wc-gateway-ppec-plugin.php:520
     596#: includes/class-wc-gateway-ppec-plugin.php:542
    597597msgid "<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>"
    598598msgstr ""
     
    665665
    666666#: includes/class-wc-gateway-ppec-with-paypal-credit.php:15
    667 #: includes/settings/settings-ppec.php:429
     667#: includes/settings/settings-ppec.php:430
    668668msgid "PayPal Credit"
    669669msgstr ""
     
    724724
    725725#: includes/settings/settings-ppec.php:63
    726 #: includes/settings/settings-ppec.php:444
     726#: includes/settings/settings-ppec.php:446
    727727msgid "Enable PayPal Credit to eligible customers"
    728728msgstr ""
     
    10511051
    10521052#: includes/settings/settings-ppec.php:344
    1053 #: includes/settings/settings-ppec.php:528
     1053#: includes/settings/settings-ppec.php:530
    10541054msgid "Blue"
    10551055msgstr ""
     
    10601060
    10611061#: includes/settings/settings-ppec.php:346
    1062 #: includes/settings/settings-ppec.php:512
    1063 #: includes/settings/settings-ppec.php:527
     1062#: includes/settings/settings-ppec.php:514
     1063#: includes/settings/settings-ppec.php:529
    10641064msgid "Black"
    10651065msgstr ""
     
    11481148msgstr ""
    11491149
    1150 #: includes/settings/settings-ppec.php:430
     1150#: includes/settings/settings-ppec.php:429
     1151msgid "Credit or debit cards"
     1152msgstr ""
     1153
     1154#: includes/settings/settings-ppec.php:431
     1155msgid "Bancontact"
     1156msgstr ""
     1157
     1158#: includes/settings/settings-ppec.php:432
     1159msgid "BLIK"
     1160msgstr ""
     1161
     1162#: includes/settings/settings-ppec.php:433
    11511163msgid "ELV"
    11521164msgstr ""
    11531165
    1154 #: includes/settings/settings-ppec.php:431
    1155 msgid "Credit or debit cards"
    1156 msgstr ""
    1157 
    1158 #: includes/settings/settings-ppec.php:432
    1159 msgid "Venmo"
    1160 msgstr ""
    1161 
    1162 #: includes/settings/settings-ppec.php:433
    1163 msgid "SEPA-Lastschrift"
    1164 msgstr ""
    1165 
    11661166#: includes/settings/settings-ppec.php:434
    1167 msgid "Bancontact"
     1167msgid "eps"
    11681168msgstr ""
    11691169
    11701170#: includes/settings/settings-ppec.php:435
    1171 msgid "eps"
     1171msgid "giropay"
    11721172msgstr ""
    11731173
    11741174#: includes/settings/settings-ppec.php:436
    1175 msgid "giropay"
     1175msgid "iDEAL"
    11761176msgstr ""
    11771177
    11781178#: includes/settings/settings-ppec.php:437
    1179 msgid "iDEAL"
     1179msgid "MercadoPago"
    11801180msgstr ""
    11811181
     
    11891189
    11901190#: includes/settings/settings-ppec.php:440
     1191msgid "SEPA-Lastschrift"
     1192msgstr ""
     1193
     1194#: includes/settings/settings-ppec.php:441
    11911195msgid "Sofort"
    11921196msgstr ""
    11931197
    1194 #: includes/settings/settings-ppec.php:460
     1198#: includes/settings/settings-ppec.php:442
     1199msgid "Venmo"
     1200msgstr ""
     1201
     1202#: includes/settings/settings-ppec.php:462
    11951203msgid "Enable PayPal Credit messages"
    11961204msgstr ""
    11971205
    1198 #: includes/settings/settings-ppec.php:462
     1206#: includes/settings/settings-ppec.php:464
    11991207msgid "Display credit messages on your website to promote special financing offers, which help increase sales."
    12001208msgstr ""
    12011209
    1202 #: includes/settings/settings-ppec.php:465
     1210#: includes/settings/settings-ppec.php:467
    12031211msgid "Credit Messaging Layout"
    12041212msgstr ""
    12051213
    1206 #: includes/settings/settings-ppec.php:470
     1214#: includes/settings/settings-ppec.php:472
    12071215msgid "Text"
    12081216msgstr ""
    12091217
    1210 #: includes/settings/settings-ppec.php:471
     1218#: includes/settings/settings-ppec.php:473
    12111219msgid "Graphic"
    12121220msgstr ""
    12131221
    1214 #: includes/settings/settings-ppec.php:475
     1222#: includes/settings/settings-ppec.php:477
    12151223msgid "The layout of the message."
    12161224msgstr ""
    12171225
    1218 #: includes/settings/settings-ppec.php:478
     1226#: includes/settings/settings-ppec.php:480
    12191227msgid "Credit Messaging logo"
    12201228msgstr ""
    12211229
    1222 #: includes/settings/settings-ppec.php:483
     1230#: includes/settings/settings-ppec.php:485
    12231231msgid "Primary"
    12241232msgstr ""
    12251233
    1226 #: includes/settings/settings-ppec.php:484
     1234#: includes/settings/settings-ppec.php:486
    12271235msgid "Alternative"
    12281236msgstr ""
    12291237
    1230 #: includes/settings/settings-ppec.php:485
     1238#: includes/settings/settings-ppec.php:487
    12311239msgid "In-Line"
    12321240msgstr ""
    12331241
    1234 #: includes/settings/settings-ppec.php:486
     1242#: includes/settings/settings-ppec.php:488
    12351243msgid "None"
    12361244msgstr ""
    12371245
    1238 #: includes/settings/settings-ppec.php:490
     1246#: includes/settings/settings-ppec.php:492
    12391247msgid "PayPal Credit logo used in the message."
    12401248msgstr ""
    12411249
    1242 #: includes/settings/settings-ppec.php:493
     1250#: includes/settings/settings-ppec.php:495
    12431251msgid "Credit Messaging logo position"
    12441252msgstr ""
    12451253
    1246 #: includes/settings/settings-ppec.php:498
     1254#: includes/settings/settings-ppec.php:500
    12471255msgid "Left"
    12481256msgstr ""
    12491257
    1250 #: includes/settings/settings-ppec.php:499
     1258#: includes/settings/settings-ppec.php:501
    12511259msgid "Right"
    12521260msgstr ""
    12531261
    1254 #: includes/settings/settings-ppec.php:500
     1262#: includes/settings/settings-ppec.php:502
    12551263msgid "Top"
    12561264msgstr ""
    12571265
    1258 #: includes/settings/settings-ppec.php:504
     1266#: includes/settings/settings-ppec.php:506
    12591267msgid "Position of the PayPal logo in the message."
    12601268msgstr ""
    12611269
    1262 #: includes/settings/settings-ppec.php:507
     1270#: includes/settings/settings-ppec.php:509
    12631271msgid "Credit Messaging text color"
    12641272msgstr ""
    12651273
    1266 #: includes/settings/settings-ppec.php:513
     1274#: includes/settings/settings-ppec.php:515
     1275#: includes/settings/settings-ppec.php:534
     1276msgid "White"
     1277msgstr ""
     1278
     1279#: includes/settings/settings-ppec.php:516
     1280#: includes/settings/settings-ppec.php:531
     1281msgid "Monochrome"
     1282msgstr ""
     1283
     1284#: includes/settings/settings-ppec.php:517
     1285#: includes/settings/settings-ppec.php:533
     1286msgid "Grayscale"
     1287msgstr ""
     1288
     1289#: includes/settings/settings-ppec.php:521
     1290msgid "Text and logo color of the message."
     1291msgstr ""
     1292
     1293#: includes/settings/settings-ppec.php:524
     1294msgid "Credit Messaging color"
     1295msgstr ""
     1296
    12671297#: 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
    12901298msgid "Gray"
    12911299msgstr ""
    12921300
    1293 #: includes/settings/settings-ppec.php:533
     1301#: includes/settings/settings-ppec.php:535
    12941302msgid "White no border"
    12951303msgstr ""
    12961304
    1297 #: includes/settings/settings-ppec.php:537
     1305#: includes/settings/settings-ppec.php:539
    12981306msgid "Color of the message."
    12991307msgstr ""
    13001308
    1301 #: includes/settings/settings-ppec.php:540
     1309#: includes/settings/settings-ppec.php:542
    13021310msgid "Credit Messaging ratio"
    13031311msgstr ""
    13041312
    1305 #: includes/settings/settings-ppec.php:545
     1313#: includes/settings/settings-ppec.php:547
    13061314msgid "1x1"
    13071315msgstr ""
    13081316
    1309 #: includes/settings/settings-ppec.php:546
     1317#: includes/settings/settings-ppec.php:548
    13101318msgid "1x4"
    13111319msgstr ""
    13121320
    1313 #: includes/settings/settings-ppec.php:547
     1321#: includes/settings/settings-ppec.php:549
    13141322msgid "8x1"
    13151323msgstr ""
    13161324
    1317 #: includes/settings/settings-ppec.php:548
     1325#: includes/settings/settings-ppec.php:550
    13181326msgid "20x1"
    13191327msgstr ""
    13201328
    1321 #: includes/settings/settings-ppec.php:552
     1329#: includes/settings/settings-ppec.php:554
    13221330msgid "Shape and size of the message."
    13231331msgstr ""
    13241332
    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
     1334msgid "Enable on the cart page"
     1335msgstr ""
     1336
     1337#: includes/settings/settings-ppec.php:572
     1338msgid "Enable PayPal Checkout buttons on the cart page"
     1339msgstr ""
     1340
     1341#: includes/settings/settings-ppec.php:581
    13381342msgid "Mini-cart Button Settings"
    13391343msgstr ""
    13401344
    1341 #: includes/settings/settings-ppec.php:586
     1345#: includes/settings/settings-ppec.php:587
    13421346#: includes/settings/settings-ppec.php:624
    1343 #: includes/settings/settings-ppec.php:658
     1347#: includes/settings/settings-ppec.php:657
    13441348msgid "Configure Settings"
    13451349msgstr ""
    13461350
    1347 #: includes/settings/settings-ppec.php:587
     1351#: includes/settings/settings-ppec.php:588
    13481352msgid "Configure settings specific to mini-cart"
    13491353msgstr ""
    13501354
    1351 #: includes/settings/settings-ppec.php:592
     1355#: includes/settings/settings-ppec.php:593
    13521356#: includes/settings/settings-ppec.php:630
    1353 #: includes/settings/settings-ppec.php:664
     1357#: includes/settings/settings-ppec.php:663
    13541358msgid "Optionally override global button settings above and configure buttons for this context."
    13551359msgstr ""
    13561360
    1357 #: includes/settings/settings-ppec.php:608
     1361#: includes/settings/settings-ppec.php:609
    13581362msgid "Single Product Button Settings"
    13591363msgstr ""
    13601364
    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
     1366msgid "Enable on the single product page"
     1367msgstr ""
     1368
     1369#: includes/settings/settings-ppec.php:618
     1370msgid "Enable PayPal Checkout buttons on the single product page"
    13681371msgstr ""
    13691372
     
    13771380
    13781381#: includes/settings/settings-ppec.php:648
    1379 msgid "PayPal Mark"
     1382msgid "Enable on the checkout page"
    13801383msgstr ""
    13811384
    13821385#: 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
     1386msgid "Enable PayPal Checkout buttons on the regular checkout page"
     1387msgstr ""
     1388
     1389#: includes/settings/settings-ppec.php:658
    13911390msgid "Configure settings specific to regular checkout"
    13921391msgstr ""
  • woocommerce-gateway-paypal-express-checkout/trunk/readme.txt

    r2423948 r2555358  
    33Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal
    44Requires at least: 4.4
    5 Tested up to: 5.5
     5Tested up to: 5.7
    66Requires PHP: 5.5
    7 Stable tag: 2.1.1
     7Stable tag: 2.1.2
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    102102
    103103== 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
    104117
    105118= 2.1.1 - 2020-11-24 =
  • woocommerce-gateway-paypal-express-checkout/trunk/woocommerce-gateway-paypal-express-checkout.php

    r2423948 r2555358  
    44 * Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/
    55 * 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.1
     6 * Version: 2.1.2
    77 * Author: WooCommerce
    88 * Author URI: https://woocommerce.com
    9  * Copyright: © 2019 WooCommerce / PayPal.
     9 * Copyright: © 2021 WooCommerce / PayPal.
    1010 * License: GNU General Public License v3.0
    1111 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1212 * Text Domain: woocommerce-gateway-paypal-express-checkout
    1313 * Domain Path: /languages
    14  * WC tested up to: 4.7
    15  * WC requires at least: 2.6
     14 * WC tested up to: 5.4
     15 * WC requires at least: 3.2.0
    1616 */
    1717/**
     
    2828}
    2929
    30 define( 'WC_GATEWAY_PPEC_VERSION', '2.1.1' );
     30define( 'WC_GATEWAY_PPEC_VERSION', '2.1.2' );
    3131
    3232/**
     
    4848
    4949wc_gateway_ppec()->maybe_run();
     50
     51/**
     52 * Adds the WooCommerce Inbox option on plugin activation
     53 *
     54 * @since 2.1.2
     55 */
     56if ( ! 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}
     65register_activation_hook( __FILE__, 'add_woocommerce_inbox_variant' );
Note: See TracChangeset for help on using the changeset viewer.