Commit 6a5666ff authored by Jamie McClelland's avatar Jamie McClelland
Browse files

properly handle newer way to record trxn_id value

extensions/stripe#124
parent d86982a4
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment