Question:
Is it possible to add the following HTML code in a Wix Blocks app?
Example HTML Code:
<div>
<div id="widget-here-rEUhs" class="widget-here" data-shortcode="rEUhs" data-lang="auto" value="donation-widget"></div>
</div>
<link rel="stylesheet" href="css url"/><script src="script url" type="text/javascript"></script>
What I Am Trying to Achieve:
I want this app to add multiple widgets in the app elements section of a Wix website. These widgets should be generated dynamically using different versions of the above HTML code.
I have already created an app that allows users to copy the HTML code manually. However, when I tried embedding custom HTML within an iframe, Stripe Elements stopped working for payment methods that require redirection.
Alternative Solutions:
If embedding raw HTML inside Wix Blocks is not feasible, I am open to alternative approaches that allow the seamless addition of these widgets while ensuring Stripe Elements functions correctly.