Setting up Stripe

  • /attachments/1170908165911609436/1170908166343630898/image.png

    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?
    image.png
    image.png
    βœ…1
  • /attachments/1170908165911609436/1171191643341336687/image.png

    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...
    image.png
    πŸ”₯1
  • Tom Ireland

    1 year ago

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

    9 days 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.