#thiagomacauba88_api
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/1265398348903612597
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! the error msg is straightforward so can you please share more detail?
1/ what guide are you following?
2/ when in your code are you getting the error?
Hey hmunoz
When I'm trying to call: /capture_payment_intent
only happens when I'm using the terminal
yes and the error msg makes sense then, you're trying to capture a PaymentIntent but it hasn't been confirmed via the Terminal with a PaymentMethod
that's why I'm asking what guide are you following as you've missed a crucial step
hummm
so what is missing? I updated to 3.7.0 and i dont remember having this in the old versions 2X... for example
@frail bolt are you reading my message? I asked you which guide/doc you are following
what doc/guide are you referencing or following to build your integration
I had this working in the old version, I just updated the sdk
and which integration are you building? JS SDK with Terminal? Or Server Driven? or Mobile SDK Terminal?
no not confused, I'm just asking what guide you are following, thanks for sharing it was Android
you need to check your code on whether you're doing steps 2 and 3 here:
Step 2: https://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=android#collect-payment
both those steps happen on the Android SDK for Terminal
you have to collect a PaymentMethod and then confirm the PaymentIntent from the Terminal Android SDK
right now your code has a PaymentIntent and is just trying to "capture" it but is missing steps 2 and 3
ok, but that's my order: Terminal.getInstance().retrievePaymentIntent(clientSecret) -> Terminal.getInstance().collectPaymentMethod(paymentIntent) -> /capture_payment_intent
everything was succeed before capture
what about step 3
Terminal.getInstance().confirmPaymentIntent
that is from the doc
is your code doing that or no?
cause that is crucial to taking the PaymentIntent from requires_payment_method -> requires_capture
otherwise you get the error you're seeing
humm i dont have this...
you need to confirm all PaymentIntents, Terminal or not Terminal
here's what I recommend - read that doc you shared earlier, end to end
that answers all your questions
Okay, but this step is one before /capture, right?
sorry for pushing you back to the doc but the doc answers your questions in much better detail and nuance
this is a screenshot of the table of contents of that doc, for example and it lays out the high level steps
This answered my question, thanks
pls read the doc end to end as that is required, Terminal is already a difficult integration to build (I personally find so) so I don't want you to miss anything
hmm I'm trying to remember if this changed in recent major Android version. I don't remember off hand as it has been a few yrs since I integrated Mobile SDKs for Terminal. It may have been one step that bundled steps 2 and 3? can't recall