#lkb2k-terminal-ios

1 messages · Page 1 of 1 (latest)

sudden summitBOT
tight sluice
#

lkb2k-terminal-ios

#

Can you share a SetupIntent id seti_123?

narrow temple
#

seti_1Lq4RiDFLdjPQhScZiINdsIt

tight sluice
#

When you retrieve the SetupIntent server-side you should see latest_attempt: 'setatt_123' in your API response right?

narrow temple
#

checking

tight sluice
narrow temple
#

ok, i don't see the attempt on the intent

tight sluice
#

it's definitely there I saw your request

narrow temple
#

I could definitely be missing it

#

which field do I want to expand to get the attempt?

#

Oh, I do see it in the raw JSON string under lastResponse

last vigil
#

Hi @narrow temple I'm taking over this thread, is this question related to the thread that I created earlier?

narrow temple
#

yeah

#

I'm trying to get the payment method details on the server from the setup intent

#

Looks like I had an old java SDK, so updating gives me the latestAttempt field

tight sluice
#

yeah I was going to say that

#

we added it in 21.X and you were on 19!

narrow temple
#

Ok, so after calling confirm on the client, on the server I call SetupIntent.retrieve with latestAttempt 'expanded', and then I can get the payment method that I can use for future charges from intent.latestAttemptObject.paymentMethodDetails.cardPresent.generatedCard

last vigil
#

@narrow temple If that's the case, I'll close the other thread and let's continue the discussion in this thread