question

miaaa avatar image
miaaa asked miaaa commented

Can I input email address using scanner?

My plan: under Payment, there is a receipt session. You can either print, email or text receipt. But the email field is filling manually. Can I use a scanner to scan a barcode as an email input and then send out email receipt automatically?

If yes, could anyone give me some hint which intent or API should I use to achieve this?

Thanks in advanced.

Intents
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

sam avatar image
sam Deactivated answered miaaa commented

Your app will be able to grab the email address from the barcode.

This is an example app listening for the result of a barcode scan. https://github.com/clover/android-exa...

There's no way of automatically sending the email but once the email is scanned, the app could create a customer with the email address and associate it with the order. This will prefill the email but the customer/merchant will still need select email option and press 'send.'

Another option is to send the order_id information to your servers and send the email automatically from your servers. All web receipt follow this pattern: https://sandbox.dev.clover.com/r/{order_id}

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Thanks you very much.

0 Likes 0 ·

Welcome to the
Clover Developer Community