#corytea

1 messages · Page 1 of 1 (latest)

wooden egretBOT
vivid finch
#

Good question. Are you working directly with PaymentIntents here or is this a PaymentIntent that is being created by a Subscription or Invoice?

lucid surge
#

I am using card elements, i have payment intent setup. This is a subscription based service

#

hopefully that answers your question

vivid finch
#

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

Learn how to collect and report taxes for recurring payments.

lucid surge
#

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

vivid finch
#

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

lucid surge
vivid finch
#

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