From bbbac7a997552d838e0d9a9ca1a70c48ed83ee41 Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Tue, 19 Sep 2023 13:21:58 -0400 Subject: [PATCH] Fix: update gateways option key in Stripe adapter for Payment Element Gateway (#6945) Co-authored-by: Jon Waldstein --- src/PaymentGateways/Gateways/Stripe/LegacyStripeAdapter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PaymentGateways/Gateways/Stripe/LegacyStripeAdapter.php b/src/PaymentGateways/Gateways/Stripe/LegacyStripeAdapter.php index 62b446901a..81c751c833 100644 --- a/src/PaymentGateways/Gateways/Stripe/LegacyStripeAdapter.php +++ b/src/PaymentGateways/Gateways/Stripe/LegacyStripeAdapter.php @@ -20,7 +20,7 @@ public function loadLegacyStripeWebhooksAndFilters() { $settings = give_get_settings(); $gatewaysFromSettings = $settings['gateways'] ?? []; - $gatewaysFromOption = give_get_option('gateways'); + $gatewaysFromOption = give_get_option('gateways_v3', []); // for some reason, the gateways from the settings are not always in the gateways from the option. // this might be a service provider race conditions.