It could be common to display some payment methods only to customers that belong to a group.
For example, you can add an offline payment method for you B2B customers, and invoice them at the end of the month, and this offline payment should absolutely not be available for other customer! Let's see how to integrate this in a Sylius Application.
1. The Quick and Dirty way
The form displaying payment methods in Sylius retrieve them from the service sylius.payment_methods_resolver
.
Let's decorate it !