• Is it possible to disable the section for filling in the “Billing Details” on the credit card checkout page using the Stripe extension?

    I notice if you switch to the Buy Now purchase button when you setup the Download page then the customer is only asked for their credit card details and no billing address. But the problem is that the Buy Now button does not offer the customer the option to pay by PayPal, only by credit card, which limits the customer’s choices for payment.

    Therefore, I would like to be able to do the same thing on the checkout page and remove the Billing Details since the checkout page also gives the customer the option to pay via PayPal.

    Please advise.

    Thank you.

    https://www.ads-software.com/plugins/easy-digital-downloads/

Viewing 4 replies - 31 through 34 (of 34 total)
  • Sure, thanks. If you still want to try and fix that code would be great. If it’s a big bother don’t worry about it though. Thanks.

    Try changing the last part of your code to this:

    function pw_edd_add_required_fileds_filter() {
    	add_filter( 'edd_purchase_form_required_fields', 'pw_edd_purchase_form_required_fields' );
    }
    add_action( 'init', 'pw_edd_add_required_fileds_filter' );
    
    function pw_edd_purchase_form_required_fields( $required_fields ) {
    
    	$required_fields['edd_email_confirm'] = array(
    		'error_id' => 'email_confirmation_required',
    		'error_message' => __( 'Please confirm your email address.', 'edd' )
    	);
    
    	return $required_fields;
    }

    Thanks. I will give it try and report back.

    Basically it works fine as it is now. It just doesn’t show the star as it being a required field. So if I remember correctly we are just trying to add the star to let people know it’s required.

    Here is a link to a screenshot of how it looks now before putting in your new code changes.

    https://www.dropbox.com/s/w3xr1v3w97rznpq/file%20oct%2007%2C%202%2002%2004%20am.png?dl=0

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Stripe Extension Question’ is closed to new replies.