Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Revenue
Platforms and marketplaces
Money management
Developer resources
APIs & SDKsHelp
Overview
Versioning
Changelog
Upgrade your API version
Upgrade your SDK version
Essentials
SDKs
API
Testing
Stripe CLI
Sample projects
Tools
Stripe Dashboard
Workbench
Developers Dashboard
Stripe Shell
Stripe for Visual Studio Code
Features
Workflows
Event Destinations
Stripe health alertsFile uploads
AI solutions
Agent toolkit
Model Context ProtocolBuild agentic AI SaaS Billing workflows
Security and privacy
Security
Stripebot web crawler
Privacy
Extend Stripe
Build Stripe apps
Use apps from Stripe
    Overview
    Stripe-built apps
    Adobe Commerce
      Cookbooks
        Add additional metadata to payments
        Add custom events to Stripe webhooks
        Add external payment methods to the payment form
        Disable shipping methods in the Express Checkout modals
        Enable manual capture
        Hide the terms displayed in the PaymentElement form
        Integrate a custom fee to the tax calculation
        Style the payment form at the checkout
        Test why a specific payment method doesn't appear
      Payments and tax app for Adobe Commerce
      Standalone tax app for Adobe Commerce
    Cegid
    Commercetools
    Guidewire
    Mirakl
    NetSuite
    Oracle Opera
    Oracle Simphony
    Oracle Xstore
    PrestaShop
    Salesforce
    SAP
    Shopware 6
    Stripe Tax for BigCommerce
    Stripe Tax for WooCommerce
    Partner apps
    Build your own app
Partners
Partner ecosystem
Partner certification
United States
English (United Kingdom)
HomeDeveloper resourcesUse apps from StripeAdobe CommerceCookbooks

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.php, register your module with Magento.

Inside etc/module.xml, define the module and set up dependencies to make sure it loads after the Stripe module.

Inside etc/di.xml, define the following plugin:

Inside Plugin/Payments/Service/PaymentMethodOptionsServicePlugin.php, create the plugin class:

Was this page helpful?
YesNo
  • Need help? Contact Support.
  • Check out our changelog.
  • Questions? Contact Sales.
  • LLM? Read llms.txt.
  • Powered by Markdoc