As described in issue https://github.com/craftcms/commerce-mollie/issues/18, this plugin doesn't work if you're not using iDEAL. iDEAL payments aren't so commonly used on the Belgian market, so it's perfectly possibly to not have iDEAL on a Belgian webstore.
Anyhow, the reason for the plugin not to work is because it thinks there should be issuers, which come from the iDEAL setup in Mollie. The fetchIssuers() method throws a Omnipay\Common\Http\Exception\RequestException, as there are no issuers defined for non-iDEAL payment methods.
The getPaymentFormHtmlmethod then catches the exception and returns an empty response.
By catching the exception in the fetchIssuers-method and returning an empty array, this plugin works for configurations where iDEAL isn't set up.
Description
As described in issue https://github.com/craftcms/commerce-mollie/issues/18, this plugin doesn't work if you're not using iDEAL. iDEAL payments aren't so commonly used on the Belgian market, so it's perfectly possibly to not have iDEAL on a Belgian webstore.
Anyhow, the reason for the plugin not to work is because it thinks there should be issuers, which come from the iDEAL setup in Mollie. The
fetchIssuers()
method throws aOmnipay\Common\Http\Exception\RequestException
, as there are no issuers defined for non-iDEAL payment methods. ThegetPaymentFormHtml
method then catches the exception and returns an empty response.By catching the exception in the
fetchIssuers
-method and returning an empty array, this plugin works for configurations where iDEAL isn't set up.Related issues