upalm Posted January 28, 2020 Share Posted January 28, 2020 Hello, Greetings! Could someone help me with the popover as I am always landing up with 'Remote Transaction Failure' with 'Stripe' as the only change from my template and the default 'six' is that I can see is that the popover for the 3dsecure is not coming and neither does it come for the 2FA (basically it does not load the stripe.js in the footer) according to view source, I've been trying to wrap my head around this for weeks now but I cannot seem to solve it. Please if anybody could help me it would be highly appreciated. Is there a way to add the hook manually to the template? add_hook("AdminAreaFooterOutput", 1, function (array $vars) { $filename = $vars["filename"]; $return = ""; if ($filename == "clientssummary") { $return = "<script type=\"text/javascript\" src=\"https://js.stripe.com/v3/\"></script>"; } return $return; }); add_hook("ClientAreaFooterOutput", 1, function (array $vars) { $filename = $vars["filename"]; $template = $vars["templatefile"]; $return = ""; $requiredFiles = array("cart", "creditcard"); $requiredTemplates = array("account-paymentmethods-manage", "invoice-payment"); if (in_array($filename, $requiredFiles) || in_array($template, $requiredTemplates)) { $return = "<script type=\"text/javascript\" src=\"https://js.stripe.com/v3/\"></script>"; } return $return; }); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.