Disable specific shipping methods in Express Checkout modals
Remove specific shipping methods from the Express Checkout modal.
Certain shipping methods, such as Pick up from store, might require additional customer input, such as the pickup address. These aren’t suitable for Express Checkout wallets, which don’t provide a way to customise the payment modal.
If you use this kind of shipping method, you can disable it for Express Checkout using a module customisation.
Create a new module
Create a new module with the following directory structure. Replace Vendor
with your preferred vendor name.
Inside registration.
, register your module with Magento.
Inside etc/module.
, define the module and set up dependencies to ensure it loads after the Stripe module.
Inside etc/di.
, define the following plugin:
Inside Plugin/Api/Response/ECEResponse.
, create the an afterMethod interceptor:
Enable the module: