Skip to content

Commit

Permalink
Merge pull request #291 from OXID-eSales/Incompatiblity_Klarna_plugin
Browse files Browse the repository at this point in the history
7656: Fixed incompatibility with Klarna plugin
  • Loading branch information
mariolorenz authored Jun 6, 2024
2 parents ca5dbf9 + 55cdb26 commit 0862f99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fix admin block parent call, thanks to Alpha-Sys
- Fix Errorlog-Message "Duplicate entry ..." + fix Update send PUI-Bankdata via Webhook
- Fix PayPalExpress Reauth is necessary if the cart amount (total is greater than before) has changed during the checkout process
- Fix, don't show vaulting-Boxes if it is deactivated in Backend
- Fix, don't show vaulting-Boxes if it is deactivated in Backend
- [0007656](https://bugs.oxid-esales.com/view.php?id=7656): Fix incompatibility with Klarna-Module

### NEW
- PayPal-Request-Id based on serialized body, no extra PayPal-Request-Id necessary anymore
Expand Down
7 changes: 4 additions & 3 deletions src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,6 @@ protected function afterOrderCleanUp(Basket $basket, User $user): void
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
protected function _executePayment(Basket $basket, $userpayment)
{
//order number needs to be set before the payment is requested
$this->setOrderNumber();

$paymentService = $this->getServiceFromContainer(PaymentService::class);
$sessionPaymentId = (string) $paymentService->getSessionPaymentId();

Expand All @@ -284,6 +281,10 @@ protected function _executePayment(Basket $basket, $userpayment)
//catch UAPM, Standard and Pay Later PayPal payments here
if ($isPayPalUAPM || $isPayPalStandard || $isPayPalPayLater) {
try {

//order number needs to be set before the payment is requested
$this->setOrderNumber();

if ($isPayPalUAPM) {
$redirectLink = $paymentService->doExecuteUAPMPayment($this, $basket);
} else {
Expand Down

0 comments on commit 0862f99

Please sign in to comment.