Skip to content

Commit

Permalink
Fix: wrong donation amount sent to PayPal if donor changes amount (#7226
Browse files Browse the repository at this point in the history
)

Co-authored-by: Jon Waldstein <jonwaldstein@jons-air.mynetworksettings.com>
  • Loading branch information
glaubersilva and Jon Waldstein authored Feb 17, 2024
1 parent 5f86e66 commit 4028994
Show file tree
Hide file tree
Showing 8 changed files with 558 additions and 391 deletions.
503 changes: 268 additions & 235 deletions assets/src/js/frontend/paypal-commerce/SmartButtons.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions give.php
Original file line number Diff line number Diff line change
Expand Up @@ -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: 3.4.1
* Version: 3.4.2
* Requires at least: 6.0
* Requires PHP: 7.2
* Text Domain: give
Expand Down Expand Up @@ -403,7 +403,7 @@ private function setup_constants()
{
// Plugin version.
if (!defined('GIVE_VERSION')) {
define('GIVE_VERSION', '3.4.1');
define('GIVE_VERSION', '3.4.2');
}

// Plugin Root File.
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.2
Stable tag: 3.4.1
Stable tag: 3.4.2
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -262,6 +262,9 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
10. Use almost any payment gateway integration with GiveWP through our add-ons or by creating your own add-on.

== Changelog ==
= 3.4.2: February 19th, 2024 =
* Fix: Resolved an issue with PayPal donations that ensures the correct donation amount will be used after filling out payment details and modifying the original amount.

= 3.4.1: February 13th, 2024 =
* Fix: Resolved an issue with the default email block that ensures it is always a required field in the donation form.

Expand Down
2 changes: 1 addition & 1 deletion src/DonationForms/V2/DonationFormsAdminPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public static function getUrl(): string
/**
* Get an array of supported addons
*
* @unreleased Added support for Gift Aid
* @since 3.4.2 Added support for Gift Aid
* @since 3.3.0 Add support to the Funds and Designations addon
* @since 3.0.0
* @return array
Expand Down
Loading

0 comments on commit 4028994

Please sign in to comment.