Skip to content
Snippets Groups Projects
Commit 1f5be916 authored by Joshua Walker's avatar Joshua Walker
Browse files

Merge pull request #51 from relldoesphp/4.5-1.8

Patch - Add support for offline events/memberships
parents d1946e58 43ff0c2c
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