#tiger-checkout-customization
1 messages · Page 1 of 1 (latest)
I don't think Subscriptions support Shipping Rates at this point.
I get it . I need to calculate taxes, get value and add to the subscription price, I also need to add the shipping value. Then, I should calculate subscription price + taxes price + shipping cost. what is the best choice to this use case?
I think the best route would be to calculate the shipping cost ahead of time and add an additional line_item to the Checkout Session to account for the extra shipping amount
I get it but I also need to calculate taxes... I have a big problem to this point
I tried use stripe elements..
You can collect taxes on Checkout too if you don't want to integrate with Elements: https://stripe.com/docs/payments/checkout/taxes
Ok, thanks. But my use case is subscriptions model and this example is only to payment mode support
SessionCreateParams.Mode.PAYMENT -->
You can use Subscription mode if you don't pass shipping, but feel free to try Elements instead if you want something more configurable
Ok, thank. But I use line_item to checkout session, is there way to show in the page that this line item corresponds to the shipping rate?
You would just give the Product a name of shipping cost so something similar using this parameter: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-name
I got it. I just have to create another product with a description of the shipping cost (for example) and pass it to the item line to checkout session.
Yup!
Thanks! I have other questions.
To calculate taxes automatically in the checkout session, I need to create tax records for each of the other states in the USA, is there a way to record all the states in bulk?
If you already have the data for each state, you could write a script that loops over that data and creates the rates for you: https://stripe.com/docs/api/tax_rates/create
otherwise it's just manual unfortunately
Ah ok. Thank you
could this link be customized on the checkout session page? Powered by stripe (for example)
I need to customize the label on my checkout session page, how could I do?
What does "the label" mean?
Powered By stripe
ah so no that's what I explained above, you can't change/touch any of this
Do you have another choice for me?
Checkout is our hosted UI for collecting payments. We control the vast majority of that page without any way for you to change those parts or hide them. If you don't want to show this at all then a better solution is going to be PaymentElement and integrating things on your own payment page
it's going to be drastically more work to plumb it all together though, so really Checkout is likely the best solution for you
Ok, Thanks for everything!