#clarity_best-practices

1 messages ¡ Page 1 of 1 (latest)

feral gyroBOT
#

👋 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/1271167743629983787

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

violet phoenix
#

You would have to calculate shipping on your own before the customer reaches the payment form unfortunately. All shipping is flat-rate as of now

cold orbit
#

Thanks for your reply. I understand that I would need to make my own calculations, I'm wondering how you would best integrate that into the Stripe checkout.

#

For example, would I create the calculation and then insert it as a shipping field, and if so how would I do that?

violet phoenix
cold orbit
#

I have read this documentation. Can you please be more specific?

#

For example I see that its advocating for calculating and adding shipping to the total amount, but it also says that I can build a low code payment form and calculate shipping there, but I'm not seeing where to do that.

#

I would like to give users multiple options for shipping, so calculating the total before checkout would reduce my flexibility if I'm understanding correctly.

violet phoenix
#

I'm still unsure what you're asking. As far as I can tell, everything your asking is explained in the doc. You create a Shipping Rate with several rates for your customer to choose from, then you create a Checkout Session. What am I missing?

cold orbit
#

They are flat rates

#

I need to create a price calculation based on the weight, size, and distance of the address that is variable depending on the manner of shipping the user chooses.

#

I am aware that I have to do this calculation but there is not clear documentation on how to implement this, its just directing me to do so.

violet phoenix
#

Right, because Stripe doesn't have a solution for that. We expect you (the web developer) to be able to create your own custom system that does the calculations, then passes a flat-rate amount to Stripe after the calculations are done. That all would have to happen separate from Stripe

cold orbit
#

I just thought maybe since this is a help channel you would offer some support other than the bare minimum. I'm not asking for you to write code for me, I was hoping that you could point in the right direction in terms of options for creating the most streamlined solution with your API. Thanks for your time.

violet phoenix
#

We support Stripe products and API integrations in this channel. We don't really have a lot to offer in terms of telling you how to architect a new system that functions separately from Stripe.