How to set up a webhook in Stripe so that, when a payment method is first added to a customer, it is automatically set as the default payment method.
Example: The top customer has a default payment method set; the bottom customer does not, which can cause payment issues.
Create a new webhook in Stripe
Configure your webhook settings
payment_method.attached
event and select it.
Add your endpoint and create the webhook
/project/
that starts with pr_
.
<YOUR_PROJECT_ID>
with your Project ID:
&test=true
to the end of the endpoint URL.Update your webhook endpoint URL
payment_method.attached
.
&test=true
to the end of the endpoint URL./project/
that starts with pr_
.