Return JsonResponse on webhook handle order

This commit is contained in:
2025-04-09 15:21:05 +02:00
parent 048d6107e8
commit 586307486c
+3 -1
View File
@@ -148,7 +148,7 @@ class PaypalGateway extends AbstractGateway
return new Response();
}
private function handleOrderCompleted(array $event)
private function handleOrderCompleted(array $event): Response
{
$orderId = $event['resource']['id'];
@@ -167,6 +167,8 @@ class PaypalGateway extends AbstractGateway
}
$checkout = $this->checkoutService->chargeCheckout($checkout);
return new JsonResponse(['checkout' => $checkout]);
}
private function getPaypalMoney(Charge $charge): array