#peter_api

1 messages ¡ Page 1 of 1 (latest)

ripe hatchBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1250919981332434995

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

wispy badge
#

Hi there!

#

It's possible for there to be a non-null invoice value for one-off Invoices, not just Subscriptions

full stone
#

I see

wispy badge
#

You could also listen for invoice.paid but we'd also send this event for one-off invoices. However, with invoice.paid, you can inspect whether subscription is null or not

full stone
#

I guess I could query the payment_intent.invoice to check if that has a subscription, ya?

wispy badge
#

Yep, true

full stone
#

ok, thx! (feel free to close this thread)