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.
Issue fork commerce_decoupled_stripe-3214820
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
Comment #3
honza pobořil commentedComment #4
honza pobořil commentedComment #7
pavel.bulatThanks @Bobík for the change. Merged.