Omnipay Mollie implementation I'm working on a webshop that should have an integration with Mollie to provide the payment methods. Craft Commerce's docs mention that Mollie is already integrated by using the Omnipay interface.

Am I correct that Omnipay only provides a basic interface to communicate with various Payment Gateways (including Mollie) and does not include more concrete functionality, like getting the payment methods/issuing banks?

Basically, the code like below I still have to write myself? Or am I doing double work?

public function actionGetPaymentMethods()
{
    $this-&gt;requireAjaxRequest();

    $paymentResponse = $this-&gt;gateway-&gt;fetchPaymentMethods()-&gt;send();

    if ($paymentResponse-&gt;isSuccessful()) {
        $paymentMethods = array();
        foreach ($paymentResponse-&gt;getPaymentMethods() as $paymentMethod) {
            $paymentMethods[] = array(
                'id' =&gt; $paymentMethod-&gt;getId(),
                'name' =&gt; $paymentMethod-&gt;getName(),
            );
        }

        $this-&gt;returnJson($paymentMethods);
    }

    $this-&gt;returnErrorJson('error');
}
Nevermind, I did not understand that Mollie is an off-site implementation. So the checkout just redirects you to the Mollie environment. If you want to implement on-site payments using Mollie you'd have to write your own logic I presume.