#degi_code

1 messages ยท Page 1 of 1 (latest)

keen sonnetBOT
#

๐Ÿ‘‹ 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.

lofty gyroBOT
hollow pulsar
#

I assume you get an error about address being needed when making that call?

green jolt
#

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

hollow pulsar
#

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?

green jolt
#

haven't tried "allow_incomplete"

#

req_R65twKRPB11lNL

#

test environment

hollow pulsar
#

Can you try it now?

green jolt
#

yes

#

same error req_BWkG6Z4eHUhqXF

hollow pulsar
#

Thank you for trying. Still looking through docs and such, will get back to you

green jolt
#

Thank you ๐Ÿ™

hollow pulsar
#

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

green jolt
#

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

keen sonnetBOT
hollow pulsar
#

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

green jolt
#

this sounds hacky. Also there should be invoice with line items etc...

hollow pulsar
#

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