on 2018 May 01 12:09 AM
I'm working with Hybris 6.2, one of the requirements is that when placing an order with a specific payment type, to hold the order creation and then through a web service endpoint to receive a request to validate the payment and then place the order.
So far, we are saving the cart once the checkout ends with this specific payment type, to handle this I saw the option to create a method on a controller on the storefront.
I created UpdateCartToOrderController with the following method:
@Controller
@RequestMapping(value = "/update-cart2order")
public class UpdateCartToOrderController
{
private static final String OK_STATUS = "OK";
@ResponseBody
@RequestMapping(method = RequestMethod.GET)
public String updateCartToOrder()
{
// --- order creation login will be here ---
return OK_STATUS;
}
}
When using a web browser, when I enter the path https://italika.local:9002/italikastorestorefront/italika/es/update-cart2order and I see the message I'm returning with no problem, but when I tested on something like Postman I got a "Could not get any response" message.
What can I do to access this endpoint like a normal REST endpoint?
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.