Skip to content
Snippets Groups Projects
Commit bdc67797 authored by ayduns's avatar ayduns Committed by mattwire
Browse files

Fix extensions/stripe#365 - don't try to cancel intents without an id

parent 59fac824
No related branches found
No related tags found
1 merge request!187Fix extensions/stripe#365 - don't try to cancel intents without an id
......@@ -43,6 +43,7 @@ function civicrm_api3_job_process_stripe($params) {
$incompletePaymentintents = StripePaymentintent::get(FALSE)
->addWhere('status', 'NOT IN', ['succeeded', 'cancelled', 'canceled'])
->addWhere('created_date', '<', $params['cancel_incomplete'])
->addWhere('stripe_intent_id', 'IS NOT EMPTY')
->execute();
$cancelledIDs = [];
......
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