{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/b476667d1179408193aeb9397261551a\" frameborder=\"0\" width=\"1366\" height=\"1024\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1024,"width":1366,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1024,"thumbnail_width":1366,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/b476667d1179408193aeb9397261551a-f5a0f29924e3cb6e.gif","duration":136.261,"title":"MASH API Integration for Member Referral Deposits","description":"This Loom submission explains a MASH API integration that enables HBM members to securely deposit referral rewards. Salil Butankar describes an edge function that retrieves the members API key from the environment, verifies the JWT, and calls the MASH API to return a link token. He also covers the MASH service layer that manages connections and opens the deposit overlay, plus a deposit button that counts referrals at £50 each, with a captain limit of 250, saves the result to Supabase, and shows toast notifications. The Loom concludes by noting the live PWA EGBN members portal includes a referral dashboard and direct members messaging, with the deposit function integrated into the referral reward system."}