Viewing 5 replies - 1 through 5 (of 5 total)
  • Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hi @cargarm3,

    Can you please clarify exactly what you are trying to do?

    Do you want the Stripe Payment Request buttons (Chrome Pay and Apple Pay) to appear? Or do you not want them to appear?

    It sounds like you want them to appear, however you mentioned a snippet that is used for hiding those buttons.

    If you want the Payment Request buttons to appear, please remove the snippet that you referenced from your site:
    add_filter( ‘wc_stripe_hide_payment_request_on_product_page’, ‘__return_true’ );

    Once that is removed, go to WooCommerce > Settings > Payments, then click on the “Manage” button next to Stripe. On the following page, make sure the Payment Request Buttons option is enabled.

    I also noticed that your theme overrides the default checkout page for WooCommerce. I would recommend trying the Twenty Seventeen or Storefront to see if that corrects any issues. If it does, you’ll need to speak with the developer of your theme to have them correct their code.

    I hope this helps, if not please let me know exactly what you’d like to accomplish.

    Thread Starter cargarm3

    (@cargarm3)

    What we want is to show the apple pay button on the checkout page.

    Sorry about that snippet, it was my fault. The snippet we have set is this one :

    add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' );

    We have analized the checkout page source code and we have realized that this code is shown :

    <form name="checkout" method="post" class="checkout woocommerce-checkout" action="https://photo-to-text.com/shop/checkout/" enctype="multipart/form-data">
    
    	
    				<div class="apple-pay-button-wrapper">
    			<button class="apple-pay-button" lang="en" style="-webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black;"></button>
    		</div>
    				<p class="apple-pay-button-checkout-separator">- Or -</p>
    		
    		<div class="col2-set" id="customer_details">
    			<div class="col-1">
    				<div class="woocommerce-billing-fields">
    	
    		<h3>Billing Details</h3>

    but not button is shown.

    ?Any help?. Thank you.

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hey @cargarm3,

    That snippet is indeed the correct one. If you have added that to your theme’s function.php file and you are still not seeing the payment request buttons on checking try the following:

    1. First check to ensure you are using our official Stripe plugin, not a third-party plugin and that it is up to date. The current version of our plugin is 4.1.7
    2. Check to see if your theme is causing a conflict. To do this, you’ll need to temporarily change to the default Twenty Seventeen or Storefront theme
    3. Check to see if any third-party plugins you are using are causing a conflict. To do this disable all plugins, except for WooCommerce and Stripe then check if the issue is resolved.

    If either step 2 or 3 help, then one you pinpoint the cause of the conflict make sure that theme/plugin is up to date and then contact it’s developer to have them fix the issue with their code.

    If none of that helps, you’ll want to go to https://woocommerce.com/my-account/create-a-ticket/ and select the Stripe plugin from the “Something is Broken” tab, to make a new ticket for our team

    Thread Starter cargarm3

    (@cargarm3)

    We have followed steps 2 and 3 with no result. What we don’t understand is that if this is shown :

    <form name="checkout" method="post" class="checkout woocommerce-checkout" action="https://photo-to-text.com/shop/checkout/" enctype="multipart/form-data">
    
    	
    				<div class="apple-pay-button-wrapper">
    			<button class="apple-pay-button" lang="en" style="-webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black;"></button>
    		</div>
    				<p class="apple-pay-button-checkout-separator">- Or -</p>
    		
    		<div class="col2-set" id="customer_details">
    			<div class="col-1">
    				<div class="woocommerce-billing-fields">
    	
    		<h3>Billing Details</h3>

    why the button is not showed …?

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    The troubleshooting that our team can do here on the forums is limited, so if you are still having trouble with this you’ll need to open a ticket with us.

    You can create the ticket by going to https://woocommerce.com/my-account/create-a-ticket. Then select the Stripe plugin under the “Something Is Broken” heading.

    When submitting the ticket please include the URL of your site so that we can have a look at this for ourselves.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Button not showing’ is closed to new replies.