#drewskii

1 messages · Page 1 of 1 (latest)

clear arrowBOT
sage solar
#

Hi there, do you have the event ID?

past gull
#

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"
}
}

Learn more about error codes and how to resolve them.

sage solar
#

OK, let me take a look

past gull
#

req_GQzrlXxQLlPcJQ

#

found it

#

there is one of them, there seems to be many of these though

sage solar
#

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.

past gull
#

how can I provide that?

sage solar
#

Did you write the code yourself, or are you using a 3rd-party plugin?

past gull
#

I’m using Woocommerce

sage solar
#

I see. I'd suggest you to work with the plugin developer directly on this problem.

past gull
#

what can I say to them?

sage solar
#

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

past gull
#

Thanks. i’ll let you know how it goes