\n {{ $tc(\'hipay.config.help.version\') }} : {{ version }}\n
\n\n {{ $tc(\'hipay.config.help.version\') }} : {{ version }}\n
\n{{ 'hipay.hosted-page.redirect-message'|trans }}
{% endif %} diff --git a/src/Service/NotificationService.php b/src/Service/NotificationService.php index ce3f68a..e765291 100644 --- a/src/Service/NotificationService.php +++ b/src/Service/NotificationService.php @@ -576,7 +576,7 @@ private function handleCapturedNotification(HipayNotificationEntity $notificatio /** * Add order Transaction capture. */ - private function saveCapture(string $status, ?OrderCaptureEntity $capture, float $amount = null, string $operationId = null, HipayOrderEntity $hipayOrder = null): void + private function saveCapture(string $status, ?OrderCaptureEntity $capture, ?float $amount = null, ?string $operationId = null, ?HipayOrderEntity $hipayOrder = null): void { $context = Context::createDefaultContext(); if (!$capture) { @@ -591,7 +591,7 @@ private function saveCapture(string $status, ?OrderCaptureEntity $capture, float /** * Add order Transaction refund. */ - private function saveRefund(string $status, ?OrderRefundEntity $refund, float $amount = null, string $operationId = null, HipayOrderEntity $hipayOrder = null): void + private function saveRefund(string $status, ?OrderRefundEntity $refund, ?float $amount = null, ?string $operationId = null, ?HipayOrderEntity $hipayOrder = null): void { $context = Context::createDefaultContext(); if (!$refund) { diff --git a/tests/Unit/PaymentMethod/PaypalTest.php b/tests/Unit/PaymentMethod/PaypalTest.php index a8ea774..728086c 100644 --- a/tests/Unit/PaymentMethod/PaypalTest.php +++ b/tests/Unit/PaymentMethod/PaypalTest.php @@ -35,7 +35,14 @@ public function testhydrateFields() public function testStatic() { $this->assertEquals( - [], + [ + 'merchantPayPalId' => '', + 'color' => 'gold', + 'shape' => 'pill', + 'label' => 'paypal', + 'height' => '40', + 'bnpl' => true, + ], Paypal::addDefaultCustomFields() );