Hide the terms displayed in the PaymentElement form
Disable the terms text under the PaymentElement using a custom module.
Some payment methods inside the PaymentElement display terms relevant to their use. Use this guide to disable the terms text under the PaymentElement using a custom module.
See the API documentation for more information.
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 make sure it loads after the Stripe module.
Inside etc/di.
, define the following plugin:
Inside Plugin/Payments/Service/PaymentMethodOptionsServicePlugin.
, create the plugin class: