Affiliate coupons
A developer would create a coupon for their script with affiliate options. Those options could be:
-
Affiliate ID
- custom text field that identifies the affiliate coupon in a URL -
Percentage/amount
- the amount of money/percentage an affiliate should receive out of the profit made -
SteamID64
of person to receive the percentage/amount -
Cookie expiration time
(?)
This could work by generating a URL like this:
https://scriptfodder.com/scripts/view/[Script ID]?af=[Affiliate ID]
Once the URL has been visited, a cookie would be created for the user which expires after a day/the cookie expiration time
set in the options. If the cookie is present when the user is confirming their purchase (/scripts/purchase/Script ID
) then it would remove the Percentage/amount
from the profit the developer would receive. This would then be sent to the affiliate's PayPal email, just like a second script author.