0

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.

enter image description here

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?

0

The Request Payload information is translated into the parameter types of \Magento\Checkout\Model\PaymentInformationManagement::savePaymentInformationAndPlaceOrder() and passed to this method.

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.