From dd04fe43033219dd0b1dc0a26a66dc84c8f10dfb Mon Sep 17 00:00:00 2001 From: Nicolas MELONI Date: Thu, 22 May 2025 09:01:12 +0200 Subject: [PATCH 1/2] PPSYL-143 - Payment id is sent in the "id" key not "payment_id". --- src/Controller/IpnAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/IpnAction.php b/src/Controller/IpnAction.php index 96476050..f914bc72 100644 --- a/src/Controller/IpnAction.php +++ b/src/Controller/IpnAction.php @@ -68,11 +68,11 @@ public function __invoke(Request $request): JsonResponse $details = ArrayObject::ensureArrayObject($content); // if we are too fast canceling a payment before we got an answer from PayPlug gateway - if (null === $details['payment_id']) { + if (null === $details['id']) { return new JsonResponse(null, Response::HTTP_UNAUTHORIZED); } - $payment = $this->paymentRepository->findOneByPayPlugPaymentId($details['payment_id']); + $payment = $this->paymentRepository->findOneByPayPlugPaymentId($details['id']); $paymentMethod = $payment->getMethod(); Assert::isInstanceOf($paymentMethod, PaymentMethodInterface::class); From c2b17e2c0718be4954418a2dcf4274a79e632c06 Mon Sep 17 00:00:00 2001 From: Daniel FLOREZ MURILLO Date: Wed, 2 Jul 2025 11:47:22 +0200 Subject: [PATCH 2/2] chore: version bump --- src/PayPlugSyliusPayPlugPlugin.php | 2 +- src/Resources/dev/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PayPlugSyliusPayPlugPlugin.php b/src/PayPlugSyliusPayPlugPlugin.php index b8c40d96..ab93250b 100644 --- a/src/PayPlugSyliusPayPlugPlugin.php +++ b/src/PayPlugSyliusPayPlugPlugin.php @@ -9,7 +9,7 @@ final class PayPlugSyliusPayPlugPlugin extends Bundle { - public const VERSION = '1.11.0'; + public const VERSION = '1.11.1'; use SyliusPluginTrait; } diff --git a/src/Resources/dev/package.json b/src/Resources/dev/package.json index 94a54b71..31c87537 100644 --- a/src/Resources/dev/package.json +++ b/src/Resources/dev/package.json @@ -1,6 +1,6 @@ { "name": "sylius-payplug-plugin", - "version": "1.11.0", + "version": "1.11.1", "description": "Sylius Payplug Plugin", "source": "src/index.js", "scripts": {