#AC_work-android-terminal

1 messages ยท Page 1 of 1 (latest)

plain zenith
#

Hi there! There are various things that you can't do from the client-side, so it is necessary to have a backend for those requests to the Stripe API. Otherwise you would be opening up yourself for bad actors!

wet temple
#

I am sorry I am just confused

plain zenith
#

Not quite. When using Stripe Terminal you will have a backend server, a client-side app either web or mobile, and your point of sale Terminal device.

wet temple
#

So if I am understanding you correctly. Do terminal transactions need to be handled differently then a "input your information" credit card transaction?

plain zenith
#

Kind of? It depends what you mean by that. With an online or mobile transaction you still are going to have a frontend controlling your app, just like you do with Terminal. You just don't have hardware in that case.

wet temple
cedar jacinth
#

Hi ๐Ÿ‘‹ @plain zenith had to step away and I'm taking over. I would not advise attempting to handle all transactions on just the Android SDK. That is not what it was designed for.

cedar jacinth
#

If you are thinking of a web integration you've got
a) Client interface handling accepting payment info and some business logic
b) Server handling all secure components (creating payment intents, etc.)

With Terminal, you are adding a step prior to the client to allow the terminal device to get the payment details and transmit them to the client for submission to the server.

wet temple
#

Okay so you do not advise to use the android SDK how I mentioned in my last message?

cedar jacinth
#

I would not, no.

wet temple
#

I just need to explain this to the other developer on my team. Can you give me any example why this is a bad idea? I like your web dev example

cedar jacinth
#

Well it's kind of like why you don't expose your private key in the JavaScript you have on your website. Sure the average user isn't going to see it or mess around with it. If you're lucky it will never be a problem. But it's a bad practice.

#

Also, the examples and code snippets across our docs are intended that you can copy/paste and tweak in your own integration.

#

But if you try to hack around the intended design none of that is going to work for you

#

To be clear, I'm still not 100% certain it would even work in the first place. But if it did, the amount of technical debt incurred when trying to update or change anything would be significant.

wet temple
#

Thank you very much

#

You've and bismarck have been really helpful

cedar jacinth
#

Happy to hear it ๐Ÿ™‚