Skip to content
Snippets Groups Projects
Commit 6a5666ff authored by Jamie McClelland's avatar Jamie McClelland
Browse files

properly handle newer way to record trxn_id value

parent d86982a4
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,13 @@ function civicrm_api3_stripe_Listevents($params) {
if ($results['count'] > 0) {
$item['processed'] = 'yes';
}
else {
// Newer versions of stripe store the invoice id in trxn_id.
$results = civicrm_api3('Contribution', 'get', array('trxn_id' => $item['invoice']));
if ($results['count'] > 0) {
$item['processed'] = 'yes';
}
}
}
$out[] = $item;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment