Changeset 2580477
- Timestamp:
- 08/09/2021 05:53:56 PM (5 years ago)
- Location:
- woocommerce-paypal-payments
- Files:
-
- 12 added
- 36 edited
- 1 copied
-
tags/1.5.0 (copied) (copied from woocommerce-paypal-payments/trunk)
-
tags/1.5.0/changelog.txt (modified) (1 diff)
-
tags/1.5.0/modules/ppcp-api-client/src/Entity/class-paymenttoken.php (modified) (3 diffs)
-
tags/1.5.0/modules/ppcp-button/src/Assets/class-smartbutton.php (modified) (11 diffs)
-
tags/1.5.0/modules/ppcp-compat/services.php (modified) (1 diff)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC (added)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC/class-deactivatenote.php (added)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC/class-mockgateway.php (added)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC/class-ppechelper.php (added)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC/class-settingsimporter.php (added)
-
tags/1.5.0/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php (added)
-
tags/1.5.0/modules/ppcp-compat/src/class-compatmodule.php (modified) (3 diffs)
-
tags/1.5.0/modules/ppcp-onboarding/assets/js/settings.js (modified) (1 diff)
-
tags/1.5.0/modules/ppcp-subscription/src/class-renewalhandler.php (modified) (1 diff)
-
tags/1.5.0/modules/ppcp-subscription/src/class-subscriptionmodule.php (modified) (1 diff)
-
tags/1.5.0/modules/ppcp-wc-gateway/services.php (modified) (4 diffs)
-
tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php (modified) (3 diffs)
-
tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php (modified) (4 diffs)
-
tags/1.5.0/readme.txt (modified) (3 diffs)
-
tags/1.5.0/vendor/autoload.php (modified) (1 diff)
-
tags/1.5.0/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/1.5.0/vendor/composer/autoload_real.php (modified) (5 diffs)
-
tags/1.5.0/vendor/composer/autoload_static.php (modified) (3 diffs)
-
tags/1.5.0/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.5.0/woocommerce-paypal-payments.php (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/modules/ppcp-api-client/src/Entity/class-paymenttoken.php (modified) (3 diffs)
-
trunk/modules/ppcp-button/src/Assets/class-smartbutton.php (modified) (11 diffs)
-
trunk/modules/ppcp-compat/services.php (modified) (1 diff)
-
trunk/modules/ppcp-compat/src/PPEC (added)
-
trunk/modules/ppcp-compat/src/PPEC/class-deactivatenote.php (added)
-
trunk/modules/ppcp-compat/src/PPEC/class-mockgateway.php (added)
-
trunk/modules/ppcp-compat/src/PPEC/class-ppechelper.php (added)
-
trunk/modules/ppcp-compat/src/PPEC/class-settingsimporter.php (added)
-
trunk/modules/ppcp-compat/src/PPEC/class-subscriptionshandler.php (added)
-
trunk/modules/ppcp-compat/src/class-compatmodule.php (modified) (3 diffs)
-
trunk/modules/ppcp-onboarding/assets/js/settings.js (modified) (1 diff)
-
trunk/modules/ppcp-subscription/src/class-renewalhandler.php (modified) (1 diff)
-
trunk/modules/ppcp-subscription/src/class-subscriptionmodule.php (modified) (1 diff)
-
trunk/modules/ppcp-wc-gateway/services.php (modified) (4 diffs)
-
trunk/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php (modified) (3 diffs)
-
trunk/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (5 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/woocommerce-paypal-payments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-paypal-payments/tags/1.5.0/changelog.txt
r2573328 r2580477 1 1 *** 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 2 11 3 12 = 1.4.0 - 2021-07-27 = -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-api-client/src/Entity/class-paymenttoken.php
r2522960 r2580477 17 17 class PaymentToken { 18 18 19 20 19 const TYPE_PAYMENT_METHOD_TOKEN = 'PAYMENT_METHOD_TOKEN'; 21 const VALID_TYPES = array(22 self::TYPE_PAYMENT_METHOD_TOKEN,23 );24 20 25 21 /** … … 53 49 */ 54 50 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 ) ) { 56 52 throw new RuntimeException( 57 53 __( 'Not a valid payment source type.', 'woocommerce-paypal-payments' ) … … 102 98 ); 103 99 } 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 104 116 } -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-button/src/Assets/class-smartbutton.php
r2573328 r2580477 183 183 ) { 184 184 add_action( 185 'woocommerce_review_order_after_submit',185 $this->checkout_dcc_button_renderer_hook(), 186 186 array( 187 187 $this, … … 192 192 193 193 add_action( 194 'woocommerce_pay_order_after_submit',194 $this->pay_order_renderer_hook(), 195 195 array( 196 196 $this, … … 256 256 ) { 257 257 add_action( 258 'woocommerce_proceed_to_checkout',258 $this->proceed_to_checkout_button_renderer_hook(), 259 259 array( 260 260 $this, … … 272 272 ) { 273 273 add_action( 274 'woocommerce_single_product_summary',274 $this->single_product_renderer_hook(), 275 275 array( 276 276 $this, … … 285 285 if ( ! $not_enabled_on_checkout ) { 286 286 add_action( 287 'woocommerce_review_order_after_submit',287 $this->checkout_dcc_button_renderer_hook(), 288 288 array( 289 289 $this, … … 293 293 ); 294 294 add_action( 295 'woocommerce_pay_order_after_submit',295 $this->pay_order_renderer_hook(), 296 296 array( 297 297 $this, … … 319 319 ) { 320 320 add_action( 321 'woocommerce_proceed_to_checkout',321 $this->proceed_to_checkout_button_renderer_hook(), 322 322 array( 323 323 $this, … … 335 335 ) { 336 336 add_action( 337 'woocommerce_single_product_summary',337 $this->single_product_renderer_hook(), 338 338 array( 339 339 $this, … … 350 350 ) { 351 351 add_action( 352 'woocommerce_widget_shopping_cart_after_buttons',352 $this->mini_cart_button_renderer_hook(), 353 353 static function () { 354 354 echo '<p … … 361 361 } 362 362 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 ); 365 365 366 366 return true; … … 964 964 return $height; 965 965 } 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 } 966 1026 } -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-compat/services.php
r2573328 r2580477 10 10 namespace WooCommerce\PayPalCommerce\Compat; 11 11 12 return array(); 12 return 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 14 14 use Interop\Container\ServiceProviderInterface; 15 15 use Psr\Container\ContainerInterface; 16 use WooCommerce\PayPalCommerce\Compat\PPEC\PPECHelper; 16 17 17 18 /** … … 38 39 */ 39 40 public function run( ContainerInterface $container ): void { 41 $this->initialize_ppec_compat_layer( $container ); 40 42 } 41 43 … … 47 49 public function getKey() { 48 50 } 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 49 79 } -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-onboarding/assets/js/settings.js
r2544454 r2580477 254 254 '#field-button_mini-cart_color', 255 255 '#field-button_mini-cart_shape', 256 '#field-button_mini-cart_height', 256 257 ] 257 258 ); -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-subscription/src/class-renewalhandler.php
r2544454 r2580477 176 176 */ 177 177 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 } 178 182 179 183 $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 81 81 $subscription_helper = $container->get( 'subscription.helper' ); 82 82 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 ); 84 84 }, 85 85 10, -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/services.php
r2573328 r2580477 762 762 'class' => array(), 763 763 'input_class' => array( 'wc-enhanced-select' ), 764 'default' => 'paypal',764 'default' => apply_filters( 'woocommerce_paypal_payments_button_label_default', 'paypal' ), 765 765 'desc_tip' => true, 766 766 'description' => __( … … 1064 1064 'class' => array(), 1065 1065 'input_class' => array( 'wc-enhanced-select' ), 1066 'default' => 'paypal',1066 'default' => apply_filters( 'woocommerce_paypal_payments_button_product_label_default', 'paypal' ), 1067 1067 'desc_tip' => true, 1068 1068 'description' => __( … … 1367 1367 'class' => array(), 1368 1368 'input_class' => array( 'wc-enhanced-select' ), 1369 'default' => 'paypal',1369 'default' => apply_filters( 'woocommerce_paypal_payments_button_cart_label_default', 'paypal' ), 1370 1370 'desc_tip' => true, 1371 1371 'description' => __( … … 1670 1670 'class' => array(), 1671 1671 'input_class' => array( 'wc-enhanced-select' ), 1672 'default' => 'paypal',1672 'default' => apply_filters( 'woocommerce_paypal_payments_button_mini_cart_label_default', 'paypal' ), 1673 1673 'desc_tip' => true, 1674 1674 'description' => __( -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php
r2544454 r2580477 237 237 238 238 /** 239 * Returns the titleof the gateway.239 * Returns the icons of the gateway. 240 240 * 241 241 * @return string 242 242 */ 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 251 246 $icons = $this->config->has( 'card_icons' ) ? (array) $this->config->get( 'card_icons' ) : array(); 252 247 if ( empty( $icons ) ) { 253 return $ title;248 return $icon; 254 249 } 255 250 … … 259 254 return '<img 260 255 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" 262 257 class="ppcp-card-icon" 263 258 > '; … … 265 260 $icons 266 261 ); 267 return $title . implode( '', $images ); 262 263 return implode( '', $images ); 268 264 } 269 265 -
woocommerce-paypal-payments/tags/1.5.0/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php
r2544454 r2580477 96 96 */ 97 97 private $refund_processor; 98 99 /** 100 * Whether the plugin is in onboarded state. 101 * 102 * @var bool 103 */ 104 private $onboarded; 98 105 99 106 /** … … 133 140 $this->refund_processor = $refund_processor; 134 141 $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 ) { 137 145 $this->supports = array( 'refunds' ); 138 146 } … … 186 194 public function needs_setup(): bool { 187 195 188 return true;196 return ! $this->onboarded; 189 197 } 190 198 … … 374 382 return parent::get_transaction_url( $order ); 375 383 } 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 } 376 400 } -
woocommerce-paypal-payments/tags/1.5.0/readme.txt
r2573328 r2580477 3 3 Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell, shop, shopping, cart, checkout 4 4 Requires at least: 5.3 5 Tested up to: 5. 75 Tested up to: 5.8 6 6 Requires PHP: 7.1 7 Stable tag: 1. 4.07 Stable tag: 1.5.0 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 PayPal'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. 16 16 Built 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 20 Streamline your business with one simple, powerful solution. 21 22 With 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 26 Expand 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 33 Create stable, predictable income by offering subscription plans. 34 35 With 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 37 It’s easy for shoppers, simple for you, and great for your business–with no monthly or setup fees. 38 39 PayPal is also compatible with [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/). 17 40 18 41 == Installation == … … 58 81 59 82 == 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 60 92 61 93 = 1.4.0 = -
woocommerce-paypal-payments/tags/1.5.0/vendor/autoload.php
r2573328 r2580477 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3::getLoader();7 return ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c::getLoader(); -
woocommerce-paypal-payments/tags/1.5.0/vendor/composer/autoload_classmap.php
r2573328 r2580477 104 104 'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => $baseDir . '/modules/ppcp-button/src/Helper/class-threedsecure.php', 105 105 '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', 106 111 'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => $baseDir . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php', 107 112 '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 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa35 class ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire e10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file);61 composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire e10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file)68 function composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-paypal-payments/tags/1.5.0/vendor/composer/autoload_static.php
r2573328 r2580477 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa37 class ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c 8 8 { 9 9 public static $files = array ( … … 179 179 'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => __DIR__ . '/../..' . '/modules/ppcp-button/src/Helper/class-threedsecure.php', 180 180 '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', 181 186 'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php', 182 187 'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php', … … 238 243 { 239 244 return \Closure::bind(function () use ($loader) { 240 $loader->prefixLengthsPsr4 = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$prefixLengthsPsr4;241 $loader->prefixDirsPsr4 = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$prefixDirsPsr4;242 $loader->classMap = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$classMap;245 $loader->prefixLengthsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixLengthsPsr4; 246 $loader->prefixDirsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixDirsPsr4; 247 $loader->classMap = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$classMap; 243 248 244 249 }, null, ClassLoader::class); -
woocommerce-paypal-payments/tags/1.5.0/vendor/composer/installed.php
r2573328 r2580477 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' fbbcb12e45513f7785e1e03d86e1c72b95b46b90',8 'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2', 9 9 'name' => 'woocommerce/woocommerce-paypal-payments', 10 10 'dev' => false, … … 125 125 'install_path' => __DIR__ . '/../../', 126 126 'aliases' => array(), 127 'reference' => ' fbbcb12e45513f7785e1e03d86e1c72b95b46b90',127 'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2', 128 128 'dev_requirement' => false, 129 129 ), -
woocommerce-paypal-payments/tags/1.5.0/woocommerce-paypal-payments.php
r2573328 r2580477 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-paypal-payments/ 5 5 * 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.06 * Version: 1.5.0 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com/ … … 78 78 } 79 79 $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 80 85 foreach ( $modules as $module ) { 81 86 /* @var $module ModuleInterface module */ -
woocommerce-paypal-payments/trunk/changelog.txt
r2573328 r2580477 1 1 *** 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 2 11 3 12 = 1.4.0 - 2021-07-27 = -
woocommerce-paypal-payments/trunk/modules/ppcp-api-client/src/Entity/class-paymenttoken.php
r2522960 r2580477 17 17 class PaymentToken { 18 18 19 20 19 const TYPE_PAYMENT_METHOD_TOKEN = 'PAYMENT_METHOD_TOKEN'; 21 const VALID_TYPES = array(22 self::TYPE_PAYMENT_METHOD_TOKEN,23 );24 20 25 21 /** … … 53 49 */ 54 50 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 ) ) { 56 52 throw new RuntimeException( 57 53 __( 'Not a valid payment source type.', 'woocommerce-paypal-payments' ) … … 102 98 ); 103 99 } 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 104 116 } -
woocommerce-paypal-payments/trunk/modules/ppcp-button/src/Assets/class-smartbutton.php
r2573328 r2580477 183 183 ) { 184 184 add_action( 185 'woocommerce_review_order_after_submit',185 $this->checkout_dcc_button_renderer_hook(), 186 186 array( 187 187 $this, … … 192 192 193 193 add_action( 194 'woocommerce_pay_order_after_submit',194 $this->pay_order_renderer_hook(), 195 195 array( 196 196 $this, … … 256 256 ) { 257 257 add_action( 258 'woocommerce_proceed_to_checkout',258 $this->proceed_to_checkout_button_renderer_hook(), 259 259 array( 260 260 $this, … … 272 272 ) { 273 273 add_action( 274 'woocommerce_single_product_summary',274 $this->single_product_renderer_hook(), 275 275 array( 276 276 $this, … … 285 285 if ( ! $not_enabled_on_checkout ) { 286 286 add_action( 287 'woocommerce_review_order_after_submit',287 $this->checkout_dcc_button_renderer_hook(), 288 288 array( 289 289 $this, … … 293 293 ); 294 294 add_action( 295 'woocommerce_pay_order_after_submit',295 $this->pay_order_renderer_hook(), 296 296 array( 297 297 $this, … … 319 319 ) { 320 320 add_action( 321 'woocommerce_proceed_to_checkout',321 $this->proceed_to_checkout_button_renderer_hook(), 322 322 array( 323 323 $this, … … 335 335 ) { 336 336 add_action( 337 'woocommerce_single_product_summary',337 $this->single_product_renderer_hook(), 338 338 array( 339 339 $this, … … 350 350 ) { 351 351 add_action( 352 'woocommerce_widget_shopping_cart_after_buttons',352 $this->mini_cart_button_renderer_hook(), 353 353 static function () { 354 354 echo '<p … … 361 361 } 362 362 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 ); 365 365 366 366 return true; … … 964 964 return $height; 965 965 } 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 } 966 1026 } -
woocommerce-paypal-payments/trunk/modules/ppcp-compat/services.php
r2573328 r2580477 10 10 namespace WooCommerce\PayPalCommerce\Compat; 11 11 12 return array(); 12 return 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 14 14 use Interop\Container\ServiceProviderInterface; 15 15 use Psr\Container\ContainerInterface; 16 use WooCommerce\PayPalCommerce\Compat\PPEC\PPECHelper; 16 17 17 18 /** … … 38 39 */ 39 40 public function run( ContainerInterface $container ): void { 41 $this->initialize_ppec_compat_layer( $container ); 40 42 } 41 43 … … 47 49 public function getKey() { 48 50 } 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 49 79 } -
woocommerce-paypal-payments/trunk/modules/ppcp-onboarding/assets/js/settings.js
r2544454 r2580477 254 254 '#field-button_mini-cart_color', 255 255 '#field-button_mini-cart_shape', 256 '#field-button_mini-cart_height', 256 257 ] 257 258 ); -
woocommerce-paypal-payments/trunk/modules/ppcp-subscription/src/class-renewalhandler.php
r2544454 r2580477 176 176 */ 177 177 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 } 178 182 179 183 $tokens = $this->repository->all_for_user_id( (int) $customer->get_id() ); -
woocommerce-paypal-payments/trunk/modules/ppcp-subscription/src/class-subscriptionmodule.php
r2573328 r2580477 81 81 $subscription_helper = $container->get( 'subscription.helper' ); 82 82 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 ); 84 84 }, 85 85 10, -
woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/services.php
r2573328 r2580477 762 762 'class' => array(), 763 763 'input_class' => array( 'wc-enhanced-select' ), 764 'default' => 'paypal',764 'default' => apply_filters( 'woocommerce_paypal_payments_button_label_default', 'paypal' ), 765 765 'desc_tip' => true, 766 766 'description' => __( … … 1064 1064 'class' => array(), 1065 1065 'input_class' => array( 'wc-enhanced-select' ), 1066 'default' => 'paypal',1066 'default' => apply_filters( 'woocommerce_paypal_payments_button_product_label_default', 'paypal' ), 1067 1067 'desc_tip' => true, 1068 1068 'description' => __( … … 1367 1367 'class' => array(), 1368 1368 'input_class' => array( 'wc-enhanced-select' ), 1369 'default' => 'paypal',1369 'default' => apply_filters( 'woocommerce_paypal_payments_button_cart_label_default', 'paypal' ), 1370 1370 'desc_tip' => true, 1371 1371 'description' => __( … … 1670 1670 'class' => array(), 1671 1671 'input_class' => array( 'wc-enhanced-select' ), 1672 'default' => 'paypal',1672 'default' => apply_filters( 'woocommerce_paypal_payments_button_mini_cart_label_default', 'paypal' ), 1673 1673 'desc_tip' => true, 1674 1674 'description' => __( -
woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php
r2544454 r2580477 237 237 238 238 /** 239 * Returns the titleof the gateway.239 * Returns the icons of the gateway. 240 240 * 241 241 * @return string 242 242 */ 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 251 246 $icons = $this->config->has( 'card_icons' ) ? (array) $this->config->get( 'card_icons' ) : array(); 252 247 if ( empty( $icons ) ) { 253 return $ title;248 return $icon; 254 249 } 255 250 … … 259 254 return '<img 260 255 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" 262 257 class="ppcp-card-icon" 263 258 > '; … … 265 260 $icons 266 261 ); 267 return $title . implode( '', $images ); 262 263 return implode( '', $images ); 268 264 } 269 265 -
woocommerce-paypal-payments/trunk/modules/ppcp-wc-gateway/src/Gateway/class-paypalgateway.php
r2544454 r2580477 96 96 */ 97 97 private $refund_processor; 98 99 /** 100 * Whether the plugin is in onboarded state. 101 * 102 * @var bool 103 */ 104 private $onboarded; 98 105 99 106 /** … … 133 140 $this->refund_processor = $refund_processor; 134 141 $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 ) { 137 145 $this->supports = array( 'refunds' ); 138 146 } … … 186 194 public function needs_setup(): bool { 187 195 188 return true;196 return ! $this->onboarded; 189 197 } 190 198 … … 374 382 return parent::get_transaction_url( $order ); 375 383 } 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 } 376 400 } -
woocommerce-paypal-payments/trunk/readme.txt
r2573328 r2580477 3 3 Tags: woocommerce, paypal, payments, ecommerce, e-commerce, store, sales, sell, shop, shopping, cart, checkout 4 4 Requires at least: 5.3 5 Tested up to: 5. 75 Tested up to: 5.8 6 6 Requires PHP: 7.1 7 Stable tag: 1. 4.07 Stable tag: 1.5.0 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 PayPal'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. 16 16 Built 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 20 Streamline your business with one simple, powerful solution. 21 22 With 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 26 Expand 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 33 Create stable, predictable income by offering subscription plans. 34 35 With 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 37 It’s easy for shoppers, simple for you, and great for your business–with no monthly or setup fees. 38 39 PayPal is also compatible with [WooCommerce Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/). 17 40 18 41 == Installation == … … 58 81 59 82 == 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 60 92 61 93 = 1.4.0 = -
woocommerce-paypal-payments/trunk/vendor/autoload.php
r2573328 r2580477 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3::getLoader();7 return ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c::getLoader(); -
woocommerce-paypal-payments/trunk/vendor/composer/autoload_classmap.php
r2573328 r2580477 104 104 'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => $baseDir . '/modules/ppcp-button/src/Helper/class-threedsecure.php', 105 105 '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', 106 111 'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => $baseDir . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php', 107 112 '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 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa35 class ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit e10b41e28707caa8003f07ad0a5b2aa3', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInit66bca0ec46d311fe385c37586d44ac5c', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; … … 54 54 55 55 if ($useStaticLoader) { 56 $includeFiles = Composer\Autoload\ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$files;56 $includeFiles = Composer\Autoload\ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$files; 57 57 } else { 58 58 $includeFiles = require __DIR__ . '/autoload_files.php'; 59 59 } 60 60 foreach ($includeFiles as $fileIdentifier => $file) { 61 composerRequire e10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file);61 composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file); 62 62 } 63 63 … … 66 66 } 67 67 68 function composerRequire e10b41e28707caa8003f07ad0a5b2aa3($fileIdentifier, $file)68 function composerRequire66bca0ec46d311fe385c37586d44ac5c($fileIdentifier, $file) 69 69 { 70 70 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
woocommerce-paypal-payments/trunk/vendor/composer/autoload_static.php
r2573328 r2580477 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa37 class ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c 8 8 { 9 9 public static $files = array ( … … 179 179 'WooCommerce\\PayPalCommerce\\Button\\Helper\\ThreeDSecure' => __DIR__ . '/../..' . '/modules/ppcp-button/src/Helper/class-threedsecure.php', 180 180 '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', 181 186 'WooCommerce\\PayPalCommerce\\Onboarding\\Assets\\OnboardingAssets' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Assets/class-onboardingassets.php', 182 187 'WooCommerce\\PayPalCommerce\\Onboarding\\Endpoint\\LoginSellerEndpoint' => __DIR__ . '/../..' . '/modules/ppcp-onboarding/src/Endpoint/class-loginsellerendpoint.php', … … 238 243 { 239 244 return \Closure::bind(function () use ($loader) { 240 $loader->prefixLengthsPsr4 = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$prefixLengthsPsr4;241 $loader->prefixDirsPsr4 = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$prefixDirsPsr4;242 $loader->classMap = ComposerStaticInit e10b41e28707caa8003f07ad0a5b2aa3::$classMap;245 $loader->prefixLengthsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixLengthsPsr4; 246 $loader->prefixDirsPsr4 = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$prefixDirsPsr4; 247 $loader->classMap = ComposerStaticInit66bca0ec46d311fe385c37586d44ac5c::$classMap; 243 248 244 249 }, null, ClassLoader::class); -
woocommerce-paypal-payments/trunk/vendor/composer/installed.php
r2573328 r2580477 6 6 'install_path' => __DIR__ . '/../../', 7 7 'aliases' => array(), 8 'reference' => ' fbbcb12e45513f7785e1e03d86e1c72b95b46b90',8 'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2', 9 9 'name' => 'woocommerce/woocommerce-paypal-payments', 10 10 'dev' => false, … … 125 125 'install_path' => __DIR__ . '/../../', 126 126 'aliases' => array(), 127 'reference' => ' fbbcb12e45513f7785e1e03d86e1c72b95b46b90',127 'reference' => '095acaee4e556f5342c4508b320a28ef9dee8cc2', 128 128 'dev_requirement' => false, 129 129 ), -
woocommerce-paypal-payments/trunk/woocommerce-paypal-payments.php
r2573328 r2580477 4 4 * Plugin URI: https://woocommerce.com/products/woocommerce-paypal-payments/ 5 5 * 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.06 * Version: 1.5.0 7 7 * Author: WooCommerce 8 8 * Author URI: https://woocommerce.com/ … … 78 78 } 79 79 $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 80 85 foreach ( $modules as $module ) { 81 86 /* @var $module ModuleInterface module */
Note: See TracChangeset
for help on using the changeset viewer.