From 188f2e73527b59b27888b670b7568e13b754f4bc Mon Sep 17 00:00:00 2001 From: sushmita Date: Fri, 29 Dec 2023 18:02:12 +0100 Subject: [PATCH] updated payment methods API response --- src/Controller/StoreApi/Payment/PaymentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/StoreApi/Payment/PaymentController.php b/src/Controller/StoreApi/Payment/PaymentController.php index cc15ab93..bfd1d947 100644 --- a/src/Controller/StoreApi/Payment/PaymentController.php +++ b/src/Controller/StoreApi/Payment/PaymentController.php @@ -180,8 +180,8 @@ public function __construct( */ public function getPaymentMethods(SalesChannelContext $context): JsonResponse { -// TODO: update to an array - return new JsonResponse($this->paymentMethodsService->getPaymentMethods($context)); + $paymentMethodsResponse = $this->paymentMethodsService->getPaymentMethods($context); + return new JsonResponse($this->paymentMethodsService->getPaymentMethodsArray($paymentMethodsResponse)); } /**