Categories
CMS Magento Mastering Development

Custom payment method not appearing in checkout (Magento 2.4)

I have been trying for a few days to create a custom payment method in checkout to implement a payment gateway from a new payment provider. So far I have seen many informations and tutorials but nothing ever show up in the frontend (I have the option in the admin panel). Here is what I […]

Categories
CMS Magento Mastering Development

How to redirect from payment gateway to success page using the callback URL in Magento 2.x

I had integrated the Razorpay payment gateway in my Magento site. It’s working absolutely fine on the web and mobile browser. But when I try to make the payment using in-app browsers (from Instagram, Facebook) I am facing the blank page issue. So I found the solution that I need to pass the callback URL […]

Categories
CMS Magento Mastering Development

Magento 2 JS Checkout unused parameters

The question is about this file vendor/magento/module-checkout/view/frontend/web/js/action/set-payment-information.js define([ ‘Magento_Checkout/js/model/quote’, ‘Magento_Checkout/js/model/url-builder’, ‘mage/storage’, ‘Magento_Checkout/js/model/error-processor’, ‘Magento_Customer/js/model/customer’, ‘Magento_Checkout/js/action/get-totals’, ‘Magento_Checkout/js/model/full-screen-loader’ ], function (quote, urlBuilder, storage, errorProcessor, customer, getTotalsAction, fullScreenLoader) { }) getTotalsAction is not used here and there, but is included. Can anybody explain how and why?

Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]