Commit 39056eb5 authored by mattwire's avatar mattwire
Browse files

Fix loading of confirm JS on contribution thankyou page

parent cf4e17a3
......@@ -39,7 +39,7 @@ class CRM_Stripe_BAO_StripePaymentintent extends CRM_Stripe_DAO_StripePaymentint
public static function create($params) {
$instance = new self;
try {
if ($params['id']) {
if (!empty($params['id'])) {
$instance->id = $params['id'];
}
elseif ($params['paymentintent_id']) {
......
......@@ -136,7 +136,7 @@ function stripe_civicrm_buildForm($formName, &$form) {
}
switch ($formName) {
case 'CRM_Contribution_Form_ThankYou':
case 'CRM_Contribute_Form_Contribution_ThankYou':
case 'CRM_Event_Form_Registration_ThankYou':
\Civi::resources()->addScriptFile(E::LONG_NAME, 'js/civicrmStripeConfirm.js');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment