#khornfucius2

1 messages · Page 1 of 1 (latest)

quartz lintelBOT
grand swan
#

hello! do you have a subscription id for me to take a look?

granite solar
#

hi! You can check out sub_1LuS6YDnKbkHbxM5myXDnj6V

grand swan
granite solar
#

I'm currently already doing this as seen in my code above^:

So I just need to implement this on webhook response correct?

#

I'm having some difficulty receiving the charge.succeeded webhook at the moment

#

This is the request id of my config: req_neb7dnb5tVy5Pv
I enabled the charge.succeeded event, and it's showing on my webhook dashboard but doesn't seem to trigger. Can you help to check on this?

grand swan
#

to clarify - subscription.default_payment_method does not set the customer's invoice_settings.default_payment_method

#

subscription.default_payment_method=subscription sets the PaymentMethod on the subscription's default_payment_method

#

yes, you can implement a method to set invoice_settings.default_payment_method on a webhook

#

gimme a second, looking at the charge.succeeded webhook

#

how are you triggering the charge.succeeded webhook event?

#

have you tried to make a payment?

granite solar
#

yes, i have made payments - in the above image, i received both a charge.succeeded and an invoice.paid according to the dashboard.

However, I was only able to receive the webhook for the invoice.paid

#

I only updated the config to include charge.succeeded yesterday though, could that be a possible factor?

grand swan
#

after you updated the config, have you made a payment after that

#

if you haven't made a payment after updating the config, then no charge.succeeded event would have been sent

granite solar
#

yes, i changed the config yesterday. Made payments today but with no success

grand swan
#

based off that screenshot yoou shared

#

your server is returning a 200 http response for the charge.succeeded event

#

onesec

granite solar
#

i see, thanks very much for checking on that