#xfechx-connect-embedded
1 messages · Page 1 of 1 (latest)
Hello @raw panther
I am looking for a way to import the @sinful bane/connect.js into my server without using npm
if I download the code from github, which folder is the one I need to focus on
thank you, reading
Do you know how can I load this using async with wordpress?
What have you tried though that isn't working? The docs directly show an async load already
yes, I think async already sorted, I am following the integration tutorial, but then I don't know where to add the code snippet of the url you shared (when it is loaded without npm)
You had it in your JS code wherever you usually add Stripe code, there's nothing different about it
in one example it has this:
container.appendChild(paymentsComponent);``` (from without npm)
in the npm example has this:
document.body.appendChild(payments);```
Sorry you're posting short messages without much details. Try and make your questions clear, all in one message with the exact issue you are experiencing as a developer trying this.
should I try to adapt the code to use StripeConnectInstance.create or instance.create will work ...
The docs I shared shouldwork. Next step is to try it yourself. If it doesn't then you'll get exact code, an exact error in the JS console, etc.