using our referral solution you can achieve a similar solution for what you are looking for.
Referrer invites friend > friend signs up > friend makes first purchase > you can choose how to reward the referee and the referred customer, you can do it with a coupon code, or with store credit.
You can choose to reward your customers with limited store credit that will apply for a specific product or collection.
Here is more about our referral program -
Check out our listing page, and feel free to contact me at firstname.lastname@example.org