Where can I find the code to add more credits for users
I am trying to create a functionality where users can share my marketplace and they get free credits for every user to register through there links. I have been trying to get the code that addd more credits for each user. I want to modify the code so it can add credits to a user profile when it ascertains that the link is for that user.