#adamreisnz-source-webhooks

1 messages · Page 1 of 1 (latest)

weary wraith
#

Do you have an example customer that you expected this event to come through on that I can take a look at?

civic hamlet
#

Yes sure

#

I added several sources to this customer

#

Hmm, I do see a payment_method.attached event being triggered. Should we use that instead perhaps?

weary wraith
#

Ah, yeah if you're working with Payment Methods you shouldn't be using the customer.source.created webhook endpoint (that will only work for Sources/Cards). For Payment Methods you want payment_method.attached to know what it's been attached to a customer

civic hamlet
#

Ok great, will do. Will it still trigger the customer.source.expiring event as expected though?

weary wraith
#

Unfortunately not - we don't send any expiry webhook events for Payment Methods right now

civic hamlet
#

Ok, any plans for this in the future?

#

We would normally send an email to the customer when this happens.

#

Actually looks like this is still triggered?

#

We seem to be still receiving these events in production

#

So I'll leave that as is

weary wraith
#

I assume that's because you may have some Card or Source objects in product that would still trigger these events

civic hamlet
#

Ok I see

#

So what work around do we have for payment methods?

weary wraith
#

There isn't really a great workaround, other than you keeping track of this yourself - I know this a feature that's been requested, but it doesn't have a specific timeline for when it'll be done

civic hamlet
#

Ok thank you

#

Have a great day

weary wraith
#

you too!