REFER WORKING:

After customers successfully login and enable the reference link by admin, customer will get a reference link, Now the other users have to successfully register from that link (minimum number of users can set by admin for generating the points), If required number of registration has been done successfully through that link then the customer get the referral points.