react-paystack icon indicating copy to clipboard operation
react-paystack copied to clipboard

Unable to load paystack inline script crashing website.

Open cjndubisi opened this issue 2 years ago • 2 comments

When paystack script isn't loaded, throwing inside a useEffect cannot be cause. This mostly happens when there is a proxy on the internet connection.

Can this be return to the use as past of the hook?

  useEffect(() => {
    if (scriptError) {
      throw new Error('Unable to load paystack inline script');
    }
  }, [scriptError]);

cjndubisi avatar Jan 30 '22 13:01 cjndubisi

Also the pop up isn't getting called because scriptLoaded doesn't change

cjndubisi avatar Jan 30 '22 14:01 cjndubisi

Have you been able to resolve this issues, I'm experiencing the same.

EmmanuelOmoiya avatar Jun 03 '23 16:06 EmmanuelOmoiya