#SteveAlopex
1 messages ยท Page 1 of 1 (latest)
Hi there
Hello!
Don't think this is really possible if you don't know the amount up front, but let me check
Our goal is if order is over 5000 in price the shipping would be be free instead of 100
Well maybe let's back up a sec, this would be easy if you aren't using adjustable_quantity.... are you using adjustable_quantitiy? ๐
Great, then when you create your Checkout Session you will know the items that you are providing. So you just need to calculate the total amount and then set the Session's shipping_options.shipping_rate accordingly (you would use a $0 rate if > $5k)
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-shipping_options is the relevant API ref params that I'm talking about for creating the Checkout Session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Perfect! thank you