Use tokenValue instead of id

This commit is contained in:
Francis Hilaire 2022-09-29 20:54:43 +02:00 committed by Grzegorz Sadowski
parent 6bd88aacc3
commit 5948770ad7
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -34,7 +34,7 @@ final class GetPaymentConfiguration
/** @var PaymentInterface|null $payment */
$payment = $this->paymentRepository->findOneByOrderToken(
$request->attributes->get('paymentId'),
$request->attributes->get('id'),
$request->attributes->get('tokenValue'),
);
Assert::notNull($payment);