I’m trying to integrate paddle(https://www.paddle.com/) with streamlit for my app for adding payment functionality. Paddle uses paddle.js(Build an overlay checkout - Paddle Developer) for communication between the app and the paddle dashboard. I have added the html code with javascript in the components.html.
When I try the overlay in codepen(https://codepen.io/iammanish/pen/wvbvKoJ), it works perfectly fine and accepts payments, but when I use it in my streamlit app, i get something wrong as the error on the overlay. Is it possible to integrate paddle with streamlit or do i have to try something else? Do I have to create a bidirectional streamlit component?
the same html code above is present in the codepen link i sent in the original post. the overlay works in the codepen as expected but in streamlit it gives the something wrong error.
In the console I get this after clicking on “Sign up now” button:
{type: 'checkout.error', code: 'validation', detail: 'Something went wrong | API Error: The source page must be a valid URL.', documentation_url: 'https://developer.paddle.com/api-reference'}
it looks like when I click on “Sign up now” button, it tries to add a new iframe to the html code but since it doesn’t have a direct access to the html code, it gives Source page must be a valid URL as the error.