You are viewing limited content. For full access, please sign in.

Question

Question

Authorize.net merchant seal

asked on August 27, 2019

For Authorize.net there is an option to include a merchant seal using JavaScript. I have included the item within a custom HTML field in my Laserfiche Form. This currently does nothing. I was wondering if there was a limitation for custom HTML fields and using JavaScript within them? I'm using the following snippet in the field:

<div class="AuthorizeNetSeal"> 
<script type="text/javascript" language="javascript">
    var ANS_customer_id="";
</script> 
<script type="text/javascript" language="javascript" src="//verify.authorize.net:443/anetseal/seal.js" ></script> 
</div>

I have omitted the customer id. Does this need to be translated in a way to be inserted into the JavaScript section in Forms?

0 0

Replies

replied on August 12, 2020

Cristobal,
Copy and paste the following code into the "CSS and JavaScript" section of the Form Designer. Save it and then preview the form using your browsers developer tool as it will show you the dynamically created HTML (regular view source won't). Also, this will add the code right before the closing BODY tag and you will also need to add the customer_id back in.


$(document).ready(function() {
  $('<div class="AuthorizeNetSeal"><script>var ANS_customer_id="";<\/script><script src="\/\/verify.authorize.net:443\/anetseal\/seal.js"><\/script><\/div>').appendTo("body");
});

Hope this helps!
Wesley Funderberg

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.