You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By reading the source code, I think it goes like this:
classStripeCardComponentextendsReact.Component{componentWillReceiveProps(props){if(!this.props.Stripe&&props.Stripe){console.log('Got Stripe - 1 time only as next time it will come in the constructor')}render(){if(this.props.Stripe){thenyouhaveit}}};exportdefaultmakeAsyncScriptLoader(StripeCardComponent,"https://js.stripe.com/v3/",{globalName: 'Stripe',});
Activity
dozoisch commentedon May 1, 2017
I'll try it as soon as possible and get back to you!
aacotroneo commentedon May 13, 2017
Stripe does not have a global callback, so remove the callbackName option and the loaded will be called as soon as the script loads.
aacotroneo commentedon May 13, 2017
By reading the source code, I think it goes like this: