View Issue Details

IDProjectCategoryView StatusLast Update
0007656module PayPal Checkoutmodule PayPal checkout - subpublic2024-09-17 14:52
ReporterMarkusMichalski Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.3.4 / 2.3.4 / 1.3.4 
Fixed in Version2.5.0 / 3.5.0 
Summary0007656: PayPal Checkout incompatibility with Klarna plugin
DescriptionIn
`htdocs/vendor/oxid-solution-catalysts/paypal-module/src/Model/Order.php`

in the _executePayment() first, setOrderNumber() is executed for all payment types not only PayPal. The problem is that the OXID process first executesPayment() and then sets the order number and in the PayPal module it is the other way around.

Which leads to the following Klarna error:
```
[2024-05-27 13:48:04] OXID Logger.ERROR: KLARNA status: 405 | body: {"type":"about:blank","status":405,"detail":"Method 'PATCH' is not supported.","instance":"/merchants/PK30175/orders/merchant-references"} ["[object] (TopConcepts\\Klarna\\Core\\Exception\\KlarnaClientException(code: 405): status: 405 | body: {\"type\":\"about:blank\",\"status\":405,\"detail\":\"Method 'PATCH' is not supported.\",\"instance\":\"/merchants/PK30175/orders/merchant-references\"} at
```
We were able to fix the problem by moving the setOrderNumber() to the PayPal payment check, so it is still before the PayPal request is executed and should continue to work.
TagsPayPal

Activities

QA

2024-05-28 11:57

administrator   ~0016919

- es -

MarkusMichalski

2024-05-28 12:44

reporter   ~0016921

PullRequest for fix has been submitted:
https://github.com/OXID-eSales/paypal-module/pull/291