Drupal webform - Error with payment_failed in payment_intent
We identified contributions created via Drupal webform (using Stripe) that are recorded in a completed state, but fail to charge in Stripe.
Case:
- One-time payment Drupal webform by Stripe.
- In Drupal, when completing the form no error is reported and the confirmation page is displayed.
- In CiviCRM the contribution remains in Completed status but the Transaction ID field is not registered.
- On Stripe: a. The paiment_intent is created successfully. b. 3DSecure approval is required and approved by the user. c. Payment_intent failed. d. Payment_intent cancel (by Job.process_stripe)
- In CiviCRM, the paiment_intent is registered (in the StripePaimentIntent entity) but not related to the contribution
I have not been able to find a test card that can reproduce the error. However, I have identified several similar cases (with and without 3DSecure).