Failed recurring payment correctly marked as "Failed", but not updated to "Completed" when successfully retried by Stripe
We have a recurring contribution which recently encountered a failed payment. In this case Stripe attempted the payment, failed with 'failure_code' => 'expired_card'
, and sent a webhook with 'type' => 'charge.failed'
. CiviCRM correctly recorded this payment with status "Failed".
Three days later, Stripe re-tried the recurring payment, this time successfully. The card was charged, and stripe sent a webhook with 'type' => 'invoice.payment_succeeded'
. This webhook message was logged in civicrm_system_log, but the contribution remains in "Failed" status.
In such a case, shouldn't the Stripe extension update the contribution status to "Completed", or is it understood that this behavior is not supported for some reason?