Skip to content

Magento 2.4.4: How to get Gift Message from Order object in my Observer class subscribed to checkout_onepage_controller_success_action?

With upgrade to Magento 2.4.4, I’m using checkout_onepage_controller_success_action to get order information that I insert into a custom table that I created in Magento. We’re allowing customers to enter gift message only in the cart page which means it is… Read More »Magento 2.4.4: How to get Gift Message from Order object in my Observer class subscribed to checkout_onepage_controller_success_action?

Magento2.4.4 Place order using stripe payment method through REST API

From stripe sdk I am able to create payment id successfully but when call api to create order in magento2 then getting authentication error. I am calling below API http://localhost/xxx/rest/default/V1/carts/mine/payment-information with below body { “paymentMethod”: { “method”: “stripe_payments”, “additional_data”: {… Read More »Magento2.4.4 Place order using stripe payment method through REST API

How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

With the code below, I’m trying to instantiate an helper class from my custom module. // Sanitize the $_GET[] value // Create an object of the order loaded with the $order_id passed as query string. $orderId = htmlspecialchars($_GET[“order_id”]); $order =… Read More »How to instantiate an helper class from my custom module in a test program in the directory at the same level as the root of Magento?

Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9

When I run “composer install or “composer update” command from my magento 2.4.5 root folder I am getting this error. – Installing laminas/laminas-dependency-plugin (2.4.0): Extracting archive PHP Fatal error: Uncaught Error: Class “MagentoFrameworkComponentComponentRegistrar” not found in /public_html/setup/src/Magento/Setup/registration.php:9 Stack trace: #0… Read More »Class “MagentoFrameworkComponentComponentRegistrar” not found in setup/src/Magento/Setup/registration.php:9