#lkb2k-terminal-ios
1 messages · Page 1 of 1 (latest)
seti_1Lq4RiDFLdjPQhScZiINdsIt
this is where it lives on the SetupAttempt resource https://stripe.com/docs/api/setup_attempts
When you retrieve the SetupIntent server-side you should see latest_attempt: 'setatt_123' in your API response right?
checking
https://stripe.com/docs/expand is also what you want to read. You can retrieve the SetupIntent and expand the related SetupAttempt all in one request
ok, i don't see the attempt on the intent
it's definitely there I saw your request
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
Hi @narrow temple I'm taking over this thread, is this question related to the thread that I created earlier?
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
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
@narrow temple If that's the case, I'll close the other thread and let's continue the discussion in this thread