I have enabled "authorize only" mode for Stripe payments (Payment Element) and, at first glance, it works fine. However, on the Stripe side, it creates two transactions, one of which is canceled. This is because we don't handle the 'requires_capture' state correctly, which should not be canceled.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cosolom created an issue. See original summary.

cosolom’s picture

Title: Double transaction when authorize only mode » Double transaction when "authorize only" mode
cosolom’s picture

Status: Active » Needs review
tomtech’s picture

Assigned: Unassigned » tomtech
Priority: Major » Normal

Another good catch. Thanks for the patch!

  • TomTech committed 67154741 on 8.x-1.x authored by cosolom
    Issue #3464308 by cosolom, TomTech: Double transaction when "authorize...
tomtech’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.