Skip to content

Commit

Permalink
Add other klarna methods to exclude from webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuesken committed Jan 24, 2025
1 parent 636a822 commit 6279c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Payment/MollieOrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function onWebhookAction()
return;
}

if ($payment->method === 'klarna' && strpos($paymentId, 'tr_') === 0) {
if (in_array($payment->method, ['klarna', 'klarnapaylater', 'klarnasliceit', 'klarnapaynow'], true) && strpos($paymentId, 'tr_') === 0) {
$this->httpResponse->setHttpResponseCode(200);
$this->logger->debug($this->gateway->id . ": not respond on transaction webhooks for this payment method. Payment ID {$payment->id}, order ID $order_id");
return;
Expand Down

0 comments on commit 6279c46

Please sign in to comment.