#0xdfsf_api

1 messages ¡ Page 1 of 1 (latest)

quartz cradleBOT
#

👋 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/1415131938653601954

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

torpid python
#

In the webhook, there are some logics to check on subscription id and customer id.

#

I tried different ways to override the subscription id, but seems none of them are working, e.g.

celest garden
torpid python
#

stripe trigger invoice.payment_succeeded
--add invoice:subscription=sub_123
--add invoice:customer=$TEST_CUSTOMER_ID
--add invoice:metadata.planId=$TEST_PLAN_ID
--add invoice:metadata.userId=$TEST_USER_ID
--add invoice:description="Pro Plan - Monthly"

celest garden
torpid python
#

thanks @celest garden - is there a way to make 'stripe trigger invoice.payment_succeeded' send the subscription info as well?

celest garden
#

Hi sorry, was in a MTG. Do you mean have a custom fixture for invoice.payment_succeeded? Yes that should be possible

torpid python
#

No problem. And also I'm testing the flow in my website as well, and I found that when I paied from stripe checkout test page, the webhook cannot find subscription id from event 'invoice.payment_succeeded'.
Is this expected?

celest garden
#

Hmm looking into this