Skip to content

Commit

Permalink
updated payment methods API response
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmita committed Dec 29, 2023
1 parent 041e24b commit 188f2e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/StoreApi/Payment/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 188f2e7

Please sign in to comment.