#xfechx-connect-embedded

1 messages · Page 1 of 1 (latest)

celest pondBOT
raw panther
#

Hello @primal notch ! What's your question?

#

xfechx-connect-embedded

primal notch
#

Hello @raw panther
I am looking for a way to import the @sinful bane/connect.js into my server without using npm

primal notch
#

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?

raw panther
#

What have you tried though that isn't working? The docs directly show an async load already

primal notch
#

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)

raw panther
#

You had it in your JS code wherever you usually add Stripe code, there's nothing different about it

primal notch
#

in one example it has this:

#
      container.appendChild(paymentsComponent);``` (from without npm)
#

in the npm example has this:

  document.body.appendChild(payments);```
raw panther
#

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.

primal notch
#

should I try to adapt the code to use StripeConnectInstance.create or instance.create will work ...

raw panther
#

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.

raw panther