Credit system with unique invite link for referral bonus Answered
I'have a credit system for my client projects. for every 47$ purchase user get 10 credits. Now they want to create unique invite link to give a refferal bonus for both users new members and to the user who's invite link that was.
I've created a make scenario for if invite code exits then add extra credits if not then add a limiting credits.
My question is : How do i give extra credits to the user who's invite code that was. also how to verify the invite code before signup as I can add any random text in invite code it signup form accepts it.
Duncan Hamra Can you help with this. please.
- How to validate invite code from memberstack it is also taking random text.
- How do i give extra credits to the user who's invite code that was.
Comments
8 comments
Hey Ashish Jangra, do you have a specific logic in place behind these invite codes, if yes, you can probably add a note in the signup that only if the invite code is valid they will get extra credits.
Then you can validate this code in the make workflow based on the logic structure that you have for such invite codes, if its valid pass on extra credits otherwise keep the signup flow as usual.
If your invite code is unique enough and structured, I am sure you can also find which user this code belonged to.
It would help to know in what structure you are providing the invite code to all users and both of the requirements mentioned above could be achieved if the invite code is unique and structured.
Thanks for replying AJ !
The logic is simple. I've setup memberstack to show a user specific invite code. user can see their own invite code in dashboard page.
when they share and a new member signs up using their invite code they both should get 10 extra credits.
I've made a logic in make if a user sign up using an invite code he'll get that 10 extra credits. but i am unable to add extra credits to owner of invite code.
One last thing memberstack invite code takes random data to be invite code. how can i validate that before signup.
Hey Ashish Jangra, great got it.
When I say structure logic of invite code, I mean is there a pattern as to what the invite code is for each user. Say for example, is the invite code a combination of first four characters of the username or is it merged with an item ID? What's the pattern of the invite code you are providing for each user.
Can you share an example?
We can solve this use-case if the invite code is a unique pattern of text via which we can backtrack the owner of the invite code, potentially solving your use-case as well.
I'm not 100% sure about a pattern. It is generated through memberstack only. Adding a screenshot of both member id and invite code
Ashish Jangra, okay I see. So as per the example, the user ashish is the owner of the invite code shown in this screenshot. Is that right?
Also if you're using a Memberscript for the invite code as mentioned here
Okay so it seems the invite code is the code that the user applied while signing up.
In that case, I guess you can add a foot-note below the invite code input in the form, that they will get extra credits in case the code is valid (so that should take away the issue of validating it at the form level)
When a new user signs up, in the make workflow you can use "Get a member" module of Memberstack where you can pass the invite code as the ID, if there exists a user, then you can give the newly signed up user additional credits and also add credits to the member found via this "Get a member" module.
In case, the invite code is invalid, it might lead to an error, so via error handler, you can just continue giving the newly signed up user the basic credits they paid for and stop their workflow at that.
Let me know if this helps
Hi AJ. I'll tried this
Thanks for the help it is working as expected. It's great to have the community members like you. Thankyou so much once again.
Please sign in to leave a comment.