mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Use getId instead of getHas()?->toBinary()
This commit is contained in:
parent
8c0eb250e4
commit
c15b1f7737
6 changed files with 6 additions and 6 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue