Plugin Directory

Changeset 2580477


Ignore:
Timestamp:
08/09/2021 05:53:56 PM (5 years ago)
Author:
woothemes
Message:

Tagging version 1.5.0

Location:
woocommerce-paypal-payments
Files:
12 added
36 edited
1 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-paypal-payments/tags/1.5.0/changelog.txt

    r2573328 r2580477  
    11*** Changelog ***
     2
     3= 1.5.0 - 2021-08-09 =
     4* Add - Filter to modify plugin modules list. #203
     5* Add - Filters to move PayPal buttons and Pay Later messages. #203
     6* Fix - Remove redirection when enabling payment gateway with setup already done. #206
     7* Add - PayPal Express Checkout compatibility layer. #207
     8* Fix - Use correct API to obtain credit card icons. #210
     9* Fix - Hide mini cart height field when mini cart is disabled. #213
     10* Fix - Address possible error on frontend pages due to an empty gateway description. #214
    211
    312= 1.4.0 - 2021-07-27 =
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-api-client/src/Entity/class-paymenttoken.php

    r2522960 r2580477  
    1717class PaymentToken {
    1818
    19 
    2019    const TYPE_PAYMENT_METHOD_TOKEN = 'PAYMENT_METHOD_TOKEN';
    21     const VALID_TYPES               = array(
    22         self::TYPE_PAYMENT_METHOD_TOKEN,
    23     );
    2420
    2521    /**
     
    5349     */
    5450    public function __construct( string $id, string $type = self::TYPE_PAYMENT_METHOD_TOKEN, \stdClass $source ) {
    55         if ( ! in_array( $type, self::VALID_TYPES, true ) ) {
     51        if ( ! in_array( $type, self::get_valid_types(), true ) ) {
    5652            throw new RuntimeException(
    5753                __( 'Not a valid payment source type.', 'woocommerce-paypal-payments' )
     
    10298        );
    10399    }
     100
     101    /**
     102     * Returns a list of valid token types.
     103     * Can be modified through the `woocommerce_paypal_payments_valid_payment_token_types` filter.
     104     *
     105     * @return array
     106     */
     107    public static function get_valid_types() {
     108        return apply_filters(
     109            'woocommerce_paypal_payments_valid_payment_token_types',
     110            array(
     111                self::TYPE_PAYMENT_METHOD_TOKEN,
     112            )
     113        );
     114    }
     115
    104116}
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-button/src/Assets/class-smartbutton.php

    r2573328 r2580477  
    183183        ) {
    184184            add_action(
    185                 'woocommerce_review_order_after_submit',
     185                $this->checkout_dcc_button_renderer_hook(),
    186186                array(
    187187                    $this,
     
    192192
    193193            add_action(
    194                 'woocommerce_pay_order_after_submit',
     194                $this->pay_order_renderer_hook(),
    195195                array(
    196196                    $this,
     
    256256        ) {
    257257            add_action(
    258                 'woocommerce_proceed_to_checkout',
     258                $this->proceed_to_checkout_button_renderer_hook(),
    259259                array(
    260260                    $this,
     
    272272        ) {
    273273            add_action(
    274                 'woocommerce_single_product_summary',
     274                $this->single_product_renderer_hook(),
    275275                array(
    276276                    $this,
     
    285285        if ( ! $not_enabled_on_checkout ) {
    286286            add_action(
    287                 'woocommerce_review_order_after_submit',
     287                $this->checkout_dcc_button_renderer_hook(),
    288288                array(
    289289                    $this,
     
    293293            );
    294294            add_action(
    295                 'woocommerce_pay_order_after_submit',
     295                $this->pay_order_renderer_hook(),
    296296                array(
    297297                    $this,
     
    319319        ) {
    320320            add_action(
    321                 'woocommerce_proceed_to_checkout',
     321                $this->proceed_to_checkout_button_renderer_hook(),
    322322                array(
    323323                    $this,
     
    335335        ) {
    336336            add_action(
    337                 'woocommerce_single_product_summary',
     337                $this->single_product_renderer_hook(),
    338338                array(
    339339                    $this,
     
    350350        ) {
    351351            add_action(
    352                 'woocommerce_widget_shopping_cart_after_buttons',
     352                $this->mini_cart_button_renderer_hook(),
    353353                static function () {
    354354                    echo '<p
     
    361361        }
    362362
    363         add_action( 'woocommerce_review_order_after_payment', array( $this, 'button_renderer' ), 10 );
    364         add_action( 'woocommerce_pay_order_after_submit', array( $this, 'button_renderer' ), 10 );
     363        add_action( $this->checkout_button_renderer_hook(), array( $this, 'button_renderer' ), 10 );
     364        add_action( $this->pay_order_renderer_hook(), array( $this, 'button_renderer' ), 10 );
    365365
    366366        return true;
     
    964964        return $height;
    965965    }
     966
     967    /**
     968     * Return action name PayPal buttons will be rendered at on checkout page.
     969     *
     970     * @return string Action name.
     971     */
     972    private function checkout_button_renderer_hook(): string {
     973        return (string) apply_filters( 'woocommerce_paypal_payments_checkout_button_renderer_hook', 'woocommerce_review_order_after_payment' );
     974    }
     975
     976    /**
     977     * Return action name PayPal DCC button will be rendered at on checkout page.
     978     *
     979     * @return string
     980     */
     981    private function checkout_dcc_button_renderer_hook(): string {
     982        return (string) apply_filters( 'woocommerce_paypal_payments_checkout_dcc_renderer_hook', 'woocommerce_review_order_after_submit' );
     983    }
     984
     985    /**
     986     * Return action name PayPal button and Pay Later message will be rendered at on pay-order page.
     987     *
     988     * @return string
     989     */
     990    private function pay_order_renderer_hook(): string {
     991        return (string) apply_filters( 'woocommerce_paypal_payments_pay_order_dcc_renderer_hook', 'woocommerce_pay_order_after_submit' );
     992    }
     993
     994    /**
     995     * Return action name PayPal button will be rendered next to Proceed to checkout button (normally displayed in cart).
     996     *
     997     * @return string
     998     */
     999    private function proceed_to_checkout_button_renderer_hook(): string {
     1000        return (string) apply_filters(
     1001            'woocommerce_paypal_payments_proceed_to_checkout_button_renderer_hook',
     1002            'woocommerce_proceed_to_checkout'
     1003        );
     1004    }
     1005
     1006    /**
     1007     * Return action name PayPal button will be rendered in the WC mini cart.
     1008     *
     1009     * @return string
     1010     */
     1011    private function mini_cart_button_renderer_hook(): string {
     1012        return (string) apply_filters(
     1013            'woocommerce_paypal_payments_mini_cart_button_renderer_hook',
     1014            'woocommerce_widget_shopping_cart_after_buttons'
     1015        );
     1016    }
     1017
     1018    /**
     1019     * Return action name PayPal button and Pay Later message will be rendered at on the single product page.
     1020     *
     1021     * @return string
     1022     */
     1023    private function single_product_renderer_hook(): string {
     1024        return (string) apply_filters( 'woocommerce_paypal_payments_single_product_renderer_hook', 'woocommerce_single_product_summary' );
     1025    }
    9661026}
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-compat/services.php

    r2573328 r2580477  
    1010namespace WooCommerce\PayPalCommerce\Compat;
    1111
    12 return array();
     12return array(
     13
     14    'compat.ppec.mock-gateway'          => static function( $container ) {
     15        $settings = $container->get( 'wcgateway.settings' );
     16        $title    = $settings->has( 'title' ) ? $settings->get( 'title' ) : __( 'PayPal', 'woocommerce-paypal-payments' );
     17        $title    = sprintf(
     18            /* Translators: placeholder is the gateway name. */
     19            __( '%s (Legacy)', 'woocommerce-paypal-payments' ),
     20            $title
     21        );
     22
     23        return new PPEC\MockGateway( $title );
     24    },
     25
     26    'compat.ppec.subscriptions-handler' => static function ( $container ) {
     27        $ppcp_renewal_handler = $container->get( 'subscription.renewal-handler' );
     28        $gateway              = $container->get( 'compat.ppec.mock-gateway' );
     29
     30        return new PPEC\SubscriptionsHandler( $ppcp_renewal_handler, $gateway );
     31    },
     32
     33    'compat.ppec.settings_importer'     => static function( $container ) : PPEC\SettingsImporter {
     34        $settings = $container->get( 'wcgateway.settings' );
     35
     36        return new PPEC\SettingsImporter( $settings );
     37    },
     38
     39);
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-compat/src/class-compatmodule.php

    r2573328 r2580477  
    1414use Interop\Container\ServiceProviderInterface;
    1515use Psr\Container\ContainerInterface;
     16use WooCommerce\PayPalCommerce\Compat\PPEC\PPECHelper;
    1617
    1718/**
     
    3839     */
    3940    public function run( ContainerInterface $container ): void {
     41        $this->initialize_ppec_compat_layer( $container );
    4042    }
    4143
     
    4749    public function getKey() {
    4850    }
     51
     52    /**
     53     * Sets up the PayPal Express Checkout compatibility layer.
     54     *
     55     * @param ContainerInterface|null $container The Container.
     56     * @return void
     57     */
     58    private function initialize_ppec_compat_layer( $container ): void {
     59        // Process PPEC subscription renewals through PayPal Payments.
     60        $handler = $container->get( 'compat.ppec.subscriptions-handler' );
     61        $handler->maybe_hook();
     62
     63        // Settings.
     64        $ppec_import = $container->get( 'compat.ppec.settings_importer' );
     65        $ppec_import->maybe_hook();
     66
     67        // Inbox note inviting merchant to disable PayPal Express Checkout.
     68        add_action(
     69            'woocommerce_init',
     70            function() {
     71                if ( is_callable( array( WC(), 'is_wc_admin_active' ) ) && WC()->is_wc_admin_active() ) {
     72                    PPEC\DeactivateNote::init();
     73                }
     74            }
     75        );
     76
     77    }
     78
    4979}
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-onboarding/assets/js/settings.js

    r2544454 r2580477  
    254254                    '#field-button_mini-cart_color',
    255255                    '#field-button_mini-cart_shape',
     256                    '#field-button_mini-cart_height',
    256257                ]
    257258            );
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-subscription/src/class-renewalhandler.php

    r2544454 r2580477  
    176176     */
    177177    private function get_token_for_customer( \WC_Customer $customer, \WC_Order $wc_order ) {
     178        $token = apply_filters( 'woocommerce_paypal_payments_subscriptions_get_token_for_customer', null, $customer, $wc_order );
     179        if ( null !== $token ) {
     180            return $token;
     181        }
    178182
    179183        $tokens = $this->repository->all_for_user_id( (int) $customer->get_id() );
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-subscription/src/class-subscriptionmodule.php

    r2573328 r2580477  
    8181                $subscription_helper      = $container->get( 'subscription.helper' );
    8282
    83                 return $this->display_saved_paypal_payments( $settings, $id, $payment_token_repository, $description, $subscription_helper );
     83                return $this->display_saved_paypal_payments( $settings, (string) $id, $payment_token_repository, (string) $description, $subscription_helper );
    8484            },
    8585            10,
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/services.php

    r2573328 r2580477  
    762762                'class'        => array(),
    763763                'input_class'  => array( 'wc-enhanced-select' ),
    764                 'default'      => 'paypal',
     764                'default'      => apply_filters( 'woocommerce_paypal_payments_button_label_default', 'paypal' ),
    765765                'desc_tip'     => true,
    766766                'description'  => __(
     
    10641064                'class'        => array(),
    10651065                'input_class'  => array( 'wc-enhanced-select' ),
    1066                 'default'      => 'paypal',
     1066                'default'      => apply_filters( 'woocommerce_paypal_payments_button_product_label_default', 'paypal' ),
    10671067                'desc_tip'     => true,
    10681068                'description'  => __(
     
    13671367                'class'        => array(),
    13681368                'input_class'  => array( 'wc-enhanced-select' ),
    1369                 'default'      => 'paypal',
     1369                'default'      => apply_filters( 'woocommerce_paypal_payments_button_cart_label_default', 'paypal' ),
    13701370                'desc_tip'     => true,
    13711371                'description'  => __(
     
    16701670                'class'        => array(),
    16711671                'input_class'  => array( 'wc-enhanced-select' ),
    1672                 'default'      => 'paypal',
     1672                'default'      => apply_filters( 'woocommerce_paypal_payments_button_mini_cart_label_default', 'paypal' ),
    16731673                'desc_tip'     => true,
    16741674                'description'  => __(
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php

    r2544454 r2580477  
    237237
    238238    /**
    239      * Returns the title of the gateway.
     239     * Returns the icons of the gateway.
    240240     *
    241241     * @return string
    242242     */
    243     public function get_title() {
    244 
    245         //phpcs:disable WordPress.Security.NonceVerification.Recommended
    246         if ( ! is_checkout() || ( is_ajax() && isset( $_GET['wc-ajax'] ) && 'update_order_review' !== $_GET['wc-ajax'] ) ) {
    247             return parent::get_title();
    248         }
    249         //phpcs:enable WordPress.Security.NonceVerification.Recommended
    250         $title = parent::get_title();
     243    public function get_icon() {
     244        $icon = parent::get_icon();
     245
    251246        $icons = $this->config->has( 'card_icons' ) ? (array) $this->config->get( 'card_icons' ) : array();
    252247        if ( empty( $icons ) ) {
    253             return $title;
     248            return $icon;
    254249        }
    255250
     
    259254                return '<img
    260255                 title="' . esc_attr( $title_options[ $type ] ) . '"
    261                  src="' . esc_url( $this->module_url ) . '/assets/images/' . esc_attr( $type ) . '.svg"
     256                 src="' . esc_url( $this->module_url ) . 'assets/images/' . esc_attr( $type ) . '.svg"
    262257                 class="ppcp-card-icon"
    263258                > ';
     
    265260            $icons
    266261        );
    267         return $title . implode( '', $images );
     262
     263        return implode( '', $images );
    268264    }
    269265
  • woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php

    r2544454 r2580477  
    9696     */
    9797    private $refund_processor;
     98
     99    /**
     100     * Whether the plugin is in onboarded state.
     101     *
     102     * @var bool
     103     */
     104    private $onboarded;
    98105
    99106    /**
     
    133140        $this->refund_processor         = $refund_processor;
    134141        $this->transaction_url_provider = $transaction_url_provider;
    135 
    136         if ( $state->current_state() === State::STATE_ONBOARDED ) {
     142        $this->onboarded                = $state->current_state() === State::STATE_ONBOARDED;
     143
     144        if ( $this->onboarded ) {
    137145            $this->supports = array( 'refunds' );
    138146        }
     
    186194    public function needs_setup(): bool {
    187195
    188         return true;
     196        return ! $this->onboarded;
    189197    }
    190198
     
    374382        return parent::get_transaction_url( $order );
    375383    }
     384
     385    /**
     386     * Updates WooCommerce gateway option.
     387     *
     388     * @param string $key The option key.
     389     * @param string $value The option value.
     390     * @return bool|void
     391     */
     392    public function update_option( $key, $value = '' ) {
     393        parent::update_option( $key, $value );
     394
     395        if ( 'enabled' === $key ) {
     396            $this->config->set( 'enabled', 'yes' === $value );
     397            $this->config->persist();
     398        }
     399    }
    376400}
  • woocommerce-paypal-payments/tags/1.5.0/readme.txt

    r2573328 r2580477  
    33Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell, shop, shopping, cart, checkout
    44Requires at least: 5.3
    5 Tested up to: 5.7
     5Tested up to: 5.8
    66Requires PHP: 7.1
    7 Stable tag: 1.4.0
     7Stable tag: 1.5.0
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515PayPal's latest, most complete payment processing solution. Accept PayPal exclusives, credit/debit cards and local payment methods. Turn on only PayPal options or process a full suite of payment methods. Enable global transactions with extensive currency and country coverage.
    1616Built and supported by [WooCommerce](https://woocommerce.com) and [PayPal](https://paypal.com).
     17
     18= Give your customers their preferred ways to pay with one checkout solution =
     19
     20Streamline your business with one simple, powerful solution.
     21
     22With the latest PayPal extension, your customers can pay with PayPal, Pay Later options, credit & debit cards, and country-specific, local payment methods on any device — all with one seamless checkout experience.
     23
     24= Reach more customers in 200+ markets worldwide =
     25
     26Expand your business by connecting with over 370+ million active PayPal accounts around the globe. With PayPal, you can:
     27
     28- Sell in 200+ markets and accept 100+ currencies
     29- Identify customer locations and offer country-specific, local payment methods
     30
     31= Offer subscription payments to help drive repeat business =
     32
     33Create stable, predictable income by offering subscription plans.
     34
     35With the vaulting feature on PayPal, you can offer flexible plans with fixed or quantity pricing, set billing cycles for the time period you want, and offer subscriptions with discounted trial periods.
     36
     37It’s easy for shoppers, simple for you, and great for your business–with no monthly or setup fees.
     38
     39PayPal is also compatible with [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/).
    1740
    1841== Installation ==
     
    5881
    5982== Changelog ==
     83
     84= 1.5.0 =
     85* Add - Filter to modify plugin modules list. #203
     86* Add - Filters to move PayPal buttons and Pay Later messages. #203
     87* Fix - Remove redirection when enabling payment gateway with setup already done. #206
     88* Add - PayPal Express Checkout compatibility layer. #207
     89* Fix - Use correct API to obtain credit card icons. #210
     90* Fix - Hide mini cart height field when mini cart is disabled. #213
     91* Fix - Address possible error on frontend pages due to an empty gateway description. #214
    6092
    6193= 1.4.0 =
  • woocommerce-paypal-payments/tags/1.5.0/vendor/autoload.php

    r2573328 r2580477  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3::getLoader();
     7return ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c::getLoader();
  • woocommerce-paypal-payments/tags/1.5.0/vendor/composer/autoload_classmap.php

    r2573328 r2580477  
    104104    'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => $baseDir . '/modules/ppcp-button/src/Helper/class-threedsecure.php',
    105105    'WooCommerce\\PayPalCommerce\\Compat\\CompatModule' => $baseDir . '/modules/ppcp-compat/src/class-compatmodule.php',
     106    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\DeactivateNote' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-deactivatenote.php',
     107    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\MockGateway' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-mockgateway.php',
     108    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\PPECHelper' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-ppechelper.php',
     109    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SettingsImporter' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-settingsimporter.php',
     110    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SubscriptionsHandler' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php',
    106111    'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => $baseDir . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php',
    107112    'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => $baseDir . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php',
  • woocommerce-paypal-payments/tags/1.5.0/vendor/composer/autoload_real.php

    r2573328 r2580477  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3
     5class ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequiree10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file);
     61            composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequiree10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file)
     68function composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • woocommerce-paypal-payments/tags/1.5.0/vendor/composer/autoload_static.php

    r2573328 r2580477  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3
     7class ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c
    88{
    99    public static $files = array (
     
    179179        'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => __DIR__ . '/../..' . '/modules/ppcp-button/src/Helper/class-threedsecure.php',
    180180        'WooCommerce\\PayPalCommerce\\Compat\\CompatModule' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/class-compatmodule.php',
     181        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\DeactivateNote' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-deactivatenote.php',
     182        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\MockGateway' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-mockgateway.php',
     183        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\PPECHelper' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-ppechelper.php',
     184        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SettingsImporter' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-settingsimporter.php',
     185        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SubscriptionsHandler' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php',
    181186        'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php',
    182187        'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php',
     
    238243    {
    239244        return \Closure::bind(function () use ($loader) {
    240             $loader->prefixLengthsPsr4 = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$prefixLengthsPsr4;
    241             $loader->prefixDirsPsr4 = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$prefixDirsPsr4;
    242             $loader->classMap = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$classMap;
     245            $loader->prefixLengthsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixLengthsPsr4;
     246            $loader->prefixDirsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixDirsPsr4;
     247            $loader->classMap = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$classMap;
    243248
    244249        }, null, ClassLoader::class);
  • woocommerce-paypal-payments/tags/1.5.0/vendor/composer/installed.php

    r2573328 r2580477  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'fbbcb12e45513f7785e1e03d86e1c72b95b46b90',
     8        'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2',
    99        'name' => 'woocommerce/woocommerce-paypal-payments',
    1010        'dev' => false,
     
    125125            'install_path' => __DIR__ . '/../../',
    126126            'aliases' => array(),
    127             'reference' => 'fbbcb12e45513f7785e1e03d86e1c72b95b46b90',
     127            'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2',
    128128            'dev_requirement' => false,
    129129        ),
  • woocommerce-paypal-payments/tags/1.5.0/woocommerce-paypal-payments.php

    r2573328 r2580477  
    44 * Plugin URI:  https://woocommerce.com/products/woocommerce-paypal-payments/
    55 * Description: PayPal's latest complete payments processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.
    6  * Version:     1.4.0
     6 * Version:     1.5.0
    77 * Author:      WooCommerce
    88 * Author URI:  https://woocommerce.com/
     
    7878            }
    7979            $providers = array();
     80
     81            // Use this filter to add custom module or remove some of existing ones.
     82            // Modules able to access container, add services and modify existing ones.
     83            $modules = apply_filters( 'woocommerce_paypal_payments_modules', $modules );
     84
    8085            foreach ( $modules as $module ) {
    8186                /* @var $module ModuleInterface module */
  • woocommerce-paypal-payments/trunk/changelog.txt

    r2573328 r2580477  
    11*** Changelog ***
     2
     3= 1.5.0 - 2021-08-09 =
     4* Add - Filter to modify plugin modules list. #203
     5* Add - Filters to move PayPal buttons and Pay Later messages. #203
     6* Fix - Remove redirection when enabling payment gateway with setup already done. #206
     7* Add - PayPal Express Checkout compatibility layer. #207
     8* Fix - Use correct API to obtain credit card icons. #210
     9* Fix - Hide mini cart height field when mini cart is disabled. #213
     10* Fix - Address possible error on frontend pages due to an empty gateway description. #214
    211
    312= 1.4.0 - 2021-07-27 =
  • woocommerce-paypal-payments/trunk/modules/ppcp-api-client/src/Entity/class-paymenttoken.php

    r2522960 r2580477  
    1717class PaymentToken {
    1818
    19 
    2019    const TYPE_PAYMENT_METHOD_TOKEN = 'PAYMENT_METHOD_TOKEN';
    21     const VALID_TYPES               = array(
    22         self::TYPE_PAYMENT_METHOD_TOKEN,
    23     );
    2420
    2521    /**
     
    5349     */
    5450    public function __construct( string $id, string $type = self::TYPE_PAYMENT_METHOD_TOKEN, \stdClass $source ) {
    55         if ( ! in_array( $type, self::VALID_TYPES, true ) ) {
     51        if ( ! in_array( $type, self::get_valid_types(), true ) ) {
    5652            throw new RuntimeException(
    5753                __( 'Not a valid payment source type.', 'woocommerce-paypal-payments' )
     
    10298        );
    10399    }
     100
     101    /**
     102     * Returns a list of valid token types.
     103     * Can be modified through the `woocommerce_paypal_payments_valid_payment_token_types` filter.
     104     *
     105     * @return array
     106     */
     107    public static function get_valid_types() {
     108        return apply_filters(
     109            'woocommerce_paypal_payments_valid_payment_token_types',
     110            array(
     111                self::TYPE_PAYMENT_METHOD_TOKEN,
     112            )
     113        );
     114    }
     115
    104116}
  • woocommerce-paypal-payments/trunk/modules/ppcp-button/src/Assets/class-smartbutton.php

    r2573328 r2580477  
    183183        ) {
    184184            add_action(
    185                 'woocommerce_review_order_after_submit',
     185                $this->checkout_dcc_button_renderer_hook(),
    186186                array(
    187187                    $this,
     
    192192
    193193            add_action(
    194                 'woocommerce_pay_order_after_submit',
     194                $this->pay_order_renderer_hook(),
    195195                array(
    196196                    $this,
     
    256256        ) {
    257257            add_action(
    258                 'woocommerce_proceed_to_checkout',
     258                $this->proceed_to_checkout_button_renderer_hook(),
    259259                array(
    260260                    $this,
     
    272272        ) {
    273273            add_action(
    274                 'woocommerce_single_product_summary',
     274                $this->single_product_renderer_hook(),
    275275                array(
    276276                    $this,
     
    285285        if ( ! $not_enabled_on_checkout ) {
    286286            add_action(
    287                 'woocommerce_review_order_after_submit',
     287                $this->checkout_dcc_button_renderer_hook(),
    288288                array(
    289289                    $this,
     
    293293            );
    294294            add_action(
    295                 'woocommerce_pay_order_after_submit',
     295                $this->pay_order_renderer_hook(),
    296296                array(
    297297                    $this,
     
    319319        ) {
    320320            add_action(
    321                 'woocommerce_proceed_to_checkout',
     321                $this->proceed_to_checkout_button_renderer_hook(),
    322322                array(
    323323                    $this,
     
    335335        ) {
    336336            add_action(
    337                 'woocommerce_single_product_summary',
     337                $this->single_product_renderer_hook(),
    338338                array(
    339339                    $this,
     
    350350        ) {
    351351            add_action(
    352                 'woocommerce_widget_shopping_cart_after_buttons',
     352                $this->mini_cart_button_renderer_hook(),
    353353                static function () {
    354354                    echo '<p
     
    361361        }
    362362
    363         add_action( 'woocommerce_review_order_after_payment', array( $this, 'button_renderer' ), 10 );
    364         add_action( 'woocommerce_pay_order_after_submit', array( $this, 'button_renderer' ), 10 );
     363        add_action( $this->checkout_button_renderer_hook(), array( $this, 'button_renderer' ), 10 );
     364        add_action( $this->pay_order_renderer_hook(), array( $this, 'button_renderer' ), 10 );
    365365
    366366        return true;
     
    964964        return $height;
    965965    }
     966
     967    /**
     968     * Return action name PayPal buttons will be rendered at on checkout page.
     969     *
     970     * @return string Action name.
     971     */
     972    private function checkout_button_renderer_hook(): string {
     973        return (string) apply_filters( 'woocommerce_paypal_payments_checkout_button_renderer_hook', 'woocommerce_review_order_after_payment' );
     974    }
     975
     976    /**
     977     * Return action name PayPal DCC button will be rendered at on checkout page.
     978     *
     979     * @return string
     980     */
     981    private function checkout_dcc_button_renderer_hook(): string {
     982        return (string) apply_filters( 'woocommerce_paypal_payments_checkout_dcc_renderer_hook', 'woocommerce_review_order_after_submit' );
     983    }
     984
     985    /**
     986     * Return action name PayPal button and Pay Later message will be rendered at on pay-order page.
     987     *
     988     * @return string
     989     */
     990    private function pay_order_renderer_hook(): string {
     991        return (string) apply_filters( 'woocommerce_paypal_payments_pay_order_dcc_renderer_hook', 'woocommerce_pay_order_after_submit' );
     992    }
     993
     994    /**
     995     * Return action name PayPal button will be rendered next to Proceed to checkout button (normally displayed in cart).
     996     *
     997     * @return string
     998     */
     999    private function proceed_to_checkout_button_renderer_hook(): string {
     1000        return (string) apply_filters(
     1001            'woocommerce_paypal_payments_proceed_to_checkout_button_renderer_hook',
     1002            'woocommerce_proceed_to_checkout'
     1003        );
     1004    }
     1005
     1006    /**
     1007     * Return action name PayPal button will be rendered in the WC mini cart.
     1008     *
     1009     * @return string
     1010     */
     1011    private function mini_cart_button_renderer_hook(): string {
     1012        return (string) apply_filters(
     1013            'woocommerce_paypal_payments_mini_cart_button_renderer_hook',
     1014            'woocommerce_widget_shopping_cart_after_buttons'
     1015        );
     1016    }
     1017
     1018    /**
     1019     * Return action name PayPal button and Pay Later message will be rendered at on the single product page.
     1020     *
     1021     * @return string
     1022     */
     1023    private function single_product_renderer_hook(): string {
     1024        return (string) apply_filters( 'woocommerce_paypal_payments_single_product_renderer_hook', 'woocommerce_single_product_summary' );
     1025    }
    9661026}
  • woocommerce-paypal-payments/trunk/modules/ppcp-compat/services.php

    r2573328 r2580477  
    1010namespace WooCommerce\PayPalCommerce\Compat;
    1111
    12 return array();
     12return array(
     13
     14    'compat.ppec.mock-gateway'          => static function( $container ) {
     15        $settings = $container->get( 'wcgateway.settings' );
     16        $title    = $settings->has( 'title' ) ? $settings->get( 'title' ) : __( 'PayPal', 'woocommerce-paypal-payments' );
     17        $title    = sprintf(
     18            /* Translators: placeholder is the gateway name. */
     19            __( '%s (Legacy)', 'woocommerce-paypal-payments' ),
     20            $title
     21        );
     22
     23        return new PPEC\MockGateway( $title );
     24    },
     25
     26    'compat.ppec.subscriptions-handler' => static function ( $container ) {
     27        $ppcp_renewal_handler = $container->get( 'subscription.renewal-handler' );
     28        $gateway              = $container->get( 'compat.ppec.mock-gateway' );
     29
     30        return new PPEC\SubscriptionsHandler( $ppcp_renewal_handler, $gateway );
     31    },
     32
     33    'compat.ppec.settings_importer'     => static function( $container ) : PPEC\SettingsImporter {
     34        $settings = $container->get( 'wcgateway.settings' );
     35
     36        return new PPEC\SettingsImporter( $settings );
     37    },
     38
     39);
  • woocommerce-paypal-payments/trunk/modules/ppcp-compat/src/class-compatmodule.php

    r2573328 r2580477  
    1414use Interop\Container\ServiceProviderInterface;
    1515use Psr\Container\ContainerInterface;
     16use WooCommerce\PayPalCommerce\Compat\PPEC\PPECHelper;
    1617
    1718/**
     
    3839     */
    3940    public function run( ContainerInterface $container ): void {
     41        $this->initialize_ppec_compat_layer( $container );
    4042    }
    4143
     
    4749    public function getKey() {
    4850    }
     51
     52    /**
     53     * Sets up the PayPal Express Checkout compatibility layer.
     54     *
     55     * @param ContainerInterface|null $container The Container.
     56     * @return void
     57     */
     58    private function initialize_ppec_compat_layer( $container ): void {
     59        // Process PPEC subscription renewals through PayPal Payments.
     60        $handler = $container->get( 'compat.ppec.subscriptions-handler' );
     61        $handler->maybe_hook();
     62
     63        // Settings.
     64        $ppec_import = $container->get( 'compat.ppec.settings_importer' );
     65        $ppec_import->maybe_hook();
     66
     67        // Inbox note inviting merchant to disable PayPal Express Checkout.
     68        add_action(
     69            'woocommerce_init',
     70            function() {
     71                if ( is_callable( array( WC(), 'is_wc_admin_active' ) ) && WC()->is_wc_admin_active() ) {
     72                    PPEC\DeactivateNote::init();
     73                }
     74            }
     75        );
     76
     77    }
     78
    4979}
  • woocommerce-paypal-payments/trunk/modules/ppcp-onboarding/assets/js/settings.js

    r2544454 r2580477  
    254254                    '#field-button_mini-cart_color',
    255255                    '#field-button_mini-cart_shape',
     256                    '#field-button_mini-cart_height',
    256257                ]
    257258            );
  • woocommerce-paypal-payments/trunk/modules/ppcp-subscription/src/class-renewalhandler.php

    r2544454 r2580477  
    176176     */
    177177    private function get_token_for_customer( \WC_Customer $customer, \WC_Order $wc_order ) {
     178        $token = apply_filters( 'woocommerce_paypal_payments_subscriptions_get_token_for_customer', null, $customer, $wc_order );
     179        if ( null !== $token ) {
     180            return $token;
     181        }
    178182
    179183        $tokens = $this->repository->all_for_user_id( (int) $customer->get_id() );
  • woocommerce-paypal-payments/trunk/modules/ppcp-subscription/src/class-subscriptionmodule.php

    r2573328 r2580477  
    8181                $subscription_helper      = $container->get( 'subscription.helper' );
    8282
    83                 return $this->display_saved_paypal_payments( $settings, $id, $payment_token_repository, $description, $subscription_helper );
     83                return $this->display_saved_paypal_payments( $settings, (string) $id, $payment_token_repository, (string) $description, $subscription_helper );
    8484            },
    8585            10,
  • woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/services.php

    r2573328 r2580477  
    762762                'class'        => array(),
    763763                'input_class'  => array( 'wc-enhanced-select' ),
    764                 'default'      => 'paypal',
     764                'default'      => apply_filters( 'woocommerce_paypal_payments_button_label_default', 'paypal' ),
    765765                'desc_tip'     => true,
    766766                'description'  => __(
     
    10641064                'class'        => array(),
    10651065                'input_class'  => array( 'wc-enhanced-select' ),
    1066                 'default'      => 'paypal',
     1066                'default'      => apply_filters( 'woocommerce_paypal_payments_button_product_label_default', 'paypal' ),
    10671067                'desc_tip'     => true,
    10681068                'description'  => __(
     
    13671367                'class'        => array(),
    13681368                'input_class'  => array( 'wc-enhanced-select' ),
    1369                 'default'      => 'paypal',
     1369                'default'      => apply_filters( 'woocommerce_paypal_payments_button_cart_label_default', 'paypal' ),
    13701370                'desc_tip'     => true,
    13711371                'description'  => __(
     
    16701670                'class'        => array(),
    16711671                'input_class'  => array( 'wc-enhanced-select' ),
    1672                 'default'      => 'paypal',
     1672                'default'      => apply_filters( 'woocommerce_paypal_payments_button_mini_cart_label_default', 'paypal' ),
    16731673                'desc_tip'     => true,
    16741674                'description'  => __(
  • woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php

    r2544454 r2580477  
    237237
    238238    /**
    239      * Returns the title of the gateway.
     239     * Returns the icons of the gateway.
    240240     *
    241241     * @return string
    242242     */
    243     public function get_title() {
    244 
    245         //phpcs:disable WordPress.Security.NonceVerification.Recommended
    246         if ( ! is_checkout() || ( is_ajax() && isset( $_GET['wc-ajax'] ) && 'update_order_review' !== $_GET['wc-ajax'] ) ) {
    247             return parent::get_title();
    248         }
    249         //phpcs:enable WordPress.Security.NonceVerification.Recommended
    250         $title = parent::get_title();
     243    public function get_icon() {
     244        $icon = parent::get_icon();
     245
    251246        $icons = $this->config->has( 'card_icons' ) ? (array) $this->config->get( 'card_icons' ) : array();
    252247        if ( empty( $icons ) ) {
    253             return $title;
     248            return $icon;
    254249        }
    255250
     
    259254                return '<img
    260255                 title="' . esc_attr( $title_options[ $type ] ) . '"
    261                  src="' . esc_url( $this->module_url ) . '/assets/images/' . esc_attr( $type ) . '.svg"
     256                 src="' . esc_url( $this->module_url ) . 'assets/images/' . esc_attr( $type ) . '.svg"
    262257                 class="ppcp-card-icon"
    263258                > ';
     
    265260            $icons
    266261        );
    267         return $title . implode( '', $images );
     262
     263        return implode( '', $images );
    268264    }
    269265
  • woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php

    r2544454 r2580477  
    9696     */
    9797    private $refund_processor;
     98
     99    /**
     100     * Whether the plugin is in onboarded state.
     101     *
     102     * @var bool
     103     */
     104    private $onboarded;
    98105
    99106    /**
     
    133140        $this->refund_processor         = $refund_processor;
    134141        $this->transaction_url_provider = $transaction_url_provider;
    135 
    136         if ( $state->current_state() === State::STATE_ONBOARDED ) {
     142        $this->onboarded                = $state->current_state() === State::STATE_ONBOARDED;
     143
     144        if ( $this->onboarded ) {
    137145            $this->supports = array( 'refunds' );
    138146        }
     
    186194    public function needs_setup(): bool {
    187195
    188         return true;
     196        return ! $this->onboarded;
    189197    }
    190198
     
    374382        return parent::get_transaction_url( $order );
    375383    }
     384
     385    /**
     386     * Updates WooCommerce gateway option.
     387     *
     388     * @param string $key The option key.
     389     * @param string $value The option value.
     390     * @return bool|void
     391     */
     392    public function update_option( $key, $value = '' ) {
     393        parent::update_option( $key, $value );
     394
     395        if ( 'enabled' === $key ) {
     396            $this->config->set( 'enabled', 'yes' === $value );
     397            $this->config->persist();
     398        }
     399    }
    376400}
  • woocommerce-paypal-payments/trunk/readme.txt

    r2573328 r2580477  
    33Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell, shop, shopping, cart, checkout
    44Requires at least: 5.3
    5 Tested up to: 5.7
     5Tested up to: 5.8
    66Requires PHP: 7.1
    7 Stable tag: 1.4.0
     7Stable tag: 1.5.0
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515PayPal's latest, most complete payment processing solution. Accept PayPal exclusives, credit/debit cards and local payment methods. Turn on only PayPal options or process a full suite of payment methods. Enable global transactions with extensive currency and country coverage.
    1616Built and supported by [WooCommerce](https://woocommerce.com) and [PayPal](https://paypal.com).
     17
     18= Give your customers their preferred ways to pay with one checkout solution =
     19
     20Streamline your business with one simple, powerful solution.
     21
     22With the latest PayPal extension, your customers can pay with PayPal, Pay Later options, credit & debit cards, and country-specific, local payment methods on any device — all with one seamless checkout experience.
     23
     24= Reach more customers in 200+ markets worldwide =
     25
     26Expand your business by connecting with over 370+ million active PayPal accounts around the globe. With PayPal, you can:
     27
     28- Sell in 200+ markets and accept 100+ currencies
     29- Identify customer locations and offer country-specific, local payment methods
     30
     31= Offer subscription payments to help drive repeat business =
     32
     33Create stable, predictable income by offering subscription plans.
     34
     35With the vaulting feature on PayPal, you can offer flexible plans with fixed or quantity pricing, set billing cycles for the time period you want, and offer subscriptions with discounted trial periods.
     36
     37It’s easy for shoppers, simple for you, and great for your business–with no monthly or setup fees.
     38
     39PayPal is also compatible with [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/).
    1740
    1841== Installation ==
     
    5881
    5982== Changelog ==
     83
     84= 1.5.0 =
     85* Add - Filter to modify plugin modules list. #203
     86* Add - Filters to move PayPal buttons and Pay Later messages. #203
     87* Fix - Remove redirection when enabling payment gateway with setup already done. #206
     88* Add - PayPal Express Checkout compatibility layer. #207
     89* Fix - Use correct API to obtain credit card icons. #210
     90* Fix - Hide mini cart height field when mini cart is disabled. #213
     91* Fix - Address possible error on frontend pages due to an empty gateway description. #214
    6092
    6193= 1.4.0 =
  • woocommerce-paypal-payments/trunk/vendor/autoload.php

    r2573328 r2580477  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3::getLoader();
     7return ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c::getLoader();
  • woocommerce-paypal-payments/trunk/vendor/composer/autoload_classmap.php

    r2573328 r2580477  
    104104    'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => $baseDir . '/modules/ppcp-button/src/Helper/class-threedsecure.php',
    105105    'WooCommerce\\PayPalCommerce\\Compat\\CompatModule' => $baseDir . '/modules/ppcp-compat/src/class-compatmodule.php',
     106    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\DeactivateNote' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-deactivatenote.php',
     107    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\MockGateway' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-mockgateway.php',
     108    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\PPECHelper' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-ppechelper.php',
     109    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SettingsImporter' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-settingsimporter.php',
     110    'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SubscriptionsHandler' => $baseDir . '/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php',
    106111    'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => $baseDir . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php',
    107112    'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => $baseDir . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php',
  • woocommerce-paypal-payments/trunk/vendor/composer/autoload_real.php

    r2573328 r2580477  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3
     5class ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInite10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequiree10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file);
     61            composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequiree10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file)
     68function composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • woocommerce-paypal-payments/trunk/vendor/composer/autoload_static.php

    r2573328 r2580477  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3
     7class ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c
    88{
    99    public static $files = array (
     
    179179        'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => __DIR__ . '/../..' . '/modules/ppcp-button/src/Helper/class-threedsecure.php',
    180180        'WooCommerce\\PayPalCommerce\\Compat\\CompatModule' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/class-compatmodule.php',
     181        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\DeactivateNote' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-deactivatenote.php',
     182        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\MockGateway' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-mockgateway.php',
     183        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\PPECHelper' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-ppechelper.php',
     184        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SettingsImporter' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-settingsimporter.php',
     185        'WooCommerce\\PayPalCommerce\\Compat\\PPEC\\SubscriptionsHandler' => __DIR__ . '/../..' . '/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php',
    181186        'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php',
    182187        'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php',
     
    238243    {
    239244        return \Closure::bind(function () use ($loader) {
    240             $loader->prefixLengthsPsr4 = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$prefixLengthsPsr4;
    241             $loader->prefixDirsPsr4 = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$prefixDirsPsr4;
    242             $loader->classMap = ComposerStaticInite10b41e28707caa8003f07ad0a5b2aa3::$classMap;
     245            $loader->prefixLengthsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixLengthsPsr4;
     246            $loader->prefixDirsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixDirsPsr4;
     247            $loader->classMap = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$classMap;
    243248
    244249        }, null, ClassLoader::class);
  • woocommerce-paypal-payments/trunk/vendor/composer/installed.php

    r2573328 r2580477  
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'fbbcb12e45513f7785e1e03d86e1c72b95b46b90',
     8        'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2',
    99        'name' => 'woocommerce/woocommerce-paypal-payments',
    1010        'dev' => false,
     
    125125            'install_path' => __DIR__ . '/../../',
    126126            'aliases' => array(),
    127             'reference' => 'fbbcb12e45513f7785e1e03d86e1c72b95b46b90',
     127            'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2',
    128128            'dev_requirement' => false,
    129129        ),
  • woocommerce-paypal-payments/trunk/woocommerce-paypal-payments.php

    r2573328 r2580477  
    44 * Plugin URI:  https://woocommerce.com/products/woocommerce-paypal-payments/
    55 * Description: PayPal's latest complete payments processing solution. Accept PayPal, Pay Later, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.
    6  * Version:     1.4.0
     6 * Version:     1.5.0
    77 * Author:      WooCommerce
    88 * Author URI:  https://woocommerce.com/
     
    7878            }
    7979            $providers = array();
     80
     81            // Use this filter to add custom module or remove some of existing ones.
     82            // Modules able to access container, add services and modify existing ones.
     83            $modules = apply_filters( 'woocommerce_paypal_payments_modules', $modules );
     84
    8085            foreach ( $modules as $module ) {
    8186                /* @var $module ModuleInterface module */
Note: See TracChangeset for help on using the changeset viewer.