Skip to content

Commit 9656f2e

Browse files
authored
Merge pull request #441 from OXID-eSales/PSPAYPAL_MailTwice_7.0
Dont send order mails twice for Google- and ApplePay
2 parents e8bddf8 + f816762 commit 9656f2e

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2929
- Fix Cancellation of PayPal Express Checkout deletes items stored in Cart
3030
- Fix Processes Duplicate Refunds on Rapid Refund Button Clicks
3131
- [0007776](https://bugs.oxid-esales.com/view.php?id=7776): Fix GooglePay and ApplePay always use first shipping method
32-
-
32+
- [0007765](https://bugs.oxid-esales.com/view.php?id=7765): Fix Dont send order mails twice for Google- and ApplePay
33+
3334
### Dropped
3435
- Codeception tests
3536
- library giggsey/libphonenumber-for-php

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' => 'img/paypal.png',
64-
'version' => '3.4.1-rc.2',
64+
'version' => '3.4.1-rc.3',
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)