Skip to content

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

Open
@rvdsteege

Description

@rvdsteege

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:

<?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() ); ?>">

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions