#jepezi - webhook

1 messages · Page 1 of 1 (latest)

tired trellis
#

Hi there!

mellow zephyr
#

hey soma!

tired trellis
#

You can ignore customer.default_source, this is legacy.

#
  1. which webhook is best suit to get the updated default payment method.
    You mean which webhook is triggered when the default payment method changes? It depends if it's on the customer it's customer.updated, and if it's on the subscription it's customer.subscription.updated
mellow zephyr
mellow zephyr
#

What I mean is..

  1. confirmCardPayment (frontend) with new card from Elements
  2. Pay invoice button on customer portal
  3. Customer change default payment method on cutomer portal
tired trellis
#

I would recommend to test these flows to be sure.

mellow zephyr
#

In other words, are there ways to tell Stripe to store default payment method only on customer.invoice_settings.default_payment_method?