#bruno_api

1 messages ยท Page 1 of 1 (latest)

high nicheBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

pallid raptorBOT
boreal bison
#

you probably have a bug or some webhook endpoint that you've forgotten about that responds to subscription creation or invoice payment failures(but does not correctly ignore invoices that are billing_reason:"subscription_create")

#

try searching your codebase for stripe.subscriptions.cancel

tawny sedge
#

We do have one case for stripe.subscriptions.cancel... Do you know if that call is made with cancel or del?

#

What intrigues me a bit is that we do it right after customer.subscription.updated when I check the logs, but we don't even listen to that event...

#

Sorry, customer.subscription.created

#

We listen to updated and deleted, but not created

boreal bison
#

I think it was .del in older versions of the library

tawny sedge
#

I see... Is that why we get invalid_request_error on req_OMePCDimOcErw8?

boreal bison
#

yes

tawny sedge
#

One question: When we create a subscription, does Stripe always generate a setup_intent and a payment_intent, or only one or the other?

boreal bison
#

one of the other, SetupIntent if there is no immediate payment required, like a trial period or initial coupon

tawny sedge
#

Could you please help me to understand how we got a setup intent for customer cus_Ple9XhkT3OerRB? That customer never got a free trial ๐Ÿค”

boreal bison
#

at some point you created a subscription for them with a 30 day trial period

tawny sedge
#

I see... I'll investigate what's going on on our side. Thanks!

#

Just one more question, is there any chance that this subscription got the status past_due at some point?

boreal bison
#

sub_1OwcGPGXtcqHgDW8n86VZeyt specfically? No, not that I see.