From 1a5863a12c23ef741dba4da27766856114bf5c77 Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Fri, 21 Jan 2022 16:44:05 +0000
Subject: [PATCH] Fix 3dsecure verification

---
 js/civicrm_stripe.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js
index ce32a9c3..cf784680 100644
--- a/js/civicrm_stripe.js
+++ b/js/civicrm_stripe.js
@@ -170,7 +170,7 @@
                     if (paymentIntentProcessResponse.requires_action) {
                       // Use Stripe.js to handle a pending card action (eg. 3d-secure)
                       script.paymentData.clientSecret = paymentIntentProcessResponse.paymentIntentClientSecret;
-                      stripe.handleCardAction(paymentData.clientSecret)
+                      stripe.handleCardAction(script.paymentData.clientSecret)
                         .then(function (cardActionResult) {
                           if (cardActionResult.error) {
                             // Show error in payment form
-- 
GitLab