diff --git a/changelog.txt b/changelog.txt index bf86c37a..8e4cc9ac 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,10 @@ *** Changelog *** += 2.1.0 - 2020-10-06 = +* New - Add support for PayPal Credit messaging. PR#810 +* Fix - Hide the "Pay Later" funding method when "PayPal Credit" is disabled. PR#811 +* Fix - Display correct image size in the PayPal Checkout window. PR#779 + = 2.0.3 - 2020-07-01 = * Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764 * Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765 diff --git a/languages/woocommerce-gateway-paypal-express-checkout.pot b/languages/woocommerce-gateway-paypal-express-checkout.pot index da121ac0..a0370b10 100644 --- a/languages/woocommerce-gateway-paypal-express-checkout.pot +++ b/languages/woocommerce-gateway-paypal-express-checkout.pot @@ -2,14 +2,14 @@ # This file is distributed under the same license as the WooCommerce PayPal Checkout Gateway plugin. msgid "" msgstr "" -"Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.0.2\n" +"Project-Id-Version: WooCommerce PayPal Checkout Gateway 2.1.0\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2020-07-01T13:39:01+10:00\n" +"POT-Creation-Date: 2020-10-06T13:02:34+10:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.4.0\n" "X-Domain: woocommerce-gateway-paypal-express-checkout\n" @@ -49,121 +49,121 @@ msgstr "" msgid "Continue to payment" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:169 +#: includes/abstracts/abstract-wc-gateway-ppec.php:174 msgid "Sorry, an error occurred while trying to process your payment. Please try again." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:202 +#: includes/abstracts/abstract-wc-gateway-ppec.php:207 msgid "No API certificate on file." msgstr "" #. Translators: placeholders are a date in local format and its timezone. -#: includes/abstracts/abstract-wc-gateway-ppec.php:212 +#: includes/abstracts/abstract-wc-gateway-ppec.php:217 msgid "expires on %1$s (%2$s)" msgstr "" #. Translators: placeholders are a date in local format and its timezone. -#: includes/abstracts/abstract-wc-gateway-ppec.php:217 +#: includes/abstracts/abstract-wc-gateway-ppec.php:222 msgid "expired on %1$s (%2$s)" msgstr "" #. Translators: 1) is a certificate's CN, 2) is the expiration date. -#: includes/abstracts/abstract-wc-gateway-ppec.php:228 +#: includes/abstracts/abstract-wc-gateway-ppec.php:233 msgid "Certificate belongs to API username %1$s; %2$s." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:230 +#: includes/abstracts/abstract-wc-gateway-ppec.php:235 msgid "The certificate on file is not valid." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:295 +#: includes/abstracts/abstract-wc-gateway-ppec.php:300 msgid "Error: You must enter API username." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:299 +#: includes/abstracts/abstract-wc-gateway-ppec.php:304 msgid "Error: You must enter API password." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:303 +#: includes/abstracts/abstract-wc-gateway-ppec.php:308 msgid "Error: You must provide API signature or certificate." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:313 -#: includes/abstracts/abstract-wc-gateway-ppec.php:340 +#: includes/abstracts/abstract-wc-gateway-ppec.php:318 +#: includes/abstracts/abstract-wc-gateway-ppec.php:345 msgid "Error: The API credentials you provided are not valid. Please double-check that you entered them correctly and try again." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:317 +#: includes/abstracts/abstract-wc-gateway-ppec.php:322 msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:324 +#: includes/abstracts/abstract-wc-gateway-ppec.php:329 msgid "Error: The API certificate is not valid." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:331 +#: includes/abstracts/abstract-wc-gateway-ppec.php:336 msgid "Error: The API certificate has expired." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:333 +#: includes/abstracts/abstract-wc-gateway-ppec.php:338 msgid "Error: The API username does not match the name in the API certificate. Make sure that you have the correct API certificate." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:343 +#: includes/abstracts/abstract-wc-gateway-ppec.php:348 msgid "An error occurred while trying to validate your API credentials. Unable to verify that your API credentials are correct." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:362 +#: includes/abstracts/abstract-wc-gateway-ppec.php:367 msgid "The \"require billing address\" option is not enabled by your account and has been disabled." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:387 +#: includes/abstracts/abstract-wc-gateway-ppec.php:392 msgid "Refund Error: You need to specify a refund amount." msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:399 +#: includes/abstracts/abstract-wc-gateway-ppec.php:404 msgid "Refund Error: Sorry! This is not a refundable transaction." msgstr "" #. Translators: placeholder is a transaction ID. -#: includes/abstracts/abstract-wc-gateway-ppec.php:412 -#: includes/abstracts/abstract-wc-gateway-ppec.php:437 -#: includes/abstracts/abstract-wc-gateway-ppec.php:489 +#: includes/abstracts/abstract-wc-gateway-ppec.php:417 +#: includes/abstracts/abstract-wc-gateway-ppec.php:442 +#: includes/abstracts/abstract-wc-gateway-ppec.php:494 msgid "PayPal refund completed; transaction ID = %s" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:461 +#: includes/abstracts/abstract-wc-gateway-ppec.php:466 msgid "Refund Error: All transactions have been fully refunded. There is no amount left to refund" msgstr "" #. Translators: placeholder is an amount (with currency symbol). -#: includes/abstracts/abstract-wc-gateway-ppec.php:464 +#: includes/abstracts/abstract-wc-gateway-ppec.php:469 msgid "Refund Error: The requested refund amount is too large. The refund amount must be less than or equal to %s." msgstr "" #. Translators: placeholder is an image's URL. -#: includes/abstracts/abstract-wc-gateway-ppec.php:582 +#: includes/abstracts/abstract-wc-gateway-ppec.php:587 msgid "Already using URL as image: %s" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:590 +#: includes/abstracts/abstract-wc-gateway-ppec.php:595 msgid "Select a image to upload" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:591 +#: includes/abstracts/abstract-wc-gateway-ppec.php:596 msgid "Use this image" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:592 -#: includes/abstracts/abstract-wc-gateway-ppec.php:595 +#: includes/abstracts/abstract-wc-gateway-ppec.php:597 +#: includes/abstracts/abstract-wc-gateway-ppec.php:600 msgid "Add image" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:603 +#: includes/abstracts/abstract-wc-gateway-ppec.php:608 msgid "Remove image" msgstr "" -#: includes/abstracts/abstract-wc-gateway-ppec.php:642 +#: includes/abstracts/abstract-wc-gateway-ppec.php:647 msgid "Remove" msgstr "" @@ -308,27 +308,27 @@ msgstr "" msgid "An error (%s) occurred while processing your PayPal payment. Please contact the store owner for assistance." msgstr "" -#: includes/class-wc-gateway-ppec-cart-handler.php:71 -#: includes/class-wc-gateway-ppec-cart-handler.php:141 -#: includes/class-wc-gateway-ppec-cart-handler.php:162 +#: includes/class-wc-gateway-ppec-cart-handler.php:74 +#: includes/class-wc-gateway-ppec-cart-handler.php:144 +#: includes/class-wc-gateway-ppec-cart-handler.php:165 msgid "Cheatin’ huh?" msgstr "" -#: includes/class-wc-gateway-ppec-cart-handler.php:326 -#: includes/class-wc-gateway-ppec-cart-handler.php:373 -#: includes/class-wc-gateway-ppec-cart-handler.php:408 +#: includes/class-wc-gateway-ppec-cart-handler.php:329 +#: includes/class-wc-gateway-ppec-cart-handler.php:376 +#: includes/class-wc-gateway-ppec-cart-handler.php:411 msgid "Check out with PayPal" msgstr "" -#: includes/class-wc-gateway-ppec-cart-handler.php:362 +#: includes/class-wc-gateway-ppec-cart-handler.php:365 msgid "OR" msgstr "" -#: includes/class-wc-gateway-ppec-cart-handler.php:378 +#: includes/class-wc-gateway-ppec-cart-handler.php:381 msgid "Pay with PayPal Credit" msgstr "" -#: includes/class-wc-gateway-ppec-cart-handler.php:520 +#: includes/class-wc-gateway-ppec-cart-handler.php:585 msgid "An error occurred while processing your PayPal payment. Please contact the store owner for assistance." msgstr "" @@ -547,53 +547,53 @@ msgstr "" msgid "Success! Your PayPal account has been set up successfully." msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:158 +#: includes/class-wc-gateway-ppec-plugin.php:173 msgid "bootstrap() in WooCommerce Gateway PayPal Checkout plugin can only be called once" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:260 +#: includes/class-wc-gateway-ppec-plugin.php:275 msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce to be activated" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:264 +#: includes/class-wc-gateway-ppec-plugin.php:279 msgid "WooCommerce Gateway PayPal Checkout requires WooCommerce version 2.5 or greater" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:268 +#: includes/class-wc-gateway-ppec-plugin.php:283 msgid "WooCommerce Gateway PayPal Checkout requires cURL to be installed on your server" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:271 +#: includes/class-wc-gateway-ppec-plugin.php:286 msgid "WooCommerce Gateway PayPal Checkout requires OpenSSL >= 1.0.1 to be installed on your server" msgstr "" #. Translators: placeholder is the URL of the gateway settings page. -#: includes/class-wc-gateway-ppec-plugin.php:299 +#: includes/class-wc-gateway-ppec-plugin.php:314 msgid "PayPal Checkout is almost ready. To get started, connect your PayPal account." msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:429 +#: includes/class-wc-gateway-ppec-plugin.php:444 msgid "Settings" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:448 +#: includes/class-wc-gateway-ppec-plugin.php:463 msgid "View Documentation" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:448 +#: includes/class-wc-gateway-ppec-plugin.php:463 msgid "Docs" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:449 +#: includes/class-wc-gateway-ppec-plugin.php:464 msgid "Open a support request at WooCommerce.com" msgstr "" -#: includes/class-wc-gateway-ppec-plugin.php:449 +#: includes/class-wc-gateway-ppec-plugin.php:464 msgid "Support" msgstr "" #. Translators: placeholder is the URL of the gateway settings page. -#: includes/class-wc-gateway-ppec-plugin.php:505 +#: includes/class-wc-gateway-ppec-plugin.php:520 msgid "

