Coupon codes generation

Hello All

Has anyone created a voucher system with Bar code generation, that can be scanned in store OR a voucher or coupon code generation that can be redeemed in-store?
The coupons should be sent via email to receiver…

Any guidance on how to do this, would be really helpful

Thanks in advance.

Regards
Tolu

This looks promising: https://berrywing.com/barcode/