#thiagomacauba88_api

1 messages ยท Page 1 of 1 (latest)

lyric berryBOT
#

๐Ÿ‘‹ 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.

gentle kernel
#

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?

frail bolt
#

Hey hmunoz

#

When I'm trying to call: /capture_payment_intent

#

only happens when I'm using the terminal

gentle kernel
#

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

frail bolt
#

hummm

#

so what is missing? I updated to 3.7.0 and i dont remember having this in the old versions 2X... for example

gentle kernel
#

@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

frail bolt
#

I had this working in the old version, I just updated the sdk

gentle kernel
#

and which integration are you building? JS SDK with Terminal? Or Server Driven? or Mobile SDK Terminal?

frail bolt
#

Android

#

maybe that's the confuse, sorry

gentle kernel
#

no not confused, I'm just asking what guide you are following, thanks for sharing it was Android

#

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

frail bolt
#

ok, but that's my order: Terminal.getInstance().retrievePaymentIntent(clientSecret) -> Terminal.getInstance().collectPaymentMethod(paymentIntent) -> /capture_payment_intent

#

everything was succeed before capture

gentle kernel
#

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

frail bolt
#

humm i dont have this...

gentle kernel
#

that's what I'm saying above ๐Ÿ˜„

#

you're likely missing a step

frail bolt
#

i need to confirm before capture?

#

only for Terminal?

gentle kernel
#

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

frail bolt
#

Okay, but this step is one before /capture, right?

gentle kernel
#

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

frail bolt
#

This answered my question, thanks

gentle kernel
#

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

frail bolt
#

the weird thing is that i didn't need to to this before ahahahhah

#

but ook

#

thanks

gentle kernel
#

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

frail bolt
#

thanks for your help

#

๐Ÿ™‚