Version Description
Download this release
Release Info
Developer | jason_the_adams |
Plugin | Give – Donation Plugin and Fundraising Platform |
Version | 2.19.7 |
Comparing to | |
See all releases |
Code changes from version 2.19.6 to 2.19.7
- give.php +2 -2
- languages/give.pot +11 -11
- readme.txt +4 -1
- src/PaymentGateways/Gateways/Stripe/BECSGateway.php +3 -1
- src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php +30 -29
- src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php +3 -2
- src/PaymentGateways/Gateways/Stripe/SEPAGateway.php +3 -1
- src/PaymentGateways/Gateways/Stripe/Traits/HandlePaymentIntentStatus.php +6 -5
- src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
give.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
7 |
* Author: GiveWP
|
8 |
* Author URI: https://givewp.com/
|
9 |
-
* Version: 2.19.
|
10 |
* Requires at least: 5.0
|
11 |
* Requires PHP: 5.6
|
12 |
* Text Domain: give
|
@@ -303,7 +303,7 @@ final class Give
|
|
303 |
{
|
304 |
// Plugin version.
|
305 |
if (!defined('GIVE_VERSION')) {
|
306 |
-
define('GIVE_VERSION', '2.19.
|
307 |
}
|
308 |
|
309 |
// Plugin Root File.
|
6 |
* Description: The most robust, flexible, and intuitive way to accept donations on WordPress.
|
7 |
* Author: GiveWP
|
8 |
* Author URI: https://givewp.com/
|
9 |
+
* Version: 2.19.7
|
10 |
* Requires at least: 5.0
|
11 |
* Requires PHP: 5.6
|
12 |
* Text Domain: give
|
303 |
{
|
304 |
// Plugin version.
|
305 |
if (!defined('GIVE_VERSION')) {
|
306 |
+
define('GIVE_VERSION', '2.19.7');
|
307 |
}
|
308 |
|
309 |
// Plugin Root File.
|
languages/give.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Give - Donation Plugin 2.19.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: give\n"
|
@@ -13141,8 +13141,8 @@ msgid "<strong>Action Needed:</strong> Please update the Recurring Donations add
|
|
13141 |
msgstr ""
|
13142 |
|
13143 |
#: includes/gateways/stripe/class-give-stripe.php:189
|
13144 |
-
#: src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php:
|
13145 |
-
#: src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php:
|
13146 |
msgid "Stripe - Credit Card"
|
13147 |
msgstr ""
|
13148 |
|
@@ -13154,14 +13154,14 @@ msgid "Credit Card"
|
|
13154 |
msgstr ""
|
13155 |
|
13156 |
#: includes/gateways/stripe/class-give-stripe.php:195
|
13157 |
-
#: src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php:
|
13158 |
-
#: src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php:
|
13159 |
msgid "Stripe - Checkout"
|
13160 |
msgstr ""
|
13161 |
|
13162 |
#: includes/gateways/stripe/class-give-stripe.php:201
|
13163 |
-
#: src/PaymentGateways/Gateways/Stripe/SEPAGateway.php:
|
13164 |
-
#: src/PaymentGateways/Gateways/Stripe/SEPAGateway.php:
|
13165 |
msgid "Stripe - SEPA Direct Debit"
|
13166 |
msgstr ""
|
13167 |
|
@@ -13171,8 +13171,8 @@ msgid "SEPA Direct Debit"
|
|
13171 |
msgstr ""
|
13172 |
|
13173 |
#: includes/gateways/stripe/class-give-stripe.php:207
|
13174 |
-
#: src/PaymentGateways/Gateways/Stripe/BECSGateway.php:
|
13175 |
-
#: src/PaymentGateways/Gateways/Stripe/BECSGateway.php:
|
13176 |
msgid "Stripe - BECS Direct Debit"
|
13177 |
msgstr ""
|
13178 |
|
@@ -15439,7 +15439,7 @@ msgstr ""
|
|
15439 |
msgid "A Stripe window will open after you click the Donate Now button where you can securely make your donation. You will then be brought back to this page to view your receipt."
|
15440 |
msgstr ""
|
15441 |
|
15442 |
-
#: src/PaymentGateways/Gateways/Stripe/Traits/HandlePaymentIntentStatus.php:
|
15443 |
msgid "Unhandled payment intent status: %s"
|
15444 |
msgstr ""
|
15445 |
|
2 |
# This file is distributed under the same license as the Give - Donation Plugin plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Give - Donation Plugin 2.19.7\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/givewp\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-04-04T23:35:47+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: give\n"
|
13141 |
msgstr ""
|
13142 |
|
13143 |
#: includes/gateways/stripe/class-give-stripe.php:189
|
13144 |
+
#: src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php:88
|
13145 |
+
#: src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php:96
|
13146 |
msgid "Stripe - Credit Card"
|
13147 |
msgstr ""
|
13148 |
|
13154 |
msgstr ""
|
13155 |
|
13156 |
#: includes/gateways/stripe/class-give-stripe.php:195
|
13157 |
+
#: src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php:109
|
13158 |
+
#: src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php:117
|
13159 |
msgid "Stripe - Checkout"
|
13160 |
msgstr ""
|
13161 |
|
13162 |
#: includes/gateways/stripe/class-give-stripe.php:201
|
13163 |
+
#: src/PaymentGateways/Gateways/Stripe/SEPAGateway.php:81
|
13164 |
+
#: src/PaymentGateways/Gateways/Stripe/SEPAGateway.php:89
|
13165 |
msgid "Stripe - SEPA Direct Debit"
|
13166 |
msgstr ""
|
13167 |
|
13171 |
msgstr ""
|
13172 |
|
13173 |
#: includes/gateways/stripe/class-give-stripe.php:207
|
13174 |
+
#: src/PaymentGateways/Gateways/Stripe/BECSGateway.php:81
|
13175 |
+
#: src/PaymentGateways/Gateways/Stripe/BECSGateway.php:89
|
13176 |
msgid "Stripe - BECS Direct Debit"
|
13177 |
msgstr ""
|
13178 |
|
15439 |
msgid "A Stripe window will open after you click the Donate Now button where you can securely make your donation. You will then be brought back to this page to view your receipt."
|
15440 |
msgstr ""
|
15441 |
|
15442 |
+
#: src/PaymentGateways/Gateways/Stripe/Traits/HandlePaymentIntentStatus.php:32
|
15443 |
msgid "Unhandled payment intent status: %s"
|
15444 |
msgstr ""
|
15445 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: donation, donate, recurring donations, fundraising, crowdfunding
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.19.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -250,6 +250,9 @@ The 2% fee on Stripe donations only applies to donations taken via our free Stri
|
|
250 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
251 |
|
252 |
== Changelog ==
|
|
|
|
|
|
|
253 |
= 2.19.6: March 31st, 2022 =
|
254 |
* Change: Click in the background when viewing a form in the Form Grid now closes the form
|
255 |
* Fix: Significant improvements to making GiveWP translatable, especially the Donor Dashboard and other JavaScript
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.9
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.19.7
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
250 |
8. GiveWP has a dedicated support team to help answer any questions you may have and help you through stumbling blocks.
|
251 |
|
252 |
== Changelog ==
|
253 |
+
= 2.19.7: April 4th, 2022 =
|
254 |
+
* Fix: Resolved a regression in 2.19.6 that broke the Stripe Checkout gateway — please update immediately
|
255 |
+
|
256 |
= 2.19.6: March 31st, 2022 =
|
257 |
* Change: Click in the background when viewing a form in the Form Grid now closes the form
|
258 |
* Fix: Significant improvements to making GiveWP translatable, especially the Donor Dashboard and other JavaScript
|
src/PaymentGateways/Gateways/Stripe/BECSGateway.php
CHANGED
@@ -33,6 +33,7 @@ class BECSGateway extends PaymentGateway
|
|
33 |
|
34 |
/**
|
35 |
* @inheritDoc
|
|
|
36 |
* @since 2.19.0
|
37 |
* @return GatewayCommand
|
38 |
* @throws PaymentGatewayException
|
@@ -51,7 +52,8 @@ class BECSGateway extends PaymentGateway
|
|
51 |
$donationSummary,
|
52 |
$stripeCustomer,
|
53 |
$paymentMethod
|
54 |
-
)
|
|
|
55 |
);
|
56 |
}
|
57 |
|
33 |
|
34 |
/**
|
35 |
* @inheritDoc
|
36 |
+
* @since 2.19.7 fix handlePaymentIntentStatus not receiving extra param
|
37 |
* @since 2.19.0
|
38 |
* @return GatewayCommand
|
39 |
* @throws PaymentGatewayException
|
52 |
$donationSummary,
|
53 |
$stripeCustomer,
|
54 |
$paymentMethod
|
55 |
+
),
|
56 |
+
$paymentData->donationId
|
57 |
);
|
58 |
}
|
59 |
|
src/PaymentGateways/Gateways/Stripe/CheckoutGateway.php
CHANGED
@@ -8,13 +8,10 @@ use Give\Framework\PaymentGateways\Commands\RedirectOffsite;
|
|
8 |
use Give\Framework\PaymentGateways\Exceptions\PaymentGatewayException;
|
9 |
use Give\Framework\PaymentGateways\PaymentGateway;
|
10 |
use Give\Helpers\Call;
|
11 |
-
use Give\Helpers\Form\Utils as FormUtils;
|
12 |
use Give\Helpers\Gateways\Stripe;
|
13 |
use Give\PaymentGateways\DataTransferObjects\GatewayPaymentData;
|
|
|
14 |
use Give\PaymentGateways\Gateways\Stripe\Exceptions\CheckoutException;
|
15 |
-
use Give\PaymentGateways\Gateways\Stripe\Helpers\CheckoutHelper;
|
16 |
-
use Give\PaymentGateways\Gateways\Stripe\ValueObjects\CheckoutSession;
|
17 |
-
use Give\PaymentGateways\Gateways\Stripe\ValueObjects\PaymentIntent;
|
18 |
|
19 |
/**
|
20 |
* @since 2.19.0
|
@@ -24,31 +21,13 @@ class CheckoutGateway extends PaymentGateway
|
|
24 |
use Traits\CheckoutInstructions;
|
25 |
use Traits\CheckoutModal;
|
26 |
use Traits\CheckoutRedirect;
|
27 |
-
use Traits\HandlePaymentIntentStatus;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @inheritDoc
|
31 |
-
* @since 2.19.0
|
32 |
-
* @return GatewayCommand
|
33 |
-
* @throws PaymentGatewayException
|
34 |
-
*/
|
35 |
-
public function createPayment( GatewayPaymentData $paymentData )
|
36 |
-
{
|
37 |
-
switch (give_stripe_get_checkout_type()) {
|
38 |
-
case 'modal':
|
39 |
-
return $this->createPaymentModal($paymentData);
|
40 |
-
case 'redirect':
|
41 |
-
return $this->createPaymentRedirect($paymentData);
|
42 |
-
default:
|
43 |
-
throw new CheckoutException('Invalid Checkout Error');
|
44 |
-
}
|
45 |
-
}
|
46 |
|
47 |
/**
|
|
|
48 |
* @since 2.19.0
|
49 |
* @return PaymentProcessing|RedirectOffsite
|
50 |
* @throws Exceptions\PaymentIntentException
|
51 |
-
* @throws
|
52 |
*/
|
53 |
protected function createPaymentModal( GatewayPaymentData $paymentData )
|
54 |
{
|
@@ -64,20 +43,42 @@ class CheckoutGateway extends PaymentGateway
|
|
64 |
$donationSummary,
|
65 |
$stripeCustomer,
|
66 |
$paymentMethod
|
67 |
-
)
|
|
|
68 |
);
|
69 |
}
|
70 |
|
|
|
|
|
71 |
/**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
* @since 2.19.0
|
73 |
*
|
74 |
* @return RedirectOffsite
|
75 |
*/
|
76 |
-
protected function createPaymentRedirect(
|
77 |
{
|
78 |
-
$donationSummary = Call::invoke(
|
79 |
-
$stripeCustomer = Call::invoke(
|
80 |
-
$session = Call::invoke(
|
81 |
|
82 |
return new RedirectOffsite(
|
83 |
$this->getRedirectUrl( $session->id(), give_get_payment_form_id( $paymentData->donationId ) )
|
8 |
use Give\Framework\PaymentGateways\Exceptions\PaymentGatewayException;
|
9 |
use Give\Framework\PaymentGateways\PaymentGateway;
|
10 |
use Give\Helpers\Call;
|
|
|
11 |
use Give\Helpers\Gateways\Stripe;
|
12 |
use Give\PaymentGateways\DataTransferObjects\GatewayPaymentData;
|
13 |
+
use Give\PaymentGateways\Exceptions\InvalidPropertyName;
|
14 |
use Give\PaymentGateways\Gateways\Stripe\Exceptions\CheckoutException;
|
|
|
|
|
|
|
15 |
|
16 |
/**
|
17 |
* @since 2.19.0
|
21 |
use Traits\CheckoutInstructions;
|
22 |
use Traits\CheckoutModal;
|
23 |
use Traits\CheckoutRedirect;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
/**
|
26 |
+
* @since 2.19.7 fix handlePaymentIntentStatus not receiving extra param
|
27 |
* @since 2.19.0
|
28 |
* @return PaymentProcessing|RedirectOffsite
|
29 |
* @throws Exceptions\PaymentIntentException
|
30 |
+
* @throws InvalidPropertyName
|
31 |
*/
|
32 |
protected function createPaymentModal( GatewayPaymentData $paymentData )
|
33 |
{
|
43 |
$donationSummary,
|
44 |
$stripeCustomer,
|
45 |
$paymentMethod
|
46 |
+
),
|
47 |
+
$paymentData->donationId
|
48 |
);
|
49 |
}
|
50 |
|
51 |
+
use Traits\HandlePaymentIntentStatus;
|
52 |
+
|
53 |
/**
|
54 |
+
* @inheritDoc
|
55 |
+
* @since 2.19.0
|
56 |
+
* @return GatewayCommand
|
57 |
+
* @throws PaymentGatewayException
|
58 |
+
*/
|
59 |
+
public function createPayment(GatewayPaymentData $paymentData)
|
60 |
+
{
|
61 |
+
switch (give_stripe_get_checkout_type()) {
|
62 |
+
case 'modal':
|
63 |
+
return $this->createPaymentModal($paymentData);
|
64 |
+
case 'redirect':
|
65 |
+
return $this->createPaymentRedirect($paymentData);
|
66 |
+
default:
|
67 |
+
throw new CheckoutException('Invalid Checkout Error');
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* @since 2.19.7 fix argument order of CreateCheckoutSession
|
73 |
* @since 2.19.0
|
74 |
*
|
75 |
* @return RedirectOffsite
|
76 |
*/
|
77 |
+
protected function createPaymentRedirect(GatewayPaymentData $paymentData)
|
78 |
{
|
79 |
+
$donationSummary = Call::invoke(Actions\SaveDonationSummary::class, $paymentData);
|
80 |
+
$stripeCustomer = Call::invoke(Actions\GetOrCreateStripeCustomer::class, $paymentData);
|
81 |
+
$session = Call::invoke(Actions\CreateCheckoutSession::class, $paymentData, $donationSummary, $stripeCustomer);
|
82 |
|
83 |
return new RedirectOffsite(
|
84 |
$this->getRedirectUrl( $session->id(), give_get_payment_form_id( $paymentData->donationId ) )
|
src/PaymentGateways/Gateways/Stripe/CreditCardGateway.php
CHANGED
@@ -40,6 +40,7 @@ class CreditCardGateway extends PaymentGateway
|
|
40 |
|
41 |
/**
|
42 |
* @inheritDoc
|
|
|
43 |
* @since 2.19.0
|
44 |
* @return GatewayCommand
|
45 |
* @throws PaymentGatewayException
|
@@ -53,13 +54,13 @@ class CreditCardGateway extends PaymentGateway
|
|
53 |
$createIntentAction = new Actions\CreatePaymentIntent([]);
|
54 |
|
55 |
return $this->handlePaymentIntentStatus(
|
56 |
-
$paymentData,
|
57 |
$createIntentAction(
|
58 |
$paymentData,
|
59 |
$donationSummary,
|
60 |
$stripeCustomer,
|
61 |
$paymentMethod
|
62 |
-
)
|
|
|
63 |
);
|
64 |
}
|
65 |
|
40 |
|
41 |
/**
|
42 |
* @inheritDoc
|
43 |
+
* @since 2.19.7 fix handlePaymentIntentStatus not receiving extra param
|
44 |
* @since 2.19.0
|
45 |
* @return GatewayCommand
|
46 |
* @throws PaymentGatewayException
|
54 |
$createIntentAction = new Actions\CreatePaymentIntent([]);
|
55 |
|
56 |
return $this->handlePaymentIntentStatus(
|
|
|
57 |
$createIntentAction(
|
58 |
$paymentData,
|
59 |
$donationSummary,
|
60 |
$stripeCustomer,
|
61 |
$paymentMethod
|
62 |
+
),
|
63 |
+
$paymentData->donationId
|
64 |
);
|
65 |
}
|
66 |
|
src/PaymentGateways/Gateways/Stripe/SEPAGateway.php
CHANGED
@@ -33,6 +33,7 @@ class SEPAGateway extends PaymentGateway
|
|
33 |
|
34 |
/**
|
35 |
* @inheritDoc
|
|
|
36 |
* @since 2.19.0
|
37 |
* @return GatewayCommand
|
38 |
* @throws PaymentGatewayException
|
@@ -51,7 +52,8 @@ class SEPAGateway extends PaymentGateway
|
|
51 |
$donationSummary,
|
52 |
$stripeCustomer,
|
53 |
$paymentMethod
|
54 |
-
)
|
|
|
55 |
);
|
56 |
}
|
57 |
|
33 |
|
34 |
/**
|
35 |
* @inheritDoc
|
36 |
+
* @since 2.19.7 fix handlePaymentIntentStatus not receiving extra param
|
37 |
* @since 2.19.0
|
38 |
* @return GatewayCommand
|
39 |
* @throws PaymentGatewayException
|
52 |
$donationSummary,
|
53 |
$stripeCustomer,
|
54 |
$paymentMethod
|
55 |
+
),
|
56 |
+
$paymentData->donationId
|
57 |
);
|
58 |
}
|
59 |
|
src/PaymentGateways/Gateways/Stripe/Traits/HandlePaymentIntentStatus.php
CHANGED
@@ -4,24 +4,25 @@ namespace Give\PaymentGateways\Gateways\Stripe\Traits;
|
|
4 |
|
5 |
use Give\Framework\PaymentGateways\Commands\PaymentProcessing;
|
6 |
use Give\Framework\PaymentGateways\Commands\RedirectOffsite;
|
7 |
-
use Give\PaymentGateways\DataTransferObjects\GatewayPaymentData;
|
8 |
use Give\PaymentGateways\Gateways\Stripe\Exceptions\PaymentIntentException;
|
9 |
use Give\PaymentGateways\Gateways\Stripe\ValueObjects\PaymentIntent;
|
10 |
|
11 |
trait HandlePaymentIntentStatus
|
12 |
{
|
13 |
/**
|
14 |
-
* @param
|
15 |
-
*
|
|
|
|
|
16 |
*
|
17 |
* @return PaymentProcessing|RedirectOffsite
|
18 |
* @throws PaymentIntentException
|
19 |
*/
|
20 |
-
public function handlePaymentIntentStatus(
|
21 |
{
|
22 |
switch ($paymentIntent->status()) {
|
23 |
case 'requires_action':
|
24 |
-
give_set_payment_transaction_id($
|
25 |
return new RedirectOffsite($paymentIntent->nextActionRedirectUrl());
|
26 |
case 'succeeded':
|
27 |
case 'processing':
|
4 |
|
5 |
use Give\Framework\PaymentGateways\Commands\PaymentProcessing;
|
6 |
use Give\Framework\PaymentGateways\Commands\RedirectOffsite;
|
|
|
7 |
use Give\PaymentGateways\Gateways\Stripe\Exceptions\PaymentIntentException;
|
8 |
use Give\PaymentGateways\Gateways\Stripe\ValueObjects\PaymentIntent;
|
9 |
|
10 |
trait HandlePaymentIntentStatus
|
11 |
{
|
12 |
/**
|
13 |
+
* @since 2.19.7 fix param order and only pass donationId
|
14 |
+
*
|
15 |
+
* @param PaymentIntent $paymentIntent
|
16 |
+
* @param string $donationId
|
17 |
*
|
18 |
* @return PaymentProcessing|RedirectOffsite
|
19 |
* @throws PaymentIntentException
|
20 |
*/
|
21 |
+
public function handlePaymentIntentStatus(PaymentIntent $paymentIntent, $donationId)
|
22 |
{
|
23 |
switch ($paymentIntent->status()) {
|
24 |
case 'requires_action':
|
25 |
+
give_set_payment_transaction_id($donationId, $paymentIntent->id());
|
26 |
return new RedirectOffsite($paymentIntent->nextActionRedirectUrl());
|
27 |
case 'succeeded':
|
28 |
case 'processing':
|
src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php
CHANGED
@@ -6,7 +6,7 @@ use Give\Framework\Database\DB;
|
|
6 |
use Give\Framework\Migrations\Contracts\Migration;
|
7 |
|
8 |
/**
|
9 |
-
* @
|
10 |
*/
|
11 |
class RemoveLogWithCardInfo extends Migration
|
12 |
{
|
6 |
use Give\Framework\Migrations\Contracts\Migration;
|
7 |
|
8 |
/**
|
9 |
+
* @since 2.19.7
|
10 |
*/
|
11 |
class RemoveLogWithCardInfo extends Migration
|
12 |
{
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,18 +24,18 @@ class ComposerAutoloaderInitaec979c5c4d8a802b3d020dfdcdf9714
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
-
\Composer\Autoload\
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
36 |
-
$includeFiles = \Composer\Autoload\
|
37 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
38 |
-
|
39 |
}
|
40 |
|
41 |
return $loader;
|
@@ -47,7 +47,7 @@ class ComposerAutoloaderInitaec979c5c4d8a802b3d020dfdcdf9714
|
|
47 |
* @param string $file
|
48 |
* @return void
|
49 |
*/
|
50 |
-
function
|
51 |
{
|
52 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
53 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit57b24275f7ed9df273273d7ad15cefca', 'loadClassLoader'));
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
+
\Composer\Autoload\ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::getInitializer($loader)();
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
36 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::$files;
|
37 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
38 |
+
composerRequire57b24275f7ed9df273273d7ad15cefca($fileIdentifier, $file);
|
39 |
}
|
40 |
|
41 |
return $loader;
|
47 |
* @param string $file
|
48 |
* @return void
|
49 |
*/
|
50 |
+
function composerRequire57b24275f7ed9df273273d7ad15cefca($fileIdentifier, $file)
|
51 |
{
|
52 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
53 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
@@ -125,9 +125,9 @@ class ComposerStaticInitaec979c5c4d8a802b3d020dfdcdf9714
|
|
125 |
public static function getInitializer(ClassLoader $loader)
|
126 |
{
|
127 |
return \Closure::bind(function () use ($loader) {
|
128 |
-
$loader->prefixLengthsPsr4 =
|
129 |
-
$loader->prefixDirsPsr4 =
|
130 |
-
$loader->classMap =
|
131 |
|
132 |
}, null, ClassLoader::class);
|
133 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit57b24275f7ed9df273273d7ad15cefca
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
|
125 |
public static function getInitializer(ClassLoader $loader)
|
126 |
{
|
127 |
return \Closure::bind(function () use ($loader) {
|
128 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::$prefixLengthsPsr4;
|
129 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::$prefixDirsPsr4;
|
130 |
+
$loader->classMap = ComposerStaticInit57b24275f7ed9df273273d7ad15cefca::$classMap;
|
131 |
|
132 |
}, null, ClassLoader::class);
|
133 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'pretty_version' => '2.19.
|
4 |
-
'version' => '2.19.
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'impress-org/give',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -41,12 +41,12 @@
|
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
-
'pretty_version' => '2.19.
|
45 |
-
'version' => '2.19.
|
46 |
'type' => 'wordpress-plugin',
|
47 |
'install_path' => __DIR__ . '/../../',
|
48 |
'aliases' => array(),
|
49 |
-
'reference' => '
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
'kjohnson/format-object-list' => array(
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => '2.19.7',
|
4 |
+
'version' => '2.19.7.0',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '3478199903c71606cd3ad46171ad8673a8c4ac94',
|
9 |
'name' => 'impress-org/give',
|
10 |
'dev' => false,
|
11 |
),
|
41 |
),
|
42 |
),
|
43 |
'impress-org/give' => array(
|
44 |
+
'pretty_version' => '2.19.7',
|
45 |
+
'version' => '2.19.7.0',
|
46 |
'type' => 'wordpress-plugin',
|
47 |
'install_path' => __DIR__ . '/../../',
|
48 |
'aliases' => array(),
|
49 |
+
'reference' => '3478199903c71606cd3ad46171ad8673a8c4ac94',
|
50 |
'dev_requirement' => false,
|
51 |
),
|
52 |
'kjohnson/format-object-list' => array(
|