Open source loyalty program for retail