#zzz123

1 messages · Page 1 of 1 (latest)

proud kayakBOT
molten granite
#

Hi, is that set_reader_display a call against Stripe server? or inside the SDK? and also cancel_action?

thin furnace
#

Yeah, it's against stripe server

#

When I switch to VPN I am getting faster response

#

must be my network. weird.

molten granite
#

Likely

thin furnace
#

okay

molten granite
#

Hi, I think it's the network issue for 2 calls. And the turning off is weird. I suggest getting in touch with Support so they might be able to suggest some diagnose step, or eventually replacing your terminal

thin furnace
#

Okay - will get in touch with support regarding the power issues. Regarding the other issue. I am seeing a 30 second delay after calling https://api.stripe.com/v1/terminal/readers/tmr_xxx/cancel_action where the display cannot be set. I expect that after calling cancel_action, the reader would be immediately responsive to a subsequent set_reader_display call, but you must wait exactly 30 seconds until that is possible.

molten granite
#

hmm

#

You observe it's exactly 30 seconds?

thin furnace
#

Yes, multiple times

molten granite
#

Let me clarify as I am not super familiar with terminals. Is cancel_action a call on your backend?

thin furnace
molten granite
#

In this episode, you'll learn how to cancel an in-flight payment using the Terminal Reader API's cancel endpoint. Canceling a reader action allows you to reset your reader so that you can pass an updated payment amount or otherwise set the reader back to its idle state. You can follow along with the code example using the Stripe CLI by typing th...

▶ Play video
#

Okie let's look at this part. Did you observe the call from your frontend -> backend delayed for 30 seconds, or was it returned immediately but the terminal is unresponsive for 30 seconds?

thin furnace
#

There is no front-end, this is all being done from a linux bash terminal.

molten granite
#

I see. So the cancel happens immediately but somehow set_reader_display is ineffective in 30 seconds

#

Let's open another Support email thread, describing the issue clearly and include this Discord thread link. I believe it will reach our internal teams quickest. I will make sure to add a note into the email thread

thin furnace
#

Right. Okay

molten granite
#

I am sorry not being very helpful. When you are done let me know the email you used

thin furnace
#

No, that's alright. It seems like there is very little support for terminal owners, unfortunately.

thin furnace
#

I've uncovered some more details about this behavior. So, the https://api.stripe.com/v1/terminal/readers/tmr_xxx/cancel_action will cause that 30 unresponsiveness if the screen is in https://api.stripe.com/v1/terminal/readers/tmr_xxx/set_reader_display mode (as in, it is displaying the cart contents on the reader). So, if the screen is currently in idle mode, and not in cart mode, cancel_action can be called over and over again without triggering the 30 second delay. So, it is only if the reader is displaying the cart contents that this behavior is triggered.

molten granite
#

It looks like a bug on our end

#

thanks for figuring it out

#

Would be appreciated if you can include that details into the email thread too