# PaymentElement フォームに表示される規約を非表示にする
カスタムモジュールを使用して、PaymentElement の下にある規約テキストを無効にします。
PaymentElement 内の一部の決済手段には、その使用に関連する規約が表示されます。このガイドに従って、カスタムモジュールを使用して PaymentElement の下にある規約テキストを無効にします。
詳細については、[API ドキュメント](https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-terms)をご覧ください。
## 新しいモジュールを作成
次のディレクトリー構造で新しいモジュールを作成します。`Vendor` を任意のベンダー名に置き換えます。
```
app/code/Vendor/StripeCustomizations/
├── etc/
│ ├── module.xml
│ └── di.xml
├── Plugin/
│ └── Helper/
│ └── PaymentMethodOptions.php
└── registration.php
```
`registration.php` 内で、モジュールを Magento に登録します。
```php
```
`etc/di.xml` 内で、以下のプラグインを定義します。
```xml
```
`Plugin/Helper/PaymentMethodOptions.php` 内で、プラグインクラスを作成します。
```php