Skip to content
Snippets Groups Projects
Commit 43ff0c2c authored by Tyrell Cook's avatar Tyrell Cook
Browse files

Patch - Add support for offline events/memberships

The buildform hook only supported offline contributions but should also work on offline event registrations and offline memberships
parent 796b6110
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ function stripe_civicrm_buildForm($formName, &$form) {
}
}
// For the 'Record Contribution' backend page.
if ($formName == 'CRM_Contribute_Form_Contribution' && !empty($form->_processors)) {
if ($formName == 'CRM_Contribute_Form_Contribution' || $formName == 'CRM_Event_Form_Participant' || $formName == 'CRM_Member_Form_Membership' && !empty($form->_processors)) {
if (!isset($form->_elementIndex['stripe_token'])) {
$form->addElement('hidden', 'stripe_token', NULL, array('id'=> 'stripe-token'));
stripe_add_stripe_js($form);
......
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