#kelenr_error

1 messages ¡ Page 1 of 1 (latest)

halcyon valeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1237513728279183381

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

regal garden
#

Hi there!

rigid flower
#

hi

regal garden
#

requires_payment_method means payment method details haven't been collected and associated with the PaymentIntent

#

Can you share a link to the docs/guide you're following to develop your integration?

rigid flower
regal garden
#

Thanks. Based on what you've shared so far, it sounds like you've completed step 1 in the guide and now need to work on step 2

rigid flower
#

step 2 is from the app, right?

regal garden
#

Correct

rigid flower
#

any recommendation to test this feature

regal garden
#

Where are you stuck exactly with this step of the guide?

tawny elm
#

This is the code in iOS

#

Our develop said: I already completed the step 2

regal garden
#

Okay, so a PaymentIntent was created and payment method details were collected. Where do you call confirmPaymentIntent? Also, do you have an example PaymentIntent ID I can review?

tawny elm
#

pi_3PDaIwQ11WXVGnpx1au4WYYe

#

Our internal server

#

There is where received the error
This PaymentIntent could not be captured because it has a status of requires_payment_method. Only a PaymentIntent with one of the following statuses may be captured: requires_capture."}

regal garden
#

Since capture_method: manual was not used when creating the PaymentIntent, there's no need to manually capture the PaymentIntent. What you should do instead is call confirmPaymentIntent after collecting the payment method details in order to associate the payment method details with the PaymentIntent. Does that make sense?