#0xdfsf_api
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/1415131938653601954
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
Have you tried override flag? https://docs.stripe.com/stripe-cli/triggers#customize-events
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"
The most powerful customization is prepare your own JSON, and then use it as your own fixtures https://docs.stripe.com/cli/fixtures
thanks @celest garden - is there a way to make 'stripe trigger invoice.payment_succeeded' send the subscription info as well?
Hi sorry, was in a MTG. Do you mean have a custom fixture for invoice.payment_succeeded? Yes that should be possible
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?