#HasanIkram062
1 messages · Page 1 of 1 (latest)
What do you mean? Wasn't invoice.payment_failed event sent to your Webhook endpoint?
I am capturing invoice.payment_failed event on my webhook endpoint. I am just trying to say that for testing purpose, on test stripe account, i want to send invoice.payment_failed event through Stripe CLI against an existing customer on Stripe?
Let me check if it's possible to use CLI to create invoice.payment_failed event on existing customer. By default, triggering invoice.payment_failed event from CLI will always create a new customer
Yes that's the point. if we trigger test events, then mostly those create a test customer etc. We should also able to send test event against existing customers, subscriptions, invoices etc
Can you try following?
stripe trigger invoice.payment_failed --skip customer --override "invoiceitem:customer=cus_xxx" --override "invoice:customer=cus_xxx" --override "payment_method:customer=cus_xxx"
You should replace cus_xxx to your own customer ID
It will skip customer creation and use your existing customer ID on the objects that requires a customer