• Resolved alexis888

    (@alexis888)


    Hello,
    i’m reaching out because I have the plugin installed on a client’s website and a client of theirs can’t pay for his order through the Stripe payment form on the website. He’s tried several times today and yesterday and the same error message always shows up.

    I took a look at Stripe’s log and here is the message

    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.

    Complete Stripe log at the bottom of the message

    Any idea what could cause this use ? I noticed it’s a “big amont” (almost 2400€), I don’t know if that could be an issue but my client has already received bigger payments through this form.

    The payment form is used without any problem by many other clients, last time this very morning.
    Also WordPress and all plugins are up to date on this website.

    Thank you !

    Stripe log

    
    {
      "use_stripe_sdk": "false",
      "return_url": "https://www.atlanmac.fr/wp-admin/admin-ajax.php?action=asp_3ds_result"
    }
    
    {
      "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.",
        "payment_intent": {
          "id": "pi_3JwNDILuHbSxFgQn0OMrt7Cb",
          "object": "payment_intent",
          "amount": 237600,
          "amount_capturable": 0,
          "amount_received": 0,
          "application": null,
          "application_fee_amount": null,
          "canceled_at": null,
          "cancellation_reason": null,
          "capture_method": "automatic",
          "charges": {
            "object": "list",
            "data": [
            ],
            "has_more": false,
            "total_count": 0,
            "url": "/v1/charges?payment_intent=pi_3JwNDILuHbSxFgQn0OMrt7Cb"
          },
          "client_secret": "XXXX REPLACED FOR SECURITY REASONS XXX",
          "confirmation_method": "manual",
          "created": 1637052024,
          "currency": "eur",
          "customer": null,
          "description": "Je paye ma commande",
          "invoice": null,
          "last_payment_error": null,
          "livemode": true,
          "metadata": {
            "Product Name": "Je paye ma commande",
            "Product ID": "307"
          },
          "next_action": null,
          "on_behalf_of": null,
          "payment_method": null,
          "payment_method_options": {
            "card": {
              "installments": null,
              "network": null,
              "request_three_d_secure": "automatic"
            }
          },
          "payment_method_types": [
            "card"
          ],
          "receipt_email": null,
          "review": null,
          "setup_future_usage": null,
          "shipping": null,
          "source": null,
          "statement_descriptor": null,
          "statement_descriptor_suffix": null,
          "status": "requires_payment_method",
          "transfer_data": null,
          "transfer_group": null
        },
        "type": "invalid_request_error"
      }
    }

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Hi.

    Few questions:

    1. Does it happen for all the customers of this client or just this specific person?

    2. Which version of the plugin was used during the issue? 2.0.51 (released around 6 hours ago) or 2.0.50?

    Thread Starter alexis888

    (@alexis888)

    Hey @alexanderfoxc , thanks for the super quick answer !

    1 – not only with this customer, it’s happened in the past too according to Stripe’s log but it seems my client didn’t feel the need to let me know the previous times. As far as I can go back through log history it seems this particular error message showed up only two other times, both on octobre 28 2021.

    2 – It was 2.0.50 when the problem occured. After my client emailed me I updated the plugin but since I didn’t see any mention of bug fixes in the changelog I figured asking my client to ask his client to try again was maybe useless.

    Thanks !

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Thank you.

    but since I didn’t see any mention of bug fixes in the changelog I figured asking my client to ask his client to try again was maybe useless

    Yep, this is correct. As there were no reports of similar issues, we haven’t been trying to address those as we didn’t know they existed.

    Let me try to reproduce it and get back to you.

    Thread Starter alexis888

    (@alexis888)

    thank you !

    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Can you go to Advanced Settings of the plugin’s settings page and tick Disable 3D Secure Iframe? Don’t forget to click “Save changes” button after that.

    My guess is that some banks are failing 3D Secure check if their 3D Secure window is displayed via iframe. Enabling this option should tell the plugin to not use iframe for 3D Secure confirmation.

    Thread Starter alexis888

    (@alexis888)

    Hey @alexanderfoxc ,
    sorry for the late answer.

    I tried that and my client got back to me today reporting me a new error. Not from the same customer that had issues paying and which was my reason to open this thread but another customer that seems to experience the same issue.

    Two other payments from two other customers went through without problem after I changed the settings. This one having an issue is the 3rd one after I changed the settings.

    This time, according to Stripe dashboard it does seem to be a 3D secure issue. But for the previous issue for the other customer, it wasn’t mentionned there was a 3D secure issue on Stripe dashboard.

    See log and screenshot below.
    Thanks !

    https://ibb.co/6Rs4nm6

    état
    400 ERR
    ID
    req_3jH2fqFAgUq7Mn
    Date et heure
    17/11/2021 16:01:43
    Adresse IP
    HIDDEN
    Version de l'API
    2020-03-02
    Source
    Stripe/v1 PhpBindings/7.32.1 Stripe Payments/2.0.51 (https://www.ads-software.com/plugins/stripe-payments/)
    Idempotence
    Clé — HIDEN
    
    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.
    
    
    Corps de la réponse
    {
      "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.",
        "payment_intent": {
          "id": "pi_3JwpdCLuHbSxFgQn0OhNI7hB",
          "object": "payment_intent",
          "amount": 43503,
          "amount_capturable": 0,
          "amount_received": 0,
          "application": null,
          "application_fee_amount": null,
          "canceled_at": null,
          "cancellation_reason": null,
          "capture_method": "automatic",
          "charges": {
            "object": "list",
            "data": [
            ],
            "has_more": false,
            "total_count": 0,
            "url": "/v1/charges?payment_intent=pi_3JwpdCLuHbSxFgQn0OhNI7hB"
          },
          "client_secret": "HIDDEN",
          "confirmation_method": "manual",
          "created": 1637161262,
          "currency": "eur",
          "customer": null,
          "description": "Je paye ma commande",
          "invoice": null,
          "last_payment_error": {
            "code": "payment_intent_authentication_failure",
            "doc_url": "https://stripe.com/docs/error-codes/payment-intent-authentication-failure",
            "message": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.",
            "payment_method": {
              "id": "pm_1JwpdFLuHbSxFgQni4Qw2sJW",
              "object": "payment_method",
              "billing_details": {
                "address": {
                  "city": null,
                  "country": null,
                  "line1": null,
                  "line2": null,
                  "postal_code": null,
                  "state": null
                },
                "email": "HIDDEN",
                "name": "HIDDEN,
                "phone": null
              },
              "card": {
                "brand": "mastercard",
                "checks": {
                  "address_line1_check": null,
                  "address_postal_code_check": null,
                  "cvc_check": "pass"
                },
                "country": "FR",
                "exp_month": HIDDEN,
                "exp_year": HIDDEN,
                "fingerprint": "HIDDEN",
                "funding": "credit",
                "generated_from": null,
                "last4": "HIDDEN",
                "networks": {
                  "available": [
                    "cartes_bancaires",
                    "mastercard"
                  ],
                  "preferred": null
                },
                "three_d_secure_usage": {
                  "supported": true
                },
                "wallet": null
              },
              "created": 1637161265,
              "customer": null,
              "livemode": true,
              "metadata": {
              },
              "type": "card"
            },
            "type": "invalid_request_error"
          },
          "livemode": true,
          "metadata": {
            "Product Name": "Je paye ma commande",
            "Product ID": "307"
          },
          "next_action": null,
          "on_behalf_of": null,
          "payment_method": null,
          "payment_method_options": {
            "card": {
              "installments": null,
              "network": null,
              "request_three_d_secure": "automatic"
            }
          },
          "payment_method_types": [
            "card"
          ],
          "receipt_email": "HIDDEN,
          "review": null,
          "setup_future_usage": null,
          "shipping": null,
          "source": null,
          "statement_descriptor": null,
          "statement_descriptor_suffix": null,
          "status": "requires_payment_method",
          "transfer_data": null,
          "transfer_group": null
        },
        "type": "invalid_request_error"
      }
    }
    • This reply was modified 3 years ago by alexis888.
    Plugin Contributor Alexander C.

    (@alexanderfoxc)

    Thank you for additional info.

    This case looks like client’s bank actually denied 3D Secure check. Have the customer received any messages from his bank that the payment has been denied?

    Also, can you enable debug log on plugin’s Settings page? And please have a look at the debug log when there are any errors.

    Thread Starter alexis888

    (@alexis888)

    Hey, I’ll ask my client about that.

    The debug log has always been enabled, here is the last one:

    [11/16/2021 04:18:47 PM] - Payment processing started.
    [11/16/2021 04:18:47 PM] - Original $_POST data: {"asp_product_id":"307","asp_amount":"42,40","asp_stripeCustomFieldName":"dossier N\u00b0 (voir num\u00e9ro offre de prix figurant en haut de votre devis)","asp_stripeCustomField":"91392","asp_billing_name":"MME XXXXXX ","asp_email":"[email protected]","asp_payment_intent":"pi_3JwUMoLuHbSxFgQn0wMCmew9","asp_btn_uniq_id":"","asp_process_ipn":"1","asp_is_live":"1","asp_thankyou_page_url":""}
    [11/16/2021 04:18:47 PM] - Got product ID: 307
    [11/16/2021 04:18:47 PM] - Firing asp_ng_process_ipn_product_item_override filter.
    [11/16/2021 04:18:47 PM] - Firing asp_ng_process_ipn_payment_data_item_override filter.
    [11/16/2021 04:18:47 PM] - The transaction ID of this notification is: ch_3JwUMoLuHbSxFgQn0oRZNIQk
    [11/16/2021 04:18:47 PM] - Constructing checkout result and order data.
    [11/16/2021 04:18:47 PM] - Firing asp_ng_payment_completed filter.
    [11/16/2021 04:18:47 PM] - Firing asp_ng_handle_metadata filter.
    [11/16/2021 04:18:47 PM] - Updating payment metadata.
    [11/16/2021 04:18:47 PM] - Firing asp_ng_payment_completed_update_pi filter.
    [11/16/2021 04:18:47 PM] - Updating payment intent data.
    [11/16/2021 04:18:48 PM] - Firing asp_stripe_payment_completed action.
    [11/16/2021 04:18:48 PM] - Notification email sent to buyer: [email protected], from email address used: XXXXXX <[email protected]>
    [11/16/2021 04:18:49 PM] - Notification email sent to seller: [email protected], [email protected], from email address used: XXXXXX <[email protected]>
    [11/16/2021 04:18:49 PM] - Payment has been processed successfully.
    [11/16/2021 04:18:49 PM] - Redirecting to results page "https://www.atlanmac.fr/stripe-checkout-result/"
    
    [11/17/2021 03:01:07 PM] - Saved form data: {"amount":"435,03","stripeCustomFieldName":"dossier N\u00b0 (voir num\u00e9ro offre de prix figurant en haut de votre devis)","stripeCustomField":"2111048004","billing_name":"XXXXXX XXXXXX","email":"[email protected]","payment_intent":"","btn_uniq_id":"","product_id":"307","process_ipn":"1","is_live":"1","thankyou_page_url":""}
    [11/17/2021 03:01:43 PM] - Payment processing started.
    [11/17/2021 03:01:43 PM] - Custom $_POST data: {"asp_amount":"435,03","asp_stripeCustomFieldName":"dossier N\u00b0 (voir num\u00e9ro offre de prix figurant en haut de votre devis)","asp_stripeCustomField":"2111048004","asp_billing_name":"Bouvet Emilie","asp_email":"[email protected]","asp_payment_intent":"pi_3JwpdCLuHbSxFgQn0OhNI7hB","asp_btn_uniq_id":"","asp_product_id":"307","asp_is_live":"1","asp_thankyou_page_url":""}
    [11/17/2021 03:01:43 PM] - Got product ID: 307
    [11/17/2021 03:01:43 PM] - Firing asp_ng_process_ipn_product_item_override filter.
    [11/17/2021 03:01:43 PM] - FAILURE: 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.
    [11/17/2021 03:01:43 PM] - Error email sent to [email protected], from email address used: [email protected]
    [11/17/2021 03:01:43 PM] - Redirecting to results page "https://www.atlanmac.fr/stripe-checkout-result/"
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Payement error “payment_intent_unexpected_state”’ is closed to new replies.