Hide Stripe Billing Details

You might want to remove these fields from your form to make it more simpler. This data is not required by Stripe.

First, we need to remove the errors that are triggered when these fields are not completed. That can be achieved with the following code:

1. Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

2. Add the following code to the end of it:

1
2
3
4
/*
    Disable Stripe Billing fields errors
 */
add_filter( 'pms_card_billing_errors', '__return_empty_array');

3. Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality

Then to hide the fields, add the following CSS snippet to your website:

1
2
3
.pms-billing-details {
    display: none;
}

You can navigate to Appearance -> Customize -> Custom CSS to add this CSS code.