Whenever recurring payment failed due to change in card number, card expiring, cancellation of credit card, or the card issuer not recognising the payment. I have to sent notification to user. Stripe have inbuilt functionality to sent notification but does not have way to customize the message sent to user.

I have to sent that message through civicrm.

CiviCRM already have functionality to handle 'invoice.payment_failed' event type which change status to 'Failed'. On top of that i have to send email notification to user.

Main question is, how do i generate testing scenario through CiviCRM to receive 'payment_failed' notification.

1 Answer 1


I think you can use unit test to check Failed recurring from stripe extension. It does cover most of the test for IPN.

You can find more details about the unit test here.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.