diff --git a/CRM/Stripe/PaymentIntent.php b/CRM/Stripe/PaymentIntent.php index 6fbc7c6eb3241dd3cb909fd4573ba002e6c27e32..8835825462eb564001eb5145c8b96c4b5b784fb5 100644 --- a/CRM/Stripe/PaymentIntent.php +++ b/CRM/Stripe/PaymentIntent.php @@ -335,8 +335,8 @@ class CRM_Stripe_PaymentIntent { $intentParams['confirmation_method'] = 'automatic'; } - if ($params['paymentIntentID']) { - // We already have a PaymentIntent, retrieve and attempt confirm. + if (!empty($params['paymentIntentID'])) { + // We already have a PaymentIntent, retrieve and attempt to confirm. $intent = $this->paymentProcessor->stripeClient->paymentIntents->retrieve($params['paymentIntentID']); if ($intent->status === 'requires_confirmation') { $intent->confirm();