Skip to content

Unnest NewPaymentMethodTypeVoter #2787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/commerce/payment/payment_method_filtering.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Now new custom payment method type should be visible in **Commerce** -> **Paymen
Next, create a `NewPaymentMethodTypeVoter.php` file with the voter definition for your new payment method type:

``` php
[[= include_file('code_samples/front/shop/payment/src/src/lib/PaymentMethod/Voter/NewPaymentMethodTypeVoter.php') =]]
[[= include_file('code_samples/front/shop/payment/src/lib/PaymentMethod/Voter/NewPaymentMethodTypeVoter.php') =]]
```

Created voter decides, if selected payment method type can be used and displayed in checkout process.
Expand All @@ -55,4 +55,4 @@ php bin/console cache:clear

Then, you can create a payment of the new type.

![New payment method type](new_payment_method_type.png "New payment method type")
![New payment method type](new_payment_method_type.png "New payment method type")
Loading