HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/2foodfactor/public_html/wp-content/plugins/paid-memberships-pro/js/pmpro-paypal.js
// Used by plugns that hide/show the billing fields.
pmpro_require_billing = true;

jQuery(document).ready(function() {
    //choosing payment method
    jQuery('input[name=gateway]').click(function() {
        if(jQuery(this).val() == 'paypal') {
            jQuery('#pmpro_paypalexpress_checkout').hide();
            jQuery('#pmpro_billing_address_fields').show();
            jQuery('#pmpro_payment_information_fields').show();
            jQuery('#pmpro_submit_span').show();
        } else {
            jQuery('#pmpro_billing_address_fields').hide();
            jQuery('#pmpro_payment_information_fields').hide();
            jQuery('#pmpro_submit_span').hide();
            jQuery('#pmpro_paypalexpress_checkout').show();
        }
    });

    //select the radio button if the label is clicked on
    jQuery('a.pmpro_radio').click(function() {
        jQuery(this).prev().click();
    });
});