• Resolved xdekhckr

    (@xdekhckr)


    I am getting error: The PaymentMethod provided (p24) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: blik. Alternatively, update the allowed payment_method_types for this PaymentIntent to include “p24”.
    When I have enabled all three options in super page cache for cloudflare then this is what I get:
    https://i.imgur.com/nNjnby1.mp4

    When some options are disabled:
    https://i.imgur.com/MO8tRUc.mp4

    I’m not sure when this error appeared, but apparently this plugin has problems with other cache plugins. I use super page cache cloudflare and litespeed cache plugin. Btw after downgrading “super page cache for cloudflare” plugin to version 4.7.10 this error doesn’t show up and instead I’m getting redirected to payment page instantly…

    Any idea what’s going on? Is this issue caused by cache plugin or something is wrong with stripe plugin?
    Thanks in advance.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Any idea what’s going on?

    Yes, it looks like your cache plugin is sending a cached request to your webserver. Notice in the logs that the request to Stripe to create the payment intent contains metadata with gateway_id=stripe_blik. That can only happen if the $_POST['payment_method'] contains a reference to stripe_blik which strongly suggests this is a cached request.

    In the subsequent log, the confirm request, which is triggered client side, correctly contains p24 data. If you check the WooCommerce order details page, what is the gateway ID associated with the order?

    but apparently this plugin has problems with other cache plugins

    It’s not something that’s exclusive to this plugin or even an issue with this plugin. Any plugin is going to have odd behavior if requests to your webserver are cached and not representative of what the customer is entering on the checkout page.

    Kind Regards

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.