Pricing, Referrals & Discounts

Subscription tiers, discount codes, referral rewards, share-to-friends, and purchase validation

Last updated: March 2026

Product Pricing

ProductTypePriceDetails
Premium SubscriptionRecurring$4.95/month2 course slots, 10,000 weekly AI credits, cancel anytime
Custom AudioOne-time$8.95AI-generated personalized hypnotherapy session
AI Credits (4,000)One-time$2.95Bank credits, never expire
AI Credits (10,000)One-time$5.95Bank credits, best value
Free Tier
Access to free content only (C99ENB). Must subscribe to download premium courses. Can still purchase custom audio and AI credits.
Premium Tier
2 course download slots (free course doesn't count). Choose voice (M/F). Can switch courses via slot management. Includes 10,000 weekly AI credits.

Discount Code System

Discounts are cohort-based and assigned per-user during the server handshake. Each discount has a 7-day lifespan once assigned. The app checks codes are not expired and not already used before presenting them.

CodeProduct TypeCohortLifespan
SBF02SubscriptionIABCDEF7 days
SBF03SubscriptionIP3WWYK7 days
AID50, AID60AI CreditsIABCDEF7 days
CCF02CCF08Custom AudioUniversal7 days

Codes map to platform-specific discounted product IDs. Android uses Google Play Offers (e.g., offer ID "a-1" from code "SBF02"). iOS uses App Store Promotional Offers. AI credits and custom audio use separate product IDs with suffixes (e.g., ai_credits_4000_x2, x99enb_c1).

Referral System

User-to-User Referrals
$1 credit toward custom audio when referred user subscribes to premium.

Referral codes auto-generated on signup: format U + 6 alphanumeric chars (e.g., "U7KMP3Q"). One credit per referred user. Awarded automatically via DB trigger (handle_premium_subscription_referral).
Influencer Program
$2 cash payout per premium signup from their referral code.

Tracked via cohorts. HTTP POST to log-referral with user name, email, cohort code. Branded splash screen (5 seconds on app launch). Payout via Zelle or PayPal on request.
1
User shares referral code
2
Friend signs up with code — referred_by set on profile via populate_referred_by trigger
3
Friend subscribes to premium
4
DB trigger fires — referrer earns credit ($1 user / $2 influencer)

Referral code validation: validate_referral_code edge function (no auth required) checks discount_codes table, then user_profile.referral_code. After signup, referral-code-user-signup attaches the code.

Share to Friends

Users can invite friends via the share dialog. Email invitations sent server-side through Resend API (max 10 per request). Share message includes referral code and app store links.

Supported Platforms
WhatsApp, Instagram, TikTok, Twitter/X, Email (Resend), SMS, generic share sheet
Features
Customizable messages with embedded referral code. Course-specific or generic invites. Optional promo image. Message preview with editing.

Purchase Validation

All purchases validated server-side via validate_purchase edge function. Receipts verified with respective app store before granting access.

1
User selects product → platform-specific product ID
2
Store returns receipt/token
3
App sends to validate_purchase
4
Server validates with store API → access granted & sync triggered
StageActionEndpoint
SignupValidate referral codeactions → validate_referral_code
SubscribeIAP via Google Play / App StoreStore native
ValidateVerify receiptvalidate_purchase
SyncGet discounts & manifesthandshake
DownloadDownload course (uses slot)validate_purchase
SwitchSwap course in slotactions → switch_course
ShareInvite friendsactions → share_to_friends
ReferralCredit when friend subscribesDB trigger
Related: Server CommunicationApp ArchitectureWhat is HypnoELP?
Back to Hypnoelp App