pronamic / wp-pay-core

Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.
https://www.wp-pay.org/
GNU General Public License v3.0
27 stars 3 forks source link

Accidental styling of card method fields in gateway test meta box #174

Open rvdsteege opened 5 months ago

rvdsteege commented 5 months ago

The PaymentMethods::CARD payment method results in a bordered box in the gateway test meta box if the method has fields (such as with Mollie, in which case it is showing as an empty box because the field is only supported in WooCommerce):

Scherm­afbeelding 2024-03-22 om 12 13 22

This is caused by the payment method ID card being added as class, for which WordPress applies styling in the admin:

https://github.com/pronamic/wp-pay-core/blob/c38da296b71c866d16d89b3273ac27bc0aab72e4/views/meta-box-gateway-test.php#L76-L80