Problem/Motivation

Anonymous orders creates and loads customer with empty e-mail, so in Stripe there will be one customer for all anonymous orders. Also payments from anonymous orders can not receive receipts because order e-mail is not send to Stripe.

Steps to reproduce

Create anonymous orders.

Proposed resolution

Do not create nor load customer if order is anonymous. Also fill receipt_email in payment intent by order's e-mail.

Remaining tasks

Review my patch.

User interface changes

None.

API changes

None.

Data model changes

No change in Drupal, just on Stripe side - receipt_email filled in all payments and no customer profiles for anonymous orders.

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

Bobík created an issue. See original summary.

honza pobořil’s picture

Status: Active » Needs review
honza pobořil’s picture

Title: Send also receipt_email with payment » Better support for anonymous orders

pavel.bulat made their first commit to this issue’s fork.

pavel.bulat’s picture

Status: Needs review » Fixed

Thanks @Bobík for the change. Merged.

Status: Fixed » Closed (fixed)

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