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); 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": {