Closed inpsyde-maticluznar closed 1 year ago
@mmaymo previous implementation was overriding card selector option. Last two commits fix that. When credit card selector is enabled, credit card icons are shown.
CSS fix. Payment icon size is limited to 32x24px.
@mmaymo
Payment method API image is now shown when the "Use API dynamic title and gateway logo" option is checked. We created two new filters for developers:
Programmatically control API title visibility for every payment method.
apply_filters('mollie_wc_gateway_use_api_title', $value, $paymentMethodId)
Programmatically control API image visibility for every payment method.
apply_filters('mollie_wc_gateway_use_api_image', $value, $paymentMethodId)
I changed the
\Mollie\WooCommerce\PaymentMethods\AbstractPaymentMethod::getIconUrl
method. It prioritises the image from API payment method. Icons will be loaded directly from the Mollie URL.