#kelenr_error
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hi there!
hi
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?
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
step 2 is from the app, right?
Correct
any recommendation to test this feature
Where are you stuck exactly with this step of the guide?
We have some sample applications you can play with if that's helpful: https://docs.stripe.com/terminal/example-applications?terminal-sdk-platform=ios
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?
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."}
Okay, so taking a step back here. The PaymentIntent was created without payment_method_types: card_present. This is required for Terminal payments: https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=ios#create-server-side
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?