#peppe - terminal setup customer

1 messages · Page 1 of 1 (latest)

heady yew
#

Good question. Checking in to when you could create a customer here

tranquil coral
#

it would be a game-changer... it would eliminate the need to use an app as we do now

heady yew
#

Hey the server has been a bit to busy for me to properly look in to this. I am going to pull in a colleague to help you here. Apologies on the delay

wind sluice
#

Hello 👋
Stepping in here
Give me a moment to catch up

#

are you trying to create a customer account on Stripe or your own app? Sorry not fully clear on the use-case

#

If its the former (creating customer object on Stripe), We have a guide here to create a customer & save the card for future use
https://stripe.com/docs/terminal/features/saving-cards/overview

If its the latter (creating customers on your own app server-side), You can utilize webhook to receive real-time updates from Stripe and listen for events such as successful payments etc and trigger logic server-side that creates the customers in your database
https://stripe.com/docs/webhooks

tranquil coral
#

Hi Hanzo, it's the latter. Webhooks can be a very good solution for creating a user on our backend when a user is created on Stripe, thanks for the tip!

#

I'll explain my specific use-case properly:

I'd like to use the terminal to check-in users who are borrowing a reusable cup as well as doing the check-out when they return it.

If they don't return it within 10 days they will be charged a fee. The countdown and trigger for the payment happens in our backend, of course.

Now, can I use the terminal to send a custom signal to Stripe (like an event on the user's account) that is then forwarded to my backend via webhooks?

Examples:

  • A new user taps his card to borrow: a new user is created on Stripe and via webhook a new user and pending borrows are created on our backend
  • An existing user taps his card to return: a signal is sent to Stripe that is then forwarded to my backend via webhooks
  • An existing user taps his card to borrow: a signal is sent to Stripe that is then forwarded to my backend via webhooks

I imagine that for this to happen the barista must be able to select "borrow" or "return" on the terminal so that the right signal is sent. Is it possible to customize your terminals for this to happen?

wind sluice
tranquil coral
#

I see. I guess I have to go through building a custom machine and get it certified.

#

thanks for you help Hanzo