View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007656 | module PayPal Checkout | module PayPal checkout - sub | public | 2024-05-28 07:02 | 2024-09-17 14:52 |
Reporter | MarkusMichalski | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.3.4 / 2.3.4 / 1.3.4 | ||||
Fixed in Version | 2.5.0 / 3.5.0 | ||||
Summary | 0007656: PayPal Checkout incompatibility with Klarna plugin | ||||
Description | In `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. | ||||
Tags | PayPal | ||||
|
- es - |
|
PullRequest for fix has been submitted: https://github.com/OXID-eSales/paypal-module/pull/291 |