Skip to content

Commit 40db948

Browse files
authored
Merge pull request #440 from OXID-eSales/PSPAYPAL_MailTwice_6.3
Dont send order mails twice for Google- and ApplePay
2 parents ee48e31 + 9b34e97 commit 40db948

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2323
- Fix Cancellation of PayPal Express Checkout deletes items stored in Cart
2424
- Fix Processes Duplicate Refunds on Rapid Refund Button Clicks
2525
- [0007776](https://bugs.oxid-esales.com/view.php?id=7776): Fix GooglePay and ApplePay always use first shipping method
26+
- [0007765](https://bugs.oxid-esales.com/view.php?id=7765): Fix Dont send order mails twice for Google- and ApplePay
2627

2728
### NEW
2829

metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
'en' => 'Use of the online payment service from PayPal. Documentation: <a href="https://docs.oxid-esales.com/modules/paypal-checkout/en/latest/" target="_blank">PayPal Checkout</a>'
6262
],
6363
'thumbnail' => 'out/img/paypal.png',
64-
'version' => '2.5.3-rc.4',
64+
'version' => '2.5.3-rc.5',
6565
'author' => 'OXID eSales AG',
6666
'url' => 'https://www.oxid-esales.com',
6767
'email' => 'info@oxid-esales.com',

src/Model/Order.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ public function finalizeOrderAfterExternalPayment(string $payPalOrderId, bool $f
221221
//ensure order number
222222
$this->setOrderNumber();
223223

224-
$this->sendPayPalOrderByEmail($user, $basket);
224+
if (!$isPaypalGooglePay && !$isPaypalApplePay) {
225+
$this->sendPayPalOrderByEmail($user, $basket);
226+
}
225227
}
226228

227229
/** @inheritDoc */

0 commit comments

Comments
 (0)