• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Blazor Javascript Drop-In Script Not Working

Resolved: Blazor Javascript Drop-In Script Not Working

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am working on integrating Chargebee into a Blazor app. The way the drop-in script for Chargebee works is I need to include a javascript script, which I am doing in my index.html file.
Then, in theory I should be able to just include a drop in link in one of my razor views like this.
But when I do this and run the site, click the link, nothing happens, no error, no drop-in popup. Is there something about Blazor that doesn’t allow this action to work the way it would work with another framework? I have tested this with plain HTML files and it works fine.
Thanks in advance for any help.

Answer:

You will need to call Chargebee.init(options); via JSInterop. See the documentation linked below for more details on the Chargebee JS API.
https://www.chargebee.com/checkout-portal-docs/api.html#chargebee-object

If you have better answer, please add a comment about this, thank you!

asp.net blazor chargebee javascript
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Java Virtual Machines deleted

27/03/2023

Resolved: PyCharm cannot see my newly compiled .pyc see on import

27/03/2023

Resolved: I am facing ERR_HTTP2_PROTOCOL_ERROR on my website

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.