#Demodian - Checkout
1 messages · Page 1 of 1 (latest)
is there a way to do it witout creating a bunch of prices that require a lot of work?
I'm trying to minimize the retooling of our site, so any work time that can be saved will help a bunch
What's your use case? Do you have dynamic amounts?
we have a lot of connected accounts. we do not deal with sales tax for the majority, as that burden/responsibillty is pushed to the creators using our platform. sometimes they would be tips. it's also got a shopping cart system. we were using the old connect/checkout methods from a few years ago. i'm just dreading having to deal with major retooling
You can create a Price inline when creating a Checkout Session using price_data: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data
Will that work for your use case?
i'll have to read through this, but it still looks like a major retooling to make the new method happy.
Is there a specific concern or question I can help with?
i'm trying to go through the accept-a-payment sample code (php server), and the example is expecting the pricce object. I was trying to keep the bulk of that data out of the code that worked with the Stripe API, but i guess those days are over
The approach I linked above will help you avoid that.
Instead of creating a Price ahead of time you specify the amount when creating the Checkout Session.
was also needing to make sure I could integrate this with Stripe Terminal flow, as I'm still trying to support the card readers for a POS
but the more i was digging, it's looking more like I need to make some fundamental changes in our code base
was hoping to make an easy merge between the automatic nature of the readers versus a manual entry mode that would prompt for card details via the API
I doubt I'm brave enough to try a custom checkout workflow
btw, this is for the artfarm.tv / mycustom.events project
If you have technical questions as you go let us know how we can help!
will do. just trying to deal with the emotional "man, i've got a ton of work to do now" 🙂
Thanks
No problem!