• Resolved vlcn888

    (@vlcn888)


    2 days ago reoccurring monthly payment links between WooCommerce and Stripe were working fine.

    Now additional reoccuring payments (not the same customers) are failing with the error in Stripe as:
    payment_intent_unexpected_state

    You cannot confirm this PaymentIntent because it’s missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method or ConfirmationToken.

    {

    "confirmation_method": "automatic",

    "description": "Coach Connect Australia - Order 15457",

    "metadata": {

    "order_id": "15457",

    "site_url": "https://coachconnectaustralia.com.au",

    "payment_type": "recurring",

    "customer_email": "XXXX@XXXXX",

    "customer_name": "X Pty Ltd"

    },

    "currency": "aud",

    "off_session": "true",

    "customer": "cus_PgXJSCZth9XF3y",

    "confirm": "true",

    "amount": "2400",

    "payment_method_types": {

    "0": "card"

    }

    }

    Response body

    {

    "error": {

    "code": "payment_intent_unexpected_state",

    "doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state",

    "message": "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method or ConfirmationToken.",

    "request_log_url": "https://dashboard.stripe.com/logs/req_kvC4fUhFZwCm4X?t=1720532835",

    "type": "invalid_request_error"

    }

    }

    Request POST body

    {

    "confirmation_method": "automatic",

    "description": "Coach Connect Australia - Order 15457",

    "metadata": {

    "order_id": "15457",

    "site_url": "https://coachconnectaustralia.com.au",

    "payment_type": "recurring",

    "customer_email": "X@X",

    "customer_name": "x Pty Ltd"

    },

    "currency": "aud",

    "off_session": "true",

    "customer": "cus_PgXJSCZth9XF3y",

    "confirm": "true",

    "amount": "2400",

    "payment_method_types": {

    "0": "card"

    }

    }

    This is the WooCommerce Debug Log. https://pastebin.com/aL6y0rY3#google_vignette

    This is the WooCommerce Status Log: https://pastebin.com/Btts4xNC

    I’ve tried to force the payment manually in WooCommerce -> Orders -> Retry however it comes up with the same error.

    Does anyone know what the problem is? Thanks

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PaymentIntent Failing with Stripe’ is closed to new replies.