#roastpepper_webhooks
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/1276437911172153398
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Your own user ID can be set in client-reference-id of the pricing table. This will be available in client_reference_id under checkout.session.completed event: https://docs.stripe.com/payments/checkout/pricing-table#handle-fulfillment-with-the-stripe-api
In the checkout.session.completed event, you will find both subscription and client_reference_id for you to identify who the subscription belongs to
Hm. can't seem to get it to work. I'm sure i am passing the uid properly as string (I also don't get the malformed client-reference-id error). Still can't seem to get webhooks to work. I get the user not found error in cloud functions log. They do work when I create payment link using getcheckouturl and the subscription works and firestore and stripe accounts are connected properly. just doesn't happen through the price table.
if it is supposed to set the ID field under subscription as the firebase auth uid (that;s what i'm passing through client-ref) it is not, is sets it as a random sub_1241 id
Can you share an example subscription ID (sub_xxx) created from pricing table?
sub_1Pqs06B56aptKEv3IgaRBYQH it's from test mode
In https://dashboard.stripe.com/test/events/evt_1Pqs09B56aptKEv3yO7LFHve, I can see that both client_reference_id and subscription are available for your system to sync your own user ID and the subscription created from Stripe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Your system should listen to checkout.session.completed event like https://dashboard.stripe.com/test/events/evt_1Pqs09B56aptKEv3yO7LFHve and perform custom logic in your cloud functions
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so i have to set up the cloud function myself and it will not work with the cloud functions set up automatically by the stripe checkout extention in firestore correct?
Stripe doesn't own or maintain any firestore extension. The extension you used is from third party and I'd recommend reaching to them if you have any question
this is the one i'm using
This isn't maintained by Stripe. I'd recommend reaching out to the extension developer: https://github.com/invertase/stripe-firebase-extensions
thanks. i'll look into it