Right now there's no way to create a discount code and decrement from the points currently available for the user
Need to refactor Firestore, Xcode, and functions in order to do this
Store on the "Discount Codes" item the following:
customer's loyalty program ID
customer's current points available
customer's points spent on the discount code
Then you can use this info to update that specific loyalty program with the new amount of points available, after a discount code is created
Right now there's no way to create a discount code and decrement from the points currently available for the user
Need to refactor Firestore, Xcode, and functions in order to do this
Store on the "Discount Codes" item the following: