#ori-hyams_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/1318922432144216176
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
you haven't passed the customer ID when creating the SetupIntent
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hello Tarzan (im working on this feature with Ori,
it is passed here, in the update: https://dashboard.stripe.com/test/logs/req_q4q7WSsxwolvgL
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
who's Ori if I may ask?
I Am ๐
oh sorry. he is the one posted the question
oh sorry ๐ฆ I missed that
Terminal.shared.retrievePaymentIntent(clientSecret: clientSecret)
why are you doing this step?
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)
I can see that the SetupIntent was successfully confirmed
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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.":(
for example here:
https://dashboard.stripe.com/test/setup_intents/seti_1QXLBYFdCE6n8elIbBjm0bLg
and the payment intent:
https://dashboard.stripe.com/test/payments/pi_3QXLGkFdCE6n8elI1qmq4TBQ
for some reason it only happends with tap to pay
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you're not suppose to use the PaymentMethod ID of the card_present PM but rather the generated_card ID
as explained here https://docs.stripe.com/terminal/features/saving-cards/overview#charging-saved-card
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?
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
so this:
setatt_1QXLBkFdCE6n8elIYIqrlF1d for example?
yes exactly
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/.",
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
to retrieve it you mean?
oh yeah retrieve
you just need to retrieve the SetupIntent and expand on the latest_attempt https://docs.stripe.com/api/setup_intents/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Got it, thank you!