Nitefall Donation Board Concern

Hiya, in Nitefal’s Donation Board (a free model) you are instructed to create a custom code if you use the ProccessReceipt elsewhere in the game. I am unaware to what custom code should be created in this istance due to the fact that i’ve never worked with configuration styled scripts. I’ve looked online for help but there aren’t any posts or videos made about this.

Here is my code:

module.Products = {
	
	{
		ProductPrice = 5, --The price from the Developer Product.
		ProductId = 1093050899 -- The ID from the Developer Product.	
	},
	{
		ProductPrice = 10, --The price from the Developer Product.
		ProductId = 1093052579 -- The ID from the Developer Product.	
	},
	{
		ProductPrice = 50, --The price from the Developer Product.
		ProductId = 1093052766 -- The ID from the Developer Product.	
	},
	{
		ProductPrice = 100, --The price from the Developer Product.
		ProductId = 1093053359 -- The ID from the Developer Product.	
	},
	{
		ProductPrice = 500, --The price from the Developer Product.
		ProductId = 1093053996 -- The ID from the Developer Product.	
	},
	{
		ProductPrice = 1000, --The price from the Developer Product.
		ProductId = 1093054316 -- The ID from the Developer Product.	
	},
	
}

module.AbortCustomPurchases = true --READ Below for what this does. 

return module
1 Like

That custom code would be your ProcessReceipt handler. You would need to implement Nitefal’s donation board datastore saving segment inside of that ProcessReceipt function in order for donations to save properly. The code for saving donations can be found in the script “DeveloperProductHandler” in Nitefal’s donation board, so you can copy & slightly modify that segment to implement it into your ProcessReceipt handler. If you aren’t processing any developer products outside of the donation board products, there is no need to adapt your code.

2 Likes