Skip to content

rest-api

Auto Added by WPeMatico

Content-Type HTTP application/x-www-form-urlencoded is return error

When i am using Content-Type: “application/x-www-form-urlencoded” in API i getting the error: { “message”: “Server cannot understand Content-Type HTTP header media type application/x-www-form-urlencoded”, “trace”: null } With Content-Type: “application/json” this works, but is necessary too with application/x-www-form-urlencoded. I add deserializer… Read More »Content-Type HTTP application/x-www-form-urlencoded is return error

get value from API

I have module create and i can get value from API but i’m failing to use Math.ceil to calculate to get correct interest based on product price. here my code below Helpers file <?php namespace VendorModuleHelper; class Data extends MagentoFrameworkAppHelperAbstractHelper… Read More »get value from API