Skip to content
Snippets Groups Projects
Commit b90ff056 authored by mattwire's avatar mattwire
Browse files

Fix PHP notice

parent ea9369d1
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment