• Resolved Emily

    (@empom)


    Hey there,

    Like a few others I’ve been experiencing problems since Stripe updated. I’ve been working through them using the most recent support queries on here, but I’ve come across something I’m not sure any one else has brought up yet.

    I have Stripe and Apple Pay activated on my site with the following code in functions.php to hide the Apple Pay button on the product page, the code works fine.

    add_filter( 'wc_stripe_hide_payment_request_on_product_page', '__return_true' );

    Using my iPhone, I get to the Cart page and the Apple Pay button shows up there fine (though can’t seem to get it to change colour via the ‘Payment Request Button Theme’ option, just stays the same whatever I do).

    Anyhow, moving on to Checkout, the Apple Pay button doesn’t appear and instead, below the ‘Pay with credit card via Stripe’ radio button, is a ‘Use A New Payment Method’ radio button with a child option of ‘Save To Account’.

    I checked this out on desktop and this isn’t appearing, so I’m assuming this has something to do with Stripe or Apple Pay.

    Any ideas? Many thanks in advance.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor royho

    (@royho)

    Could you please link to your site so we can take a look?

    Curious about this as well, specifically how to show it on the checkout page.

    While I have found the filter for wc_stripe_hide_payment_request_on_product_page, I don’t see one like wc_stripe_hide_payment_request_on_CHECKOUT_page.

    Plugin Contributor royho

    (@royho)

    @clicknathan – its in the changelog wc_stripe_show_payment_request_on_checkout

    Thanks Royho. Any chance you have an example of how to setup the filter to set it to true? I noticed if I set it directly in the class-wc-stripe-payment-request.php file, that is to set wc_stripe_show_payment_request_on_checkout to true on line 120 or just set the filter to true on a line before that, it works and the payment buttons show up on checkout, but doing it in a functions.php file (so updates don’t overwrite my changes) doesn’t work.

    Any ideas there? Thank you sir!

    Plugin Contributor royho

    (@royho)

    @clicknathan – in functions.php add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' );

    Yeah, that’s what I tried @royho.

    However, adding it to functions.php doesn’t work, though adding it directly to class-wc-stripe-payment-request.php in the plugin does.

    Plugin Contributor royho

    (@royho)

    @clicknathan – I think the issue is with the load order. Anyhow this is fixed and will be in the next release.

    Thread Starter Emily

    (@empom)

    Hey! Thanks for your reply. I didn’t get a notification that there had been a response weirdly.

    But anyhow, the address is https://www.mesacounojo.com

    Seems to be still happening on my iPhone at checkout

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @empom

    Are you still having trouble here?

    Thanks,

    This works for me, which is cool. This is actually quite a nice code edit. It would be nice if these were checkbox options in the settings instead of requiring function.php editing.

    I was hoping that the code posted by roy above would solve the following issue for me:

    https://github.com/woocommerce/woocommerce-gateway-stripe/issues/633#issuecomment-386829894

    But it seems that the invoice checkout page in my issue is different from the standard checkout page.

    Just posting here for awareness, and visibility for anyone else searching to solve the same issue and coming across this topic.

    ??

    • This reply was modified 6 years, 10 months ago by Robin.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘‘Use a new payment method’ showing instead of Apple Pay on Checkout page’ is closed to new replies.