#jb_api

1 messages ยท Page 1 of 1 (latest)

digital widgetBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1488871585304674526

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

hearty walrus
#

Can you share a session that is open?

#

Also, what specifically is the issue? Is there an error thrown? What code are you using?

coarse bobcat
#

Is the %2F part normal/expected?

#

Just checking with my colleague on the error

#

Up-to-date IDs:

  "stripe_checkout_session_id": "cs_test_b1S18l7SOBkT2guSOkdzRlOxUrhWm8FCOQJGdsw0Ena7YRZMogsftXXKoc",
  "stripe_checkout_session_client_secret": "cs_test_b1S18l7SOBkT2guSOkdzRlOxUrhWm8FCOQJGdsw0Ena7YRZMogsftXXKoc_secret_fidnandhYHdWcXxpYCc%2FJ2FgY2RwaXEnKSdwbEhqYWAnPydmcHZxamgneCUl"```
#

We're finding it's just stuck loading without any error

#

Using the checkout elements

hearty walrus
#

Can you share the exact code? There's also likely an error thrown that's uncaught and probably logged in the browser console

#

FWIW, I can generate a session that returns %2F in the secret and it mounts Elements fine

#

So there's no issue with the client_secret per se, it's likely something else โ€“ but no idea what with the few details you've shared

coarse bobcat
#

Have just spied a potential issue - they're going to debug further but we'll come back if there seems to be a more concrete problem ๐Ÿ™‚

#

Thank you for confirming re the client secrets though!

hearty walrus
#

I don't think that's the actual error, just warning. Seems like you include the Stripe.js script separately and use the stripe-js package in your app, and they're conflicting?

coarse bobcat
#

Oh the actual error is about the client secret

#

But my guess is that the cause of that error may be the mismatch in major version

#

So have suggested they sort that first

hearty walrus
#

If you fix that conflict and actually use Dahlia, via stripe-js lib, then you should be good