From 52d79d953c7657682d956c8f7230aec6a4c1d0a7 Mon Sep 17 00:00:00 2001 From: Angela Blake <35241639+angelablake@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:58:15 -0500 Subject: [PATCH] chore: prepare for 2.33.0 release --- .../src/js/frontend/paypal-commerce/SmartButtons.js | 2 +- assets/src/js/frontend/paypal-commerce/index.js | 2 +- assets/src/js/plugins/give-api/api.js | 2 +- give.php | 4 ++-- .../gateways/stripe/includes/give-stripe-helpers.php | 2 +- .../payment-methods/class-give-stripe-sepa.php | 2 +- readme.txt | 8 +++++++- src/DonationForms/V2/DonationFormsAdminPage.php | 2 +- .../CommandHandlers/SubscriptionSyncedHandler.php | 6 +++--- .../PaymentGateways/Commands/SubscriptionSynced.php | 12 ++++++------ .../Controllers/GatewaySubscriptionController.php | 2 +- src/Framework/PaymentGateways/PaymentGateway.php | 2 +- .../Gateways/Stripe/Actions/CreatePaymentIntent.php | 2 +- .../Migrations/RemovePaymentIntentSecretMeta.php | 2 +- .../PayPalCommerce/AdminSettingFields.php | 2 +- .../Banners/GatewaySettingPageBanner.php | 6 +++--- .../Banners/PayPalDonationsSettingPageBanner.php | 4 ++-- ...ayPalStandardToDonationsMigrationGlobalBanner.php | 12 ++++++------ .../PayPalCommerce/PayPalCommerce.php | 2 +- src/PaymentGateways/ServiceProvider.php | 4 ++-- 20 files changed, 43 insertions(+), 37 deletions(-) diff --git a/assets/src/js/frontend/paypal-commerce/SmartButtons.js b/assets/src/js/frontend/paypal-commerce/SmartButtons.js index d175dc3490..0752bb9274 100644 --- a/assets/src/js/frontend/paypal-commerce/SmartButtons.js +++ b/assets/src/js/frontend/paypal-commerce/SmartButtons.js @@ -21,7 +21,7 @@ class SmartButtons extends PaymentMethod { /** * Check if smart buttons can be shown. - * @unreleased + * @since 2.33.0 * @return {boolean} */ static canShow() { diff --git a/assets/src/js/frontend/paypal-commerce/index.js b/assets/src/js/frontend/paypal-commerce/index.js index 1b136c7089..c4562c1400 100644 --- a/assets/src/js/frontend/paypal-commerce/index.js +++ b/assets/src/js/frontend/paypal-commerce/index.js @@ -155,7 +155,7 @@ document.addEventListener('DOMContentLoaded', () => { } /** - * @unreleased Add logic to reload PayPal SDK script for donation form. + * @since 2.33.0 Add logic to reload PayPal SDK script for donation form. * @since 2.20.0 * @param {object} $form */ diff --git a/assets/src/js/plugins/give-api/api.js b/assets/src/js/plugins/give-api/api.js index 8ef67bad5c..719d62afcf 100644 --- a/assets/src/js/plugins/give-api/api.js +++ b/assets/src/js/plugins/give-api/api.js @@ -187,7 +187,7 @@ const Give = { /** * Get global param * - * @unreleased Return default value of global param if param not found. + * @since 2.33.0 Return default value of global param if param not found. * @since 2.2.4 * * @return {object} WordPress localized global param. diff --git a/give.php b/give.php index 94e5adcc0f..eb9243b5c2 100644 --- a/give.php +++ b/give.php @@ -6,7 +6,7 @@ * Description: The most robust, flexible, and intuitive way to accept donations on WordPress. * Author: GiveWP * Author URI: https://givewp.com/ - * Version: 2.32.0 + * Version: 2.33.0 * Requires at least: 5.0 * Requires PHP: 7.0 * Text Domain: give @@ -316,7 +316,7 @@ private function setup_constants() { // Plugin version. if (!defined('GIVE_VERSION')) { - define('GIVE_VERSION', '2.32.0'); + define('GIVE_VERSION', '2.33.0'); } // Plugin Root File. diff --git a/includes/gateways/stripe/includes/give-stripe-helpers.php b/includes/gateways/stripe/includes/give-stripe-helpers.php index b9c2022763..1fbf6ca7fb 100644 --- a/includes/gateways/stripe/includes/give-stripe-helpers.php +++ b/includes/gateways/stripe/includes/give-stripe-helpers.php @@ -844,7 +844,7 @@ function give_stripe_is_source_type( $id, $type = 'src' ) { /** * This helper function is used to process Stripe payments. * - * @unreleased no longer store the payment intent secret + * @since 2.33.0 no longer store the payment intent secret * @since 2.5.0 * * @param array $donation_data Donation form data. diff --git a/includes/gateways/stripe/includes/payment-methods/class-give-stripe-sepa.php b/includes/gateways/stripe/includes/payment-methods/class-give-stripe-sepa.php index ff03baf986..453c4c9bcd 100644 --- a/includes/gateways/stripe/includes/payment-methods/class-give-stripe-sepa.php +++ b/includes/gateways/stripe/includes/payment-methods/class-give-stripe-sepa.php @@ -157,7 +157,7 @@ class="give-stripe-sepa-iban-field give-stripe-cc-field" /** * This function will be used for donation processing. * - * @unreleased no longer store the intent secret in the database + * @since 2.33.0 no longer store the intent secret in the database * @since 2.6.1 * * @param array $donation_data List of donation data. diff --git a/readme.txt b/readme.txt index ef9ac830c2..06f126f4c7 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding Requires at least: 5.0 Tested up to: 6.3 Requires PHP: 7.0 -Stable tag: 2.32.0 +Stable tag: 2.33.0 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -258,6 +258,12 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri 8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks. == Changelog == += 2.33.0: August 28th, 2023 = +* New: Admins can now select standard or advanced connection type during setup +* New: Added a new SubscriptionSynced command class +* New: Added PayPal Standard to PayPal Donations migration information banners +* Security: Remove uses of payment intent secret and existing meta + = 2.32.0: August 11th, 2023 = * Feature: Scroll Stripe modal into view for Legacy + Multi-step forms * Feature: Added check for application/json in form headers accept diff --git a/src/DonationForms/V2/DonationFormsAdminPage.php b/src/DonationForms/V2/DonationFormsAdminPage.php index 2f62e7aacf..b5b031bc97 100644 --- a/src/DonationForms/V2/DonationFormsAdminPage.php +++ b/src/DonationForms/V2/DonationFormsAdminPage.php @@ -74,7 +74,7 @@ public function highlightAllFormsMenuItem() /** * Load scripts * - * @unreleased Set admin script and style dependencies to display PayPal Standard to Donations Migration banner. + * @since 2.33.0 Set admin script and style dependencies to display PayPal Standard to Donations Migration banner. */ public function loadScripts() { diff --git a/src/Framework/PaymentGateways/CommandHandlers/SubscriptionSyncedHandler.php b/src/Framework/PaymentGateways/CommandHandlers/SubscriptionSyncedHandler.php index d04a65f1ae..5d3967140c 100644 --- a/src/Framework/PaymentGateways/CommandHandlers/SubscriptionSyncedHandler.php +++ b/src/Framework/PaymentGateways/CommandHandlers/SubscriptionSyncedHandler.php @@ -10,12 +10,12 @@ use function Give\Framework\Http\Response\response; /** - * @unreleased + * @since 2.33.0 */ class SubscriptionSyncedHandler { /** - * @unreleased + * @since 2.33.0 * * @throws Exception */ @@ -53,7 +53,7 @@ public function __invoke(SubscriptionSynced $subscriptionSynced): JsonResponse } /** - * @unreleased + * @since 2.33.0 */ private function getTransactionData(Donation $donation): array { diff --git a/src/Framework/PaymentGateways/Commands/SubscriptionSynced.php b/src/Framework/PaymentGateways/Commands/SubscriptionSynced.php index 04d45be7f2..fc42d583a6 100644 --- a/src/Framework/PaymentGateways/Commands/SubscriptionSynced.php +++ b/src/Framework/PaymentGateways/Commands/SubscriptionSynced.php @@ -6,40 +6,40 @@ use Give\Subscriptions\Models\Subscription; /** - * @unreleased + * @since 2.33.0 */ class SubscriptionSynced implements GatewayCommand { /** - * @unreleased + * @since 2.33.0 * * @var Subscription */ public $subscription; /** - * @unreleased + * @since 2.33.0 * * @var array */ public $missingDonations; /** - * @unreleased + * @since 2.33.0 * * @var array */ public $presentDonations; /** - * @unreleased + * @since 2.33.0 * * @var string */ public $notice; /** - * @unreleased + * @since 2.33.0 * * @param Subscription $subscription Do not save the subscription, just return it so the API can see what's dirty * @param Donation[] $missingDonations The missing donations added to the subscription diff --git a/src/Framework/PaymentGateways/Controllers/GatewaySubscriptionController.php b/src/Framework/PaymentGateways/Controllers/GatewaySubscriptionController.php index d7bbf28042..d41394237a 100644 --- a/src/Framework/PaymentGateways/Controllers/GatewaySubscriptionController.php +++ b/src/Framework/PaymentGateways/Controllers/GatewaySubscriptionController.php @@ -60,7 +60,7 @@ public function create(Donation $donation, Subscription $subscription, array $ga } /** - * @unreleased + * @since 2.33.0 */ public function synchronizeSubscription(Subscription $subscription) { diff --git a/src/Framework/PaymentGateways/PaymentGateway.php b/src/Framework/PaymentGateways/PaymentGateway.php index a24a36f78a..8ada45e79b 100644 --- a/src/Framework/PaymentGateways/PaymentGateway.php +++ b/src/Framework/PaymentGateways/PaymentGateway.php @@ -191,7 +191,7 @@ public function hasGatewayDashboardSubscriptionUrl(): bool } /** - * @unreleased Return synchronizeSubscription() instead nothing + * @since 2.33.0 Return synchronizeSubscription() instead nothing * @since 2.21.2 * @inheritDoc * @throws Exception diff --git a/src/PaymentGateways/Gateways/Stripe/Actions/CreatePaymentIntent.php b/src/PaymentGateways/Gateways/Stripe/Actions/CreatePaymentIntent.php index d2615fcdb6..2314b94175 100644 --- a/src/PaymentGateways/Gateways/Stripe/Actions/CreatePaymentIntent.php +++ b/src/PaymentGateways/Gateways/Stripe/Actions/CreatePaymentIntent.php @@ -27,7 +27,7 @@ public function __construct(array $paymentIntentArgs = []) } /** - * @unreleased no longer store the payment intent secret + * @since 2.33.0 no longer store the payment intent secret * @since 2.19.0 * * @throws InvalidPropertyName diff --git a/src/PaymentGateways/Gateways/Stripe/Migrations/RemovePaymentIntentSecretMeta.php b/src/PaymentGateways/Gateways/Stripe/Migrations/RemovePaymentIntentSecretMeta.php index 554d154760..265e6f83ad 100644 --- a/src/PaymentGateways/Gateways/Stripe/Migrations/RemovePaymentIntentSecretMeta.php +++ b/src/PaymentGateways/Gateways/Stripe/Migrations/RemovePaymentIntentSecretMeta.php @@ -8,7 +8,7 @@ /** * Removes the secret meta that was unnecessarily stored in the database for donations. * - * @unreleased + * @since 2.33.0 */ class RemovePaymentIntentSecretMeta extends Migration { diff --git a/src/PaymentGateways/PayPalCommerce/AdminSettingFields.php b/src/PaymentGateways/PayPalCommerce/AdminSettingFields.php index 03d745e9ed..9c30dd136d 100644 --- a/src/PaymentGateways/PayPalCommerce/AdminSettingFields.php +++ b/src/PaymentGateways/PayPalCommerce/AdminSettingFields.php @@ -487,7 +487,7 @@ class="js-give-paypal-disconnect-paypal-account" } /** - * @unreleased + * @since 2.33.0 */ private function getBanner(): string { diff --git a/src/PaymentGateways/PayPalCommerce/Banners/GatewaySettingPageBanner.php b/src/PaymentGateways/PayPalCommerce/Banners/GatewaySettingPageBanner.php index 3759ae57a6..3ce44b1a62 100644 --- a/src/PaymentGateways/PayPalCommerce/Banners/GatewaySettingPageBanner.php +++ b/src/PaymentGateways/PayPalCommerce/Banners/GatewaySettingPageBanner.php @@ -7,13 +7,13 @@ * * This class is used to render banner on gateway settings page. * - * @unreleased + * @since 2.33.0 */ class GatewaySettingPageBanner { /** * Setup hook. - * @unreleased + * @since 2.33.0 * @return void */ public function setupHook() @@ -24,7 +24,7 @@ public function setupHook() /** * Render banner. - * @unreleased + * @since 2.33.0 * @return void */ public function render() diff --git a/src/PaymentGateways/PayPalCommerce/Banners/PayPalDonationsSettingPageBanner.php b/src/PaymentGateways/PayPalCommerce/Banners/PayPalDonationsSettingPageBanner.php index 1dfe871d6c..4961035c75 100644 --- a/src/PaymentGateways/PayPalCommerce/Banners/PayPalDonationsSettingPageBanner.php +++ b/src/PaymentGateways/PayPalCommerce/Banners/PayPalDonationsSettingPageBanner.php @@ -5,12 +5,12 @@ /** * Class GatewaySettingPageBanner * - * @unreleased + * @since 2.33.0 */ class PayPalDonationsSettingPageBanner { /** - * @unreleased + * @since 2.33.0 */ public function render(): string { diff --git a/src/PaymentGateways/PayPalCommerce/Banners/PayPalStandardToDonationsMigrationGlobalBanner.php b/src/PaymentGateways/PayPalCommerce/Banners/PayPalStandardToDonationsMigrationGlobalBanner.php index cd0c0d05e1..da989fb5dd 100644 --- a/src/PaymentGateways/PayPalCommerce/Banners/PayPalStandardToDonationsMigrationGlobalBanner.php +++ b/src/PaymentGateways/PayPalCommerce/Banners/PayPalStandardToDonationsMigrationGlobalBanner.php @@ -9,18 +9,18 @@ * * Note: This class uses notice api to disable the banner for the user. * - * @unreleased + * @since 2.33.0 */ class PayPalStandardToDonationsMigrationGlobalBanner { /** - * @unreleased + * @since 2.33.0 * @var string */ private $bannerId = 'PayPalStandardToDonationsMigrationGlobalBanner'; /** - * @unreleased + * @since 2.33.0 * @return void */ public function setHook() @@ -45,7 +45,7 @@ public function setHook() /** * Render the banner. * - * @unreleased + * @since 2.33.0 */ public function getModalScript(): string { @@ -147,7 +147,7 @@ classes: { } /** - * @unreleased + * @since 2.33.0 * @return string */ private function getIcon(): string @@ -158,7 +158,7 @@ private function getIcon(): string } /** - * @unreleased + * @since 2.33.0 * @return bool */ private function isBannerDisabledForUser(): bool diff --git a/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php b/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php index b36207f4c8..796cf715c4 100644 --- a/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php +++ b/src/PaymentGateways/PayPalCommerce/PayPalCommerce.php @@ -105,7 +105,7 @@ public function createPayment(Donation $donation, $gatewayData): GatewayCommand } /** - * @unreleased Register new payment field type setting. + * @since 2.33.0 Register new payment field type setting. * @since 2.27.3 Enable Venmo payment method by default. * @since 2.16.2 Add setting "Transaction type". */ diff --git a/src/PaymentGateways/ServiceProvider.php b/src/PaymentGateways/ServiceProvider.php index 99c2307d09..0658e62e12 100644 --- a/src/PaymentGateways/ServiceProvider.php +++ b/src/PaymentGateways/ServiceProvider.php @@ -73,7 +73,7 @@ public function boot() } /** - * @unreleased add RemovePaymentIntentSecretMeta migration + * @since 2.33.0 add RemovePaymentIntentSecretMeta migration * @since 2.19.6 */ private function registerMigrations() @@ -89,7 +89,7 @@ private function registerMigrations() /** * This method registers the banners. - * @unreleased + * @since 2.33.0 * @return void */ private function registerPayPalDonationsMigrationBanners()