From c15b1f7737254e8db0ace9234a1138b3bd50b001 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Thu, 31 Oct 2024 16:46:39 +0100 Subject: [PATCH] Use getId instead of getHas()?->toBinary() --- .../Offline/NotifyPaymentRequestCommandProvider.php | 2 +- .../Offline/CapturePaymentRequestCommandProvider.php | 2 +- .../PaymentRequest/CommandProvider/AuthorizeCommandProvider.php | 2 +- .../PaymentRequest/CommandProvider/CaptureCommandProvider.php | 2 +- .../PaymentRequest/CommandProvider/NotifyCommandProvider.php | 2 +- .../PaymentRequest/CommandProvider/StatusCommandProvider.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Sylius/Behat/Service/PaymentRequest/CommandProvider/Offline/NotifyPaymentRequestCommandProvider.php b/src/Sylius/Behat/Service/PaymentRequest/CommandProvider/Offline/NotifyPaymentRequestCommandProvider.php index 18855709c9..e66d63834c 100644 --- a/src/Sylius/Behat/Service/PaymentRequest/CommandProvider/Offline/NotifyPaymentRequestCommandProvider.php +++ b/src/Sylius/Behat/Service/PaymentRequest/CommandProvider/Offline/NotifyPaymentRequestCommandProvider.php @@ -26,6 +26,6 @@ final class NotifyPaymentRequestCommandProvider implements PaymentRequestCommand public function provide(PaymentRequestInterface $paymentRequest): object { - return new NotifyPaymentRequest($paymentRequest->getHash()?->toBinary()); + return new NotifyPaymentRequest($paymentRequest->getId()); } } diff --git a/src/Sylius/Bundle/PaymentBundle/CommandProvider/Offline/CapturePaymentRequestCommandProvider.php b/src/Sylius/Bundle/PaymentBundle/CommandProvider/Offline/CapturePaymentRequestCommandProvider.php index 85232a886a..cbc549f930 100644 --- a/src/Sylius/Bundle/PaymentBundle/CommandProvider/Offline/CapturePaymentRequestCommandProvider.php +++ b/src/Sylius/Bundle/PaymentBundle/CommandProvider/Offline/CapturePaymentRequestCommandProvider.php @@ -27,6 +27,6 @@ final class CapturePaymentRequestCommandProvider implements PaymentRequestComman public function provide(PaymentRequestInterface $paymentRequest): object { - return new CapturePaymentRequest($paymentRequest->getHash()?->toBinary()); + return new CapturePaymentRequest($paymentRequest->getId()); } } diff --git a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/AuthorizeCommandProvider.php b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/AuthorizeCommandProvider.php index f9b68a2fae..69787297a3 100644 --- a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/AuthorizeCommandProvider.php +++ b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/AuthorizeCommandProvider.php @@ -27,6 +27,6 @@ final class AuthorizeCommandProvider implements PaymentRequestCommandProviderInt public function provide(PaymentRequestInterface $paymentRequest): object { - return new AuthorizePaymentRequest($paymentRequest->getHash()?->toBinary()); + return new AuthorizePaymentRequest($paymentRequest->getId()); } } diff --git a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/CaptureCommandProvider.php b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/CaptureCommandProvider.php index 8fea96e126..2a9d2873a0 100644 --- a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/CaptureCommandProvider.php +++ b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/CaptureCommandProvider.php @@ -27,6 +27,6 @@ final class CaptureCommandProvider implements PaymentRequestCommandProviderInter public function provide(PaymentRequestInterface $paymentRequest): object { - return new CapturePaymentRequest($paymentRequest->getHash()?->toBinary()); + return new CapturePaymentRequest($paymentRequest->getId()); } } diff --git a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/NotifyCommandProvider.php b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/NotifyCommandProvider.php index ecb44031ec..a82f0e2b96 100644 --- a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/NotifyCommandProvider.php +++ b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/NotifyCommandProvider.php @@ -27,6 +27,6 @@ final class NotifyCommandProvider implements PaymentRequestCommandProviderInterf public function provide(PaymentRequestInterface $paymentRequest): object { - return new NotifyPaymentRequest($paymentRequest->getHash()?->toBinary()); + return new NotifyPaymentRequest($paymentRequest->getId()); } } diff --git a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/StatusCommandProvider.php b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/StatusCommandProvider.php index 99c505189f..9558f9ad73 100644 --- a/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/StatusCommandProvider.php +++ b/src/Sylius/Bundle/PayumBundle/PaymentRequest/CommandProvider/StatusCommandProvider.php @@ -27,6 +27,6 @@ final class StatusCommandProvider implements PaymentRequestCommandProviderInterf public function provide(PaymentRequestInterface $paymentRequest): object { - return new StatusPaymentRequest($paymentRequest->getHash()?->toBinary()); + return new StatusPaymentRequest($paymentRequest->getId()); } }