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

Detect billing form when stripe is not the selected processor

parent 596985d5
No related branches found
No related tags found
No related merge requests found
......@@ -331,10 +331,16 @@
}
function getBillingForm() {
// If we have a stripe billing form on the page
var $billingForm = $('input#stripe-pub-key').closest('form');
if (!$billingForm.length && getIsWebform()) {
// If we are in a webform
$billingForm = $('.webform-client-form');
}
if (!$billingForm.length) {
// If we have multiple payment processors to select and stripe is not currently loaded
$billingForm = $('input[name=hidden_processor]').closest('form');
}
return $billingForm;
}
......
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