Magento 2. Access Place Order Request Payload On The Server Side (PHP)
-
14-04-2021 - |
سؤال
When placing and order via storefront a request is made towards /rest/default/V1/carts/mime/payment-information
.
Inspecting the request in the browser I can see a Request Payload. (see atached).
How do I access this on the server side? It's not on the request object, I can't find it in any of the Super Globals, in fact I can't find it anywhere.
EDIT:
I found a way using plain php json_decode(file_get_contents('php://input'),true);
. Still doesn't Magento need/use/store this information somewhere?
لا تنتمي إلى magento.stackexchange