#stratopedarx-swift-terminal

1 messages ยท Page 1 of 1 (latest)

thorn topaz
cursive stirrup
#

looks like your backend is probably returning an error to me.

#

I'd start by adding some logging and breakpoints in that part of the code to see what gets returned and how the code executes.

unique hinge
#

Instead of that

#

or if it is possible to start the service locally.

#

I get the correct secret token. But after that, I don't end up in the delegate method. Nothing happens.

thorn topaz
#

Apologies for the delay, just trying to align on where this currently is. So you're getting a connection token, was that already working or did you need to make a change to accomplish that?

unique hinge
#

Hello,
The token is working. It is stripe's test token.
https://github.com/stratopedarx/TestSwiftUIStripeTerminal

if you download this sample SwiftUI app and put a breakpoint like in the screenshot below, you will see that you will not get there. And I don't understand why this is happening. If you make exactly the same application on UIKIt, then everything works.

#

It looks like the way we create the project in xcode affects how StripeTerminal works.

oblique hill
#

๐Ÿ‘‹ I'm hopping in to take a look! Give me a few minutes

oblique hill
#

When you switched to the different endpoint, are you seeing hte same logs as before?

flat patrol
#

@unique hinge I'm catching up here, full disclosure, I'm not great with SwiftUI but have UIKit experience so can try to piece together an understanding

#

give me a bit to catch up

#

looking through your code now, give me a bit (I'm also in other threads)

unique hinge
#

I hope this record will help to understand me correctly

flat patrol
#

thanks for the video, that was helpful

one thing I'm confused about - why did your fetchConnectionToken function get triggered? that should trigger when you call connectReader() , after discoverReaders(), no?

so how did that trigger?