Open jterps08 opened 7 years ago
@jterps08 I need a subject/text for an email about referral code and reward code.
Subject "You've earned a Powerline Reward!" Text "Thanks for being a champion of democracy and community engagement. Your referral code has been used three times, which means you've just earned your own reward code [reward code]. You can apply this code by going to your Group Profile, Click "Manage Group", and tap on the Subscription Level (e.g. Silver) you would like to use it on. It's worth 3 free months of Powerline service! Leaders help create more leaders, and we're thrilled that you've been helping to create more Powerline leaders. Keep sharing your referral code and earn more free subscriptions! Thank you!"
We will probably update the text later but this is fine for now.
@jterps08 I guess a text for referral code should be different, can you please provide it too?
I imagine referral code being provided to frontend and we'll surround it with text there. Are we in alignment? @igaponov
@jterps08 ok
@jterps08 can a user has only one referral code?
Correct. It's their own unique referral code that they can pass to friends
@igaponov We need a place to provide this Referral Discount code for a user when they are changing their group subscription. It looks like we can provide this when the user selects a plan / subscription.
User Stamos owns group buildtest1088. He is currently on Silver subscription. He wants to upgrade to Gold subscription and enter his referral code for the discount.
The app should be able to accept referral code when user selects any silver/gold/platinum subscription level. The system should look up that referral code and pass the appropriate discount code to Stripe as a coupon
when changing the subscription plan. I think this will need to be handled as part of the frontend work but it may require some backend work, too:
User needs ability to identify their own referral code (backend work done; frontend work not done) User needs ability to provide someone else's referral code during subscription plan selection (backend work ? ; frontend work not done)
The error that the user currently experiences when trying to change subscription plans is:
Migrating over from server repo...
The ability to auto-create a unique ‘referral’ code for every new user A that can be used by other users B C D etc to discount their group subscriptions Groups X Y Z etc. A user's own referral code cannot be used on their own groups. For every 3 successful referrals, the user earns a single 3 month 100% off discount.
When entering the discount/referral code during group subscription purchase, the system checks the code against the referral code tracking table first to find the actual Stripe discount code stored in the table. If there is no referral code in the table, the user-entered code is sent to Stripe as a discount code, which may or may not be processed successfully…
Story
For example, User A’s referral code (ABCDEFG1234) is used successfully by 4 different paying groups. System calculates that User A has >3 successful referrals. The system e-mails a 3 month free discount code to User A. System rewards User A with unique Reward Code (XYZ5678) which can be used by User A on his own group(s)
All referral codes link back to the same Stripe Discount code. (e.g. 1STMONTH) All reward codes link back to unique Stripe Discount code (e.g. REWARD3M)
This is all essentially seven distinct steps:
coupon
when creating a new customer / adding payment card)