Skip to content

Commit

Permalink
Add express checkout payment endpoints
Browse files Browse the repository at this point in the history
AD4CR22I-20
  • Loading branch information
Tamara committed Jan 13, 2025
1 parent 4c369d5 commit 85261c1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Storefront/Controller/FrontendProxyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,36 @@ public function handlePayment(Request $request, SalesChannelContext $salesChanne
return new JsonResponse($routeResponse->getObject());
}

#[Route(
'/adyen/proxy-checkout-order-express-product',
name: 'payment.adyen.proxy-checkout-order-express-product',
defaults: ['XmlHttpRequest' => true, 'csrf_protected' => false],
methods: ['POST']
)]
public function checkoutOrderExpressProduct(
RequestDataBag $data,
SalesChannelContext $salesChannelContext
): JsonResponse {
// TO DO
return new JsonResponse();
}

#[Route(
'/adyen/proxy-handle-payment-express-product',
name: 'payment.adyen.proxy-handle-payment-express-product',
defaults: ['XmlHttpRequest' => true, 'csrf_protected' => false],
methods: ['POST']
)]
public function handlePaymentExpressProduct(
Request $request,
SalesChannelContext $salesChannelContext
): JsonResponse {
// TO DO
$routeResponse = $this->handlePaymentMethodRoute->load($request, $salesChannelContext);

return new JsonResponse($routeResponse->getObject());
}

#[Route(
'/adyen/proxy-finalize-transaction',
name: 'payment.adyen.proxy-finalize-transaction',
Expand Down

0 comments on commit 85261c1

Please sign in to comment.