Skip to content
Snippets Groups Projects
Commit 5efea8d8 authored by Peter Hartmann's avatar Peter Hartmann Committed by GitHub
Browse files

Merge pull request #199 from mattwire/form_filter

Fix backend contributions
parents 5512c2dd a8d3db6b
No related branches found
No related tags found
No related merge requests found
......@@ -279,7 +279,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
}
// Determine if we are dealing with a webform in CiviCRM 4.7. Those don't have a
// _paymentProcessors array and only have one payprocesssor.
if (get_class($form) == 'CRM_Financial_Form_Payment') {
if (in_array(get_class($form), array('CRM_Financial_Form_Payment', 'CRM_Contribute_Form_Contribution'))) {
return $stripe_ppid = $form->_paymentProcessor['id'];
}
else {
......
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