#fobor10362 - webhooks

1 messages · Page 1 of 1 (latest)

oak merlin
#

Hello, is this on the Dashboard? If so, our support will be able to better address this https://support.stripe.com/?contact=true

jovial hornet
#

yes

#

Also another question - if I have a webhook to change my db values to paid access, does the webhook get triggered when I manually create a subscription for a customer id?

#

on the dashboard

oak merlin
#

Yes, you should bet webhook events for subscription creation even when you manually create the subscription

jovial hornet
#

hmm let me try again because it did not seem to work

oak merlin
#

What webhook event are you listening for?

jovial hornet
#

event.type == 'checkout.session.completed'

#

ooh nvm only checkout session completions

#

how would you specify manual subscription payments?

oak merlin
#

Can you send me the ID of a subscription that you created that way?

jovial hornet
#

one moment

#

sub_1KgVkbIeTJrsS1reGMgsSeLv

oak merlin
#

Thank you

#

invoice.paid is probably the event that you are looking for

jovial hornet
#

hmm ok there are no subscription created or updated events?

oak merlin
#

You can also listen for customer.subscription.created but invoice.paid will be for the actual payment

jovial hornet
#

ok

oak merlin
#

If you check the billing_reason on the invoice, you can see if the event is for a subscription creation or a recurring monthly payment

jovial hornet
#

ok and likewise is there a customer.subscription.updated event?

oak merlin
#

Yes

jovial hornet
#

interesting

#

gives me something to think about thank you