My payment provider created a widget for me that I have been trying to integrate for an entire day.
The instructions were to add a script to the footer and a div on the element.
I have tried a million different configs but I cannot find one that displays anything. I have created the link below to a demo page where I have attempted to follow their instruction using HTML elements. I have also added the instructions they sent to me in a text element on the page for reference.
Demo
How do I get passed this?!
Hello @eddie.sellers.jr,
Sorry to hear you are having some troubles.
This is very interesting, but I found the issue!
The payment provider gave you some weird code, they used some weird quotes (" ") in their code which caused it to throw an error. I have attached the correctly formatted code below!
<div id="wbc_container"> </div>
<script>
window.__wbc = window.__wbc || {};
window.__wbc.id = "wbc_container";
window.__wbc.company = "Buildport";
window.__wbc.link = "https://go.billd.com/buildport-enhanced-terms";
window.__wbc.image = "https://billd.com/custom/js/cc/bp_cc.png?v2";
window.__wbc.color = "#FF0102";
(function () {
var wbc = document.createElement("script");
wbc.type = "text/javascript";
wbc.async = true;
wbc.src =
("https:" == document.location.protocol ? "https://" : "http://") + "billd.com/custom/js/widget.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(wbc, s);
})();
</script>
1 Like
Hey @johnny !
Wow. Thank you! I can finally move on with my project. I really appreciate you looking into this for me. I see now what you mean about the weird quotes.
1 Like
You’re welcome! As a programmer I definitely know the struggles when your project is completely stopped due to some weird code. I’m glad I was help to you!
system
Closed
5
This topic was automatically closed after 70 days. New replies are no longer allowed.