#drewskii
1 messages · Page 1 of 1 (latest)
Hi there, do you have the event ID?
Yes. one moment
sorry, where would that be?
@sage solar
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.",
"request_log_url": "https://dashboard.stripe.com/logs/req_GQzrlXxQLlPcJQ?t=1676000871",
"type": "invalid_request_error"
}
}
OK, let me take a look
req_GQzrlXxQLlPcJQ
found it
there is one of them, there seems to be many of these though
So the request has confirm=true, which tells Stripe to create and confirm the PaymentIntent at the same time. However, a valid payement_method is requried for PaymentIntent confirmation but none is provided, therefore the error.
how can I provide that?
Did you write the code yourself, or are you using a 3rd-party plugin?
I’m using Woocommerce
I see. I'd suggest you to work with the plugin developer directly on this problem.
what can I say to them?
You can tell them that they are sending a PaymentIntent creation request without payment_method and yet confirm set to true , You can also share the request ID with them to investigate the problem.
This is the relevant API reference doc https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks. i’ll let you know how it goes