diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js
index ce32a9c383a579c1cb85a868f132838fd497e41b..cf784680251585487110ecda2b53040f1fe66317 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