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):
This is caused by the payment method ID card being added as class, for which WordPress applies styling in the admin:
|
<?php foreach ( $payment_methods as $payment_method ) : ?> |
|
|
|
<?php foreach ( $payment_method->get_fields() as $field ) : ?> |
|
|
|
<tr class="pronamic-pay-cloack pronamic-pay-test-payment-method <?php echo esc_attr( $payment_method->get_id() ); ?>"> |
The
PaymentMethods::CARDpayment 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):This is caused by the payment method ID
cardbeing added as class, for which WordPress applies styling in the admin:wp-pay-core/views/meta-box-gateway-test.php
Lines 76 to 80 in c38da29