Setting up Stripe

  • datomnz-1170908165911609436

    Tom Wrench

    1 year ago

    I'm starting to dig into the Stripe setup side of things. I'm wanting to do something a little more custom than the nocode payment links they have available, so I've been digging into their dev docs a bit.

    Although I will eventually move the API side of things to go via Comnoco for security reasons, I'm playing around with them within toddle just to try get something working.

    First issue - I'm trying to create a Checkout Session via API (https://stripe.com/docs/api/checkout/sessions/create) and whilst it seems to be communicating fine, the line_items appears to be received as a string rather than an array. I've included screenshots below of both my data setup within the API request and the error from the Stripe logs.

    Any ideas what I'm doing wrong here?
    1170908166343630898-image.png
    1170908166633033851-image.png
    βœ…1
  • datomnz-1171191643685257257

    Tom Wrench

    1 year ago

    Ok, having the parameters in this format seemed to work. For some reason it didn't like the visual array/object element in my previous post, even though I think(?!) the output should be the same when sent to Stripe...
    1171191643341336687-image.png
    πŸ”₯1
  • tomthebigtree-1171191911441240095

    Tom Ireland

    1 year ago

    If no-one comes to the rescue, rescue yourself. πŸ˜„ Nice work, Tom. πŸ™‚ πŸ’ͺ
    πŸ˜…1
  • saillmone-1325789949529817121

    saillmone

    3 months ago

    Good morning,

    I know this is an old post but has anyone managed to do this with several prices?
    I can have up to 15 different prices, I don't want to have fun doing everything manually.

    Thanks

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.