Skip to content

Commit

Permalink
https://github.com/tradefurniturecompany/site/issues/268
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 28, 2023
1 parent 530556e commit 3442975
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/code/Mageplaza/Osc/Model/CheckoutRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,16 @@ public function _prepareNewCustomerQuote(Quote $quote, $oscData)
$quote->setCustomer($customer);

/** Create customer */
# 2023-07-25 Dmitrii Fediuk https://upwork.com/fl/mage2pro
# "[Mageplaza_Osc / PayPal] «A customer with the same email address already exists in an associated website»
# on `/paypal/express/return`": https://github.com/tradefurniturecompany/site/issues/268
try {
$this->customerManagement->populateCustomerInfo($quote);
}
catch (\Exception $e) {
df_log($e);
# 2023-07-25 Dmitrii Fediuk https://upwork.com/fl/mage2pro
# "[Mageplaza_Osc / PayPal] «A customer with the same email address already exists in an associated website»
# on `/paypal/express/return`": https://github.com/tradefurniturecompany/site/issues/268
df_log($e, null, [
'customer' => $customer, 'email' => $quote->getCustomerEmail(), 'oscData' => $oscData, 'quote' => $quote
]);
throw $e;
}

Expand Down

0 comments on commit 3442975

Please sign in to comment.