#ori-hyams_api

1 messages ยท Page 1 of 1 (latest)

nova deltaBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spice island
#

๐Ÿ‘‹ happy to help

#

you haven't passed the customer ID when creating the SetupIntent

jagged cypress
spice island
#

who's Ori if I may ask?

soft void
#

I Am ๐Ÿ™‚

jagged cypress
#

oh sorry. he is the one posted the question

spice island
#

oh sorry ๐Ÿ˜ฆ I missed that

#

Terminal.shared.retrievePaymentIntent(clientSecret: clientSecret)
why are you doing this step?

soft void
#

hmm we had actually the tap to pay flow before with paymentIntent that worked well and we did this by the documentation

#

For setupIntent I didnt find documentation so I tried to adjust ( thought it will be similar)

spice island
#

I can see that the SetupIntent was successfully confirmed

jagged cypress
#

Yeah but when we try to convert it paymentIntent (i.e take the actual payment if fails with: "The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first.":(

#
spice island
#

you're not suppose to use the PaymentMethod ID of the card_present PM but rather the generated_card ID

jagged cypress
#

Got we will check it, thank you for your help!

#

generated_card is only on charge object?

#

I see that it explains how to work with charges, but what do we do in case of setupIntent? if we collect the payment method there?

spice island
#

you can find it on the latest_attempt.payment_method_details.generated_card when the SetupIntent succeeds

#

latest_attempt is the SI equivalent of the latest_charge on PI

jagged cypress
#

so this:
setatt_1QXLBkFdCE6n8elIYIqrlF1d for example?

spice island
#

yes exactly

jagged cypress
#

is there a way to call this object with Stripe CLI?

#

"message": "Unrecognized request URL (GET: /v1/setatt_1G0ss4FdCE6n8elIFe4cFD7l). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",

Explore our guides and examples to integrate Stripe.

spice island
#

to retrieve it you mean?

jagged cypress
#

oh yeah retrieve

spice island
jagged cypress
#

Got it, thank you!

nova deltaBOT