I want to test for the invoice_payment.failed event web hook in stripe. I have set a web hook end point and tried to send test data from stripe but that does not work because the event id is non existent. There are a few solutions mentioned in stripe guidelines. Here is the link I saw.
https://support.stripe.com/questions/test-failed-invoice-payment
It tells me to create a plan and subscribe a customer with the trial_end period set to 1-2 minutes and use a certain credit card number for creating the customer object. I set the trial_end period to "now" and got only the charge.failed using the credit card number given but not the invoice_payment.failed event. I am new to stripe and would like to know how to set the trial_end period to 1-2 minutes from now and how exactly to test for the invoice_payment.failed event. I am working in php. Any help would be appreciated.