There is a typo in assigning intent attributes, which prevents setting the "setup_future_usage" parameter during intent creation. This usually causes the error:

The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first.

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

Status: Active » Needs review
tomtech’s picture

Assigned: Unassigned » tomtech
Priority: Critical » Normal

Good catch! Thanks for the MR.

  • TomTech committed 0db97a64 on 8.x-1.x authored by cosolom
    Issue #3464286 by cosolom, TomTech: Missed setup_future_usage for intent...
tomtech’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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