Use getId instead of getHas()?->toBinary()

This commit is contained in:
Francis Hilaire 2024-10-31 16:46:39 +01:00
parent 8c0eb250e4
commit c15b1f7737
No known key found for this signature in database
GPG key ID: 3392F830BF33D421
6 changed files with 6 additions and 6 deletions

View file

@ -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());
}
}

View file

@ -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());
}
}

View file

@ -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());
}
}

View file

@ -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());
}
}

View file

@ -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());
}
}

View file

@ -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());
}
}