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

Fix issue with charge.succeeded triggering error on recurring contributions

parent b1e330af
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN {
$params = [
'id' => $this->contribution['id'],
'trxn_date' => $this->receive_date,
'contribution_trxn_id' => $this->charge_id,
'contribution_trxn_id' => $this->invoice_id ?: $this->charge_id,
'payment_trxn_id' => $this->charge_id,
'total_amount' => $this->amount,
'fee_amount' => $this->fee,
......
......@@ -34,6 +34,9 @@ class CRM_Stripe_Api {
case 'receive_date':
return self::formatDate($stripeObject->created);
case 'invoice_id':
return (string) $stripeObject->invoice;
}
break;
......
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