#corytea
1 messages · Page 1 of 1 (latest)
Good question. Are you working directly with PaymentIntents here or is this a PaymentIntent that is being created by a Subscription or Invoice?
I am using card elements, i have payment intent setup. This is a subscription based service
hopefully that answers your question
Gotcha, this guide shows how to add automatic tax calculation to a subscription https://stripe.com/docs/tax/subscriptions
Basically you update your products and prices to have tax behaviors, make sure your customer objects have enough data to identify the right tax rate, and then create your subscription with automatic tax settings turned on
Yea I was following that guide
but there doesn't appear to be a way to show the current tax'd price for the item
atleast with the JS sdk
stripe.paymentRequest
``` requires an "amount"
but I want to display the current price with tax included
before it creates the subscription
Ah, that can be a bit tricky, basically you need to pass the location info back to your backend and then use the upcoming invoices endpoint to see what the final amount would be with tax for that customer https://stripe.com/docs/api/invoices/upcoming
Can the user update their address info on your page? I think you can keep updating the payment request as that happens
no we just require a card, no address
Gotcha, in that case you can use the upcoming invoice endpoint or you can just create the subscription and use the total amount on its first actual invoice