Phase 4 part 3: Stripe customers matched to EspoCRM Accounts
Every customer with billing is matched to an Account copied from the CRM: the user's choice, then an Account Hermes created from here, a stored ID on either side, an email (the Account's or a Contact's), or the email's domain (not free mail). Several candidates wait for a choice. Metrics → Customers and the CRM fixes matches, marks customers not in the CRM, and queues paying ones as new Accounts. Schema 20. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -612,3 +612,7 @@ func WriteState(d *db.DB, now time.Time) error {
|
||||
}
|
||||
return os.Rename(tmp, filepath.Clean(StateFile))
|
||||
}
|
||||
|
||||
// IsFreeMail reports whether a domain is a free email provider's, which
|
||||
// says nothing about the company.
|
||||
func IsFreeMail(domain string) bool { return freeMail[strings.ToLower(domain)] }
|
||||
|
||||
Reference in New Issue
Block a user