...
After enabling the referral code function, go to Marketing > Reward Points > Rules and create a behavior rule - Refer a friend.
Create a new reward point rule
Set the condition as Refer a friend
Set the points earned by refer a friend for referrer and referee
...
Membership Addon
After the addon is enabled (in the Reward Points Configuration), you can setup the addon in Marketing > Reward Points > Membership.
...