stripe connect - embedded onboarding

  • needtheanswers-1350056575632543777

    needtheanswers

    1 day ago

    Hi,
    has anyone here successfully implemented the stripe onboarding component? Whatever I do I can´t make it work - it doesn´t even show anything in the console log.
    I create the account session using xano and get the client secret back - at least that works lol.
    I also understand that I would have to initialize ConnectJS first , befoe I can render the Account onboarding component in toddle but this doesn´t seem to work. I did modify the code to intialize ConnectJS a little because I already get the clientsecret back from xano so I made sure I can insert it using an argument.

    Would be greateful for any help here. Thanks

    https://docs.stripe.com/connect/get-started-connect-embedded-components#account-sessions

    https://docs.stripe.com/connect/supported-embedded-components/account-onboarding
    1350056575938859018-image.png
    1350056576555417732-image.png
  • francomelanieh-1350056843149447168

    Nico

    1 day ago

    why are you trying to use connect? Is checkout or even paymentlink not enough?
  • needtheanswers-1350057388409094237

    needtheanswers

    1 day ago

    Because it´s a saas - so each of my clients has their own circle of customers and I need stripe to be as much in the background as possible
  • needtheanswers-1350057773177765888

    needtheanswers

    1 day ago

    I´ve looked into stripe checkout/payment link but this is not what I´m aiming for tbh
  • lucasg-1350073144823775327

    Lucas G

    1 day ago

    Can you post your own code and flow?
  • needtheanswers-1350078966957867019

    needtheanswers

    1 day ago

    This is the code I´m using. I then wanted to load the component on button click but nothing happens. Same when I try to do it on page load
  • lucasg-1350087072567791677

    Lucas G

    1 day ago

    This code looks like it was AI generated
  • There's a few issues with it
  • If you look at the Stripe docs, they'll give you some more info
  • I believe the connect instance should be 'account-onboarding'
  • ctx.root isn't really a thing here
  • Just select the element normally
  • needtheanswers-1350091736965451847

    needtheanswers

    1 day ago

    Yes, Claude wrote it lol. Also this wasn´t the first version .. but none of them seemed to work. Thanks for your feedback tho, I´ll edit it right away and see if it works
  • lucasg-1350091886437732422

    Lucas G

    1 day ago

    Yeah it's easy for AI to hallucinate with this sort of thing
  • Really gotta refer to docs to make sure it's all real
  • needtheanswers-1350094851865313282

    needtheanswers

    1 day ago

    Happens way too often 😂. I read the docs before even opening Claude but I somehow had to modify the code because the client secret is an argument in my case and I´m not good at writing code.
  • I tried to make it work now using your tips but still nothing happens

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.