Charge for shipping
Create different shipping rates for your customers.
Shipping rates let you display various shipping options—like standard, express, and overnight—with more accurate delivery estimates. Charge your customer for shipping using different Stripe products, some of which require coding. Before you create a shipping rate, learn how to collect billing and shipping addresses.
Third-party plugins
If you’re using a third-party application with Stripe (for example, Thrivecart or Shopify) and want to adjust the shipping rate, visit the docs for that service.
Interested in dynamic shipping rate updates?
Checkout supports letting you dynamically update shipping rates based on the address your customer provides. Learn more about this preview feature.
Create a Checkout session
To create a Checkout session that includes your shipping rate, pass in the generated shipping rate ID to the shipping_options parameter. If you want to create the shipping rate at the same time as a Checkout session, use the shipping_
parameter with shipping_
. Only Checkout sessions in payment mode support shipping options.
The following code sample adds two shipping options to the Checkout session:
- Free shipping, with an estimated delivery of 5-7 business days.
- Next day air, at a cost of 15.00 USD, with an estimated delivery of exactly 1 business day.
In this example, the first option in the shipping_
array is pre-selected for the customer on the checkout page. However, customers can choose either option.
If successful, the shipping selector appears on your checkout page:
The shipping selector on the checkout page