• Hi

    I am using the plugin to receive payment for https://breaflex.com/bodyflex-guide/

    But my client says that she is facing issue with Apple Pay.

    This is her complete message –

    Can you please have a look at the Apple Pay method? There is an issue with Apple Pay, and most people want to use Apple Pay 

    So what happens on the website now is

    I add the guide to the basket, press Apply Pay for instant checkout, get the Apply Pay button, but when I press it, it says Invalid Payment Method 

    And then I need to press it again

    But this might already put customers off, as it doesn’t allow for instant checkout. And I really need it to work, otherwise I won’t make any sales, as people want to buy through Apple Pay quickly.

    You can see the screenshot here.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @anjanphukan

    Thank you for contacting Payment Plugins. That error message comes directly from WooCommerce not the Stripe plugin.

    I tried to replicate what you described but could not. Can you provide more details? When I clicked the Apple Pay button the payment sheet opened as expected.

    Did you mean to say that when the checkout form submits that’s when you see the error message? If so that’s a WooCommerce validation causing that error. That error occurs when WooCommerce can’t find a gateway ID that matches any of the available gateways.

    Do you have any custom code on this site? The Stripe plugin does not control any of the logic where that error message is triggered.

    Thanks

    Thread Starter anjanphukan

    (@anjanphukan)

    Hi @mrclayton

    Thank you so much for your reply.

    I just realized that the site has older version of WordPress and WooCommerce. I just updated them and asked my client to test.

    Actually I don’t see the problem myself. It’s my client who is complaining about it. I will ask them to comment here, so that they can explain the problem to you directly.

    Thanks again.

    Thread Starter anjanphukan

    (@anjanphukan)

    Hi @mrclayton

    My client is still complaining about this. If I provide WooCommerce Status or any Error log, then will it be easier for you to check?

    Thanks

    Plugin Author Clayton R

    (@mrclayton)

    Hi @anjanphukan

    This error would not be because of a Stripe plugin issue. The payment_method value comes from the radio button on the checkout page. During the checkout process, WooCommerce makes sure that the value in the $_POST request contains a valid payment_method ID.

    I would take a look at any custom code or 3rd party plugins that might be manipulating the post data that WooCommerce is validating.

    Kind Regards

    Thread Starter anjanphukan

    (@anjanphukan)

    Hi @mrclayton

    Thanks for the quick reply. The site doesn’t have any custom code related to WooCommerce Checkout. These are the plugins it has:

    404 to 301 - Redirect Manager, 404 Error Logs & Notifications: by Joel James – 4.0.2
    Contact Form 7: by Rock Lobster Inc. – 6.1.6
    Elementor: by Elementor.com – 4.2.0
    FluentSMTP: by FluentSMTP & WPManageNinja Team – 2.2.95
    Site Kit by Google: by Google – 1.183.0
    WPCode Lite: by WPCode – 2.3.7
    Kadence WooCommerce Email Designer: by Kadence WP – 1.5.19
    LT Core: by – 3.4.2
    LTE-Ext: by Like-Themes – 1.4.5
    Paid Memberships Pro: by Paid Memberships Pro – 3.8.2
    Paid Memberships Pro - Courses for Membership Add On: by Paid Memberships Pro – 2.1.2
    User Menus: by Code Atlantic – 1.3.2
    Events Schedule WP Plugin: by Curly Themes – 2.7.2
    Checkout Field Editor for WooCommerce: by ThemeHigh – 2.1.9
    Payment Plugins for Stripe WooCommerce: by Payment Plugins support@paymentplugins.com – 4.0.8
    WooCommerce Direct Checkout: by QuadLayers – 3.6.8
    WooCommerce: by Automattic – 10.9.4
    Yoast SEO: by Team Yoast – 28.1

    I tried to disable “Checkout Field Editor for WooCommerce: by ThemeHigh – 2.1.9” and “WooCommerce Direct Checkout: by QuadLayers – 3.6.8” plugins. But it didn’t work.

    Can it be a cache issue? The site is hosted on Godaddy Managed Hosting and it’s cache behaves weirdly sometimes.

    Regards.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @anjanphukan

    Yes, a cache issue is certainly possible if an invalid value is being stored. Although I don’t think that’s as likely. Here is a link to the location within WooCommerce where this validation occurs:

    https://plugins.trac.wordpress.org/browser/woocommerce/tags/10.9.4/includes/class-wc-checkout.php#L988

    I think the more plausible reason would be some plugin is filtering the available gateways during the checkout process which results in that validation error. WooCommerce triggers a filter called woocommerce_available_payment_gateways and it looks like something is using that filter incorrectly.

    You could add some logging to capture what the $data['payment_method'] value is and when that validation is triggered you can see what the value is.

    Kind Regards

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.