• Resolved izna1993

    (@izna1993)


    Hello,

    I’ve tried to found a solution for this error but didn’t. Could you tell me how to this fixe? This is a recurrent payment from woocommerce subscription

    Recurring payment for order failed. Reason: You cannot confirm with the off_session parameter when setup_future_usage is also set on the PaymentIntent because you cannot set up future usages when processing payments off-session.

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

    (@mrclayton)

    Hi @izna1993

    That error would indicate that you’re using the filter wc_stripe_force_save_payment_method to set the setup_future_usage property equal to off_session.

    You should only do that for checkout page payments, not payments related to a recurring payment. If you have custom logic, make sure you’re conditionally assigning that off_session value.

    Kind Regards,

    Thread Starter izna1993

    (@izna1993)

    I’m sorry but your answer its totally not clear. I have no idea what is this “off session” or setup future usage”

    I always used woocommerce subscription and first time I see this kind of issue.

    Can you tell me exactly what I need to do here?

    Plugin Author Payment Plugins

    (@mrclayton)

    Let’s try this again. The error message that you’re receiving is because the Stripe payment intent property “setup_future_usage” is being assigned a value of “off_session”.

    That “off_session” value is only assigned by the Stripe plugin when a customer is on the checkout page and has selected to save their payment method.

    But since you’re getting that error during a subscription payment, that tells me that you most likely have some custom code on your site that’s using the filter wc_stripe_force_save_payment_method.

    Can you confirm if you have custom code on your site?

    Thread Starter izna1993

    (@izna1993)

    Hello,

    I’m not sure about that, how can I check it? Where this code can be located?

    Plugin Author Payment Plugins

    (@mrclayton)

    I’m not sure about that, how can I check it? Where this code can be located?

    I can’t answer where exactly you might have custom code on your site since I didn’t create your site. My suggestion would be to look in any code snippet plugins you have active (if any) or any custom code you might have in a child theme.

    Plugin Author Payment Plugins

    (@mrclayton)

    You can use our contact us page if you would like us to review further.

    Kind Regards,

    Thread Starter izna1993

    (@izna1993)

    Hello,

    I checked everywhere and didn’t found this code you talking about. The weird thing is after second retry, the payment is successfully proceeded but still.. Its would be better to fixe this issue.

    Do you have any other idea whats can cause this?

    Plugin Author Payment Plugins

    (@mrclayton)

    @izna1993 In the latest release of the plugin we added a line of code to ensure that no custom code can pass the setup_future_usage parameter when processing a subscription payment.

    That will protect against custom or 3rd party code that accidently includes that property.

    Thread Starter izna1993

    (@izna1993)

    Thats amazing! Thank you guys

    Thread Starter izna1993

    (@izna1993)

    Sorry to tell you that the error is again repeating…

    Recurring payment for order failed. Reason: You cannot confirm with the off_session parameter when setup_future_usage is also set on the PaymentIntent because you cannot set up future usages when processing payments off-session.

    Plugin Author Payment Plugins

    (@mrclayton)

    @izna1993 what I meant to say was the release that’s going out this week, not the current release 3.3.39.

    Like I said in previous replies you can use our contact us page. If this was a plugin issue all our merchants would be affected not just you.

    Just use the contact us page and we’ll share the new version with you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘`off_session` parameter when `setup_future_usage`’ is closed to new replies.