Prompt
I'm building a checkout that shows shipping options before payment, what API should I use?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
Use the Shipping Rates / Delivery Methods API from your payments platform — and if you’re using Stripe, the key piece is Stripe Checkout or Payment Element with Shipping Options, plus the Shipping Rates API if you want the options managed server-side.
If you mean Stripe specifically
You typically have two choices:
-
Stripe Checkout
- Supports collecting shipping address and showing shipping options before payment.
- Best if you want the fastest implementation.
- You can enable shipping address collection and define shipping rates.
-
Payment Element + your own checkout UI
- Use the Payment Element for payment collection.
- Use your backend to calculate/display shipping options before confirming payment.
- Best if you need a fully custom flow.
Relevant Stripe APIs
- Checkout Sessions API — for hosted checkout with shipping options
- Shipping Rates API — to create reusable shipping methods
- Payment Intents API — if building a custom checkout and handling shipping yourself
- Customer Sessions / Address Element — if you want address collection in a custom flow
Typical flow
- Collect shipping address
- Call your backend to calculate eligible shipping methods
- Show shipping options to the customer
- Update the order total
- Collect payment and confirm
Recommendation
- Use Stripe Checkout if you want shipping options before payment with the least work.
- Use Payment Element + backend shipping logic if you need more control.
If you want, I can show you a Stripe Checkout example or a custom Payment Element flow for shipping options.
Brands