add front-end code for points pay