Stripe Setup a CardReader like a POS

Hello, I already integrated stripe on my web app on anvil and it works great, compliments really. My question is if there is a coding or a practical system to connect the Stripe card reader to my web app on anvil to receive physical payments in store. Thank you very much. :slight_smile:

You’re going to need to resort to Javascript for that. Stripe has a Javascript SDK that you could (theoretically) incorporate into your Anvil app’s client-side. Connect to a reader | Stripe Documentation

You’d need to experiment, though, to see how to best fit that into your app.

Also, you posted this in Feature Requests, but it really seems like a question so should have gone into Q&A.

1 Like

I’m going to move this question to Q&A.
I had a look at the docs that @jshaffstall linked to, and it looks like if you have the minimal knowledge of how the pre-auth and capture process works with stripe, it looks like the javascript required would fit nicely within the scope of the anvil javascript bridge.

I suggest you use the stripe API on the server side in python for processing the payments, but the javascript bridge on the anvil client side to authorize the payments and receive the tokens needed from stripe.

You should then be able to pass the python equivalent of the auth token information back to the anvil server module and actually capture the payment there, using python.

The docs also mention that you have to somehow register the specific card swipe device with your stripe account first, and there is a complicated way using an API, and an easier way by going directly through the stripe account portal.

See:

1 Like