#roastpepper_webhooks

1 messages ¡ Page 1 of 1 (latest)

oblique pantherBOT
#

👋 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.

blazing mauve
#

In the checkout.session.completed event, you will find both subscription and client_reference_id for you to identify who the subscription belongs to

ionic trellis
#

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

blazing mauve
#

Can you share an example subscription ID (sub_xxx) created from pricing table?

ionic trellis
#

sub_1Pqs06B56aptKEv3IgaRBYQH it's from test mode

blazing mauve
ionic trellis
#

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?

blazing mauve
#

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

ionic trellis
#

this is the one i'm using

blazing mauve
oblique pantherBOT
ionic trellis
#

thanks. i'll look into it