PayPal Checkout with new Smart Payment Buttons™ gives your customers the power to pay the way they want without leaving your site.

The existing buttons will be removed in the next release. Please upgrade to Smart Payment Buttons on the PayPal Checkout settings page.

" msgstr "" @@ -1050,6 +1050,7 @@ msgid "Gold (Recommended)" msgstr "" #: includes/settings/settings-ppec.php:344 +#: includes/settings/settings-ppec.php:528 msgid "Blue" msgstr "" @@ -1058,6 +1059,8 @@ msgid "Silver" msgstr "" #: includes/settings/settings-ppec.php:346 +#: includes/settings/settings-ppec.php:512 +#: includes/settings/settings-ppec.php:527 msgid "Black" msgstr "" @@ -1188,71 +1191,202 @@ msgstr "" msgid "Sofort" msgstr "" -#: includes/settings/settings-ppec.php:464 +#: includes/settings/settings-ppec.php:460 +msgid "Enable PayPal Credit messages" +msgstr "" + +#: includes/settings/settings-ppec.php:462 +msgid "Display credit messages on your website to promote special financing offers, which help increase sales." +msgstr "" + +#: includes/settings/settings-ppec.php:465 +msgid "Credit Messaging Layout" +msgstr "" + +#: includes/settings/settings-ppec.php:470 +msgid "Text" +msgstr "" + +#: includes/settings/settings-ppec.php:471 +msgid "Graphic" +msgstr "" + +#: includes/settings/settings-ppec.php:475 +msgid "The layout of the message." +msgstr "" + +#: includes/settings/settings-ppec.php:478 +msgid "Credit Messaging logo" +msgstr "" + +#: includes/settings/settings-ppec.php:483 +msgid "Primary" +msgstr "" + +#: includes/settings/settings-ppec.php:484 +msgid "Alternative" +msgstr "" + +#: includes/settings/settings-ppec.php:485 +msgid "In-Line" +msgstr "" + +#: includes/settings/settings-ppec.php:486 +msgid "None" +msgstr "" + +#: includes/settings/settings-ppec.php:490 +msgid "PayPal Credit logo used in the message." +msgstr "" + +#: includes/settings/settings-ppec.php:493 +msgid "Credit Messaging logo position" +msgstr "" + +#: includes/settings/settings-ppec.php:498 +msgid "Left" +msgstr "" + +#: includes/settings/settings-ppec.php:499 +msgid "Right" +msgstr "" + +#: includes/settings/settings-ppec.php:500 +msgid "Top" +msgstr "" + +#: includes/settings/settings-ppec.php:504 +msgid "Position of the PayPal logo in the message." +msgstr "" + +#: includes/settings/settings-ppec.php:507 +msgid "Credit Messaging text color" +msgstr "" + +#: includes/settings/settings-ppec.php:513 +#: includes/settings/settings-ppec.php:532 +msgid "White" +msgstr "" + +#: includes/settings/settings-ppec.php:514 +#: includes/settings/settings-ppec.php:529 +msgid "Monochrome" +msgstr "" + +#: includes/settings/settings-ppec.php:515 +#: includes/settings/settings-ppec.php:531 +msgid "Grayscale" +msgstr "" + +#: includes/settings/settings-ppec.php:519 +msgid "Text and logo color of the message." +msgstr "" + +#: includes/settings/settings-ppec.php:522 +msgid "Credit Messaging color" +msgstr "" + +#: includes/settings/settings-ppec.php:530 +msgid "Gray" +msgstr "" + +#: includes/settings/settings-ppec.php:533 +msgid "White no border" +msgstr "" + +#: includes/settings/settings-ppec.php:537 +msgid "Color of the message." +msgstr "" + +#: includes/settings/settings-ppec.php:540 +msgid "Credit Messaging ratio" +msgstr "" + +#: includes/settings/settings-ppec.php:545 +msgid "1x1" +msgstr "" + +#: includes/settings/settings-ppec.php:546 +msgid "1x4" +msgstr "" + +#: includes/settings/settings-ppec.php:547 +msgid "8x1" +msgstr "" + +#: includes/settings/settings-ppec.php:548 +msgid "20x1" +msgstr "" + +#: includes/settings/settings-ppec.php:552 +msgid "Shape and size of the message." +msgstr "" + +#: includes/settings/settings-ppec.php:567 msgid "Checkout on cart page" msgstr "" -#: includes/settings/settings-ppec.php:467 +#: includes/settings/settings-ppec.php:570 msgid "Enable PayPal Checkout on the cart page" msgstr "" -#: includes/settings/settings-ppec.php:468 +#: includes/settings/settings-ppec.php:571 msgid "This shows or hides the PayPal Checkout button on the cart page." msgstr "" -#: includes/settings/settings-ppec.php:477 +#: includes/settings/settings-ppec.php:580 msgid "Mini-cart Button Settings" msgstr "" -#: includes/settings/settings-ppec.php:483 -#: includes/settings/settings-ppec.php:516 -#: includes/settings/settings-ppec.php:550 +#: includes/settings/settings-ppec.php:586 +#: includes/settings/settings-ppec.php:624 +#: includes/settings/settings-ppec.php:658 msgid "Configure Settings" msgstr "" -#: includes/settings/settings-ppec.php:484 +#: includes/settings/settings-ppec.php:587 msgid "Configure settings specific to mini-cart" msgstr "" -#: includes/settings/settings-ppec.php:489 -#: includes/settings/settings-ppec.php:522 -#: includes/settings/settings-ppec.php:556 +#: includes/settings/settings-ppec.php:592 +#: includes/settings/settings-ppec.php:630 +#: includes/settings/settings-ppec.php:664 msgid "Optionally override global button settings above and configure buttons for this context." msgstr "" -#: includes/settings/settings-ppec.php:500 +#: includes/settings/settings-ppec.php:608 msgid "Single Product Button Settings" msgstr "" -#: includes/settings/settings-ppec.php:506 -#: includes/settings/settings-ppec.php:509 +#: includes/settings/settings-ppec.php:614 +#: includes/settings/settings-ppec.php:617 msgid "Checkout on Single Product" msgstr "" -#: includes/settings/settings-ppec.php:512 +#: includes/settings/settings-ppec.php:620 msgid "Enable PayPal Checkout on Single Product view." msgstr "" -#: includes/settings/settings-ppec.php:517 +#: includes/settings/settings-ppec.php:625 msgid "Configure settings specific to Single Product view" msgstr "" -#: includes/settings/settings-ppec.php:534 +#: includes/settings/settings-ppec.php:642 msgid "Regular Checkout Button Settings" msgstr "" -#: includes/settings/settings-ppec.php:540 +#: includes/settings/settings-ppec.php:648 msgid "PayPal Mark" msgstr "" -#: includes/settings/settings-ppec.php:543 +#: includes/settings/settings-ppec.php:651 msgid "Enable the PayPal Mark on regular checkout" msgstr "" -#: includes/settings/settings-ppec.php:544 +#: includes/settings/settings-ppec.php:652 msgid "This enables the PayPal mark, which can be shown on regular WooCommerce checkout to use PayPal Checkout like a regular WooCommerce gateway." msgstr "" -#: includes/settings/settings-ppec.php:551 +#: includes/settings/settings-ppec.php:659 msgid "Configure settings specific to regular checkout" msgstr "" diff --git a/package.json b/package.json index bccfeb1e..8ad95819 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-gateway-paypal-express-checkout", "title": "WooCommerce Gateway PayPal Express Checkout", - "version": "1.6.20", + "version": "2.1.0", "license": "GPL-3.0", "homepage": "https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/", "repository": { diff --git a/readme.txt b/readme.txt index 77e8d221..fd6db12d 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,10 @@ === WooCommerce PayPal Checkout Payment Gateway === -Contributors: woocommerce, automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov, robobot3000 +Contributors: woocommerce, automattic, woothemes, akeda, dwainm, royho, allendav, slash1andy, woosteve, spraveenitpro, mikedmoore, fernashes, shellbeezy, danieldudzic, mikaey, fullysupportedphil, dsmithweb, corsonr, bor0, zandyring, pauldechov, robobot3000, jorgeatorres, mattdallan, menakas, chickenn00dle, jamesgallan, achyuthajoy, codestor Tags: ecommerce, e-commerce, commerce, woothemes, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, configurable, paypal Requires at least: 4.4 -Tested up to: 5.4 +Tested up to: 5.5 Requires PHP: 5.5 -Stable tag: 2.0.3 +Stable tag: 2.1.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -102,6 +102,11 @@ Please use this to inform us about bugs, or make contributions via PRs. == Changelog == += 2.1.0 - 2020-10-06 = +* New - Add support for PayPal Credit messaging. PR#810 +* Fix - Hide the "Pay Later" funding method when "PayPal Credit" is disabled. PR#811 +* Fix - Display correct image size in the PayPal Checkout window. PR#779 + = 2.0.3 - 2020-07-01 = * Fix - Records the proper refunded_amount to _woo_pp_txnData in the database PR#764 * Fix - Redirect customers back to the original page they left on after closing PayPal modal PR#765 diff --git a/woocommerce-gateway-paypal-express-checkout.php b/woocommerce-gateway-paypal-express-checkout.php index ee7b8d7b..2361e845 100644 --- a/woocommerce-gateway-paypal-express-checkout.php +++ b/woocommerce-gateway-paypal-express-checkout.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce PayPal Checkout Gateway * Plugin URI: https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/ * Description: Accept all major credit and debit cards, plus Venmo and PayPal Credit in the US, presenting options in a customizable stack of payment buttons. Fast, seamless, and flexible. - * Version: 2.0.3 + * Version: 2.1.0 * Author: WooCommerce * Author URI: https://woocommerce.com * Copyright: © 2019 WooCommerce / PayPal. @@ -11,7 +11,7 @@ * License URI: http://www.gnu.org/licenses/gpl-3.0.html * Text Domain: woocommerce-gateway-paypal-express-checkout * Domain Path: /languages - * WC tested up to: 4.3 + * WC tested up to: 4.5 * WC requires at least: 2.6 */ /** @@ -27,7 +27,7 @@ exit; // Exit if accessed directly } -define( 'WC_GATEWAY_PPEC_VERSION', '2.0.3' ); +define( 'WC_GATEWAY_PPEC_VERSION', '2.1.0' ); /** * Return instance of WC_Gateway_PPEC_Plugin.