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

Fix #89 - Payment Element is not loading for backend "Credit Card Event Registration"

parent 8af73c75
No related branches found
No related tags found
No related merge requests found
......@@ -317,6 +317,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @param \CRM_Core_Form $form
*/
public function buildForm(&$form) {
// Don't use \Civi::resources()->addScriptFile etc as they often don't work on AJAX loaded forms (eg. participant backend registration)
$jsVars = [
'id' => $form->_paymentProcessor['id'],
'currency' => $this->getDefaultCurrencyForForm($form),
......@@ -339,7 +340,9 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
'styleUrl' => \Civi::resources()->getUrl(E::LONG_NAME, "css/elements{$min}.css"),
'weight' => -1,
]);
\Civi::resources()->addScriptFile(E::LONG_NAME, "js/civicrm_stripe{$min}.js");
CRM_Core_Region::instance('billing-block')->add([
'scriptUrl' => \Civi::resources()->getUrl(E::LONG_NAME, "js/civicrm_stripe{$min}.js"),
]);
}
/**
......
## Release 6.1.2
* Fix [#89](https://lab.civicrm.org/extensions/stripe/issues/89) - Payment Element is not loading for backend "Credit Card Event Registration".
## Release 6.1.1
* Fix issue with charge.succeeded triggering error on recurring contributions
......
......@@ -12,8 +12,8 @@
<author>Matthew Wire (MJW Consulting)</author>
<email>mjw@mjwconsult.co.uk</email>
</maintainer>
<releaseDate>2019-09-17</releaseDate>
<version>6.1.1</version>
<releaseDate>2019-09-19</releaseDate>
<version>6.1.2</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.13</ver>
......
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