#andre_api

1 messages ยท Page 1 of 1 (latest)

modern groveBOT
#

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

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

meager jacinth
#

Checking it now

#

Which stripe SDK library and its version do you use?

haughty ridge
#

I use java sdk version, in backend we use version 28.2.0 and also 29.4.0 specifically for the collect input features

but, I'd like to do those test calls using the api if possible, externaly to our backend

meager jacinth
haughty ridge
#

alright cool, I'll try that, thanks

#

one issue, the link to the api is broken

#

I tried calling the endpoint you provided, seems like it exists because I get a 400 error and not a 404 as before, but I need to know the expected payload so I don't get bad request 400 status code.

meager jacinth
#

Did you login to your account when viewing this API spec?

haughty ridge
#

yes I'm logged in
when I try to access this page https://docs.stripe.com/api/terminal/readers/succeed_input_collection I get a Stripe page "Page not found" and on the top right I see "sign in" as if I was not logged in, I click that, sign in is automatic since I'm already signed in in other browser tabs, than I try the link once more and get the same result

meager jacinth
#

Ah! It looks like there is some bug in viewing this doc. The spec will be:

/v1/test_helpers/terminal/readers/tmr_123/succeed_input_collection > Use this endpoint to trigger a successful input collection on a simulated reader.

curl https://api.stripe.com/v1/test_helpers/terminal/readers/tmr_123/succeed_input_collection \
  -u "sk_123:" \
  -H "Stripe-Version: 2025-05-28.basil" \
  -d skip_non_required_inputs=none

Where skip_non_required_inputs : This parameter defines the skip behavior for input collection.

haughty ridge
#

Alright, thanks.
I've also found this in the test helper in java sdk, I can get the request payload structure from there as well
thanks once more

meager jacinth
#

No problem! Happy to help ๐Ÿ˜„

haughty ridge
#

do you know how do I simulate a succeed_input_collection providing the results for a collect input of type 'selection'?

#

for example, I provide two buttons on the 'selection' type, so I would need to simulate the user clicking in one of the buttons

#

the java sdk provides only the parameter you sent 'skip_non_required_inputs', I don't know what will be the result of that when I need to check which of the buttons the customer clicked

#

ah ok, I tried that and stripe sends me the event in webhook as if the customer clicked in the first button

#

that works for me