mage2pro / stripe

Stripe integration with Magento 2
https://upwork.com/fl/mage2pro
61 stars 8 forks source link

Stripe wrongly assigns the merchant's email address to the Magento guest customers #54

Closed dmitrii-fediuk closed 7 years ago

dmitrii-fediuk commented 7 years ago

The guest customer's email address is test-customer@mage2.pro. But Stripe registers him with the dfediuk@gmail.com merchant email address.

02

dmitrii-fediuk commented 7 years ago

It could be related to #53 (Stripe responds «No such customer» to a guest payment).

dmitrii-fediuk commented 7 years ago

I provide the customer's email address for his registration in Stripe in Df\StripeClone\P\Reg::request().

dmitrii-fediuk commented 7 years ago

The Stripe's API Reference says that email is an optional field for a customer registration:

Name Decription
email optional Customer’s email address. It’s displayed alongside the customer in your dashboard and can be useful for searching and tracking.

https://stripe.com/docs/api/php#create_customer-email

dmitrii-fediuk commented 7 years ago

It is not a bug. It was just an error in my test Magento database (a wrong email address for the current quote). If anybody else will encounter this issue, then delete the cookies and clear the browser's Local Storage.