I think there are open source gateways already, no need to write a new one. It should just be setup during onboarding in the profile.
They don’t do the new spec, they just send you unlocked ecash via a dm
npub cash says they lock tokens to the public key. https://npub.cash/ https://m.primal.net/JQWZ.png