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

Fixes #34 - allow webhooks to work in test mode

parent 4abd559e
Branches
Tags
No related merge requests found
......@@ -457,6 +457,7 @@ class CRM_Core_Payment_StripeIPN extends CRM_Core_Payment_BaseIPN {
$contribution = civicrm_api3('contribution', 'getsingle', array(
'return' => array('id', 'contribution_status_id', 'total_amount', 'trxn_id'),
'contribution_recur_id' => $this->contribution_recur_id,
'contribution_test' => $this->_paymentProcessor['is_test'],
'options' => array('limit' => 1, 'sort' => 'id DESC'),
));
$this->previous_contribution = $contribution;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment