#degi_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1220028403323895893
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
I assume you get an error about address being needed when making that call?
yes
I want to collect payment method first and try to create subscription with "automatic_tax" enabled.
But I don't want to use setup intent because it shows 0
Can you send me the request ID for that request req_1234? From your code and description I think I can find this but it can still help to have a specific request ID
If you specify allow_incomplete instead, do you still get the same error?
Can you try it now?
Thank you for trying. Still looking through docs and such, will get back to you
Thank you ๐
This doc makes it sound like you would need to preview the first invoice before actually creating the customer or subscription. https://docs.stripe.com/tax/subscriptions#preview-price
I know we have other flows that let you render the Payment Element before either are created, and I think they may auto-calculate the tax amount. Still looking in to this and whether it is possible to create a subscription like this before collecting someone's address info
I can create payment intent with calculated amount without creating subscription first. But I can't connect this payment into newly created subscription.
and user will be charged again, essentially
It is possible to give the user credit for that previous payment to make the first invoice amount 0, but I am not sure if that is necessary here
this sounds hacky. Also there should be invoice with line items etc...
Yeah, but unfortunately it is looking like we need one of these workarounds for the moment. I was wrong that elements could automatically do this for the other flow. So it looks like previewing the final amount or confirming an intent and then creating a subscription where the first month is free would be the best ways to go here with Stripe's current capabilities around Subscriptions + Automatic Tax + Elements