Afdian as payment handler

This commit is contained in:
2025-06-23 00:29:37 +08:00
parent a23338c263
commit be0b48cfd9
8 changed files with 586 additions and 9 deletions

View File

@ -57,6 +57,15 @@ public class AccountService(
return contact?.Account;
}
public async Task<Account?> LookupAccountByConnection(string identifier, string provider)
{
var connection = await db.AccountConnections
.Where(c => c.ProvidedIdentifier == identifier && c.Provider == provider)
.Include(c => c.Account)
.FirstOrDefaultAsync();
return connection?.Account;
}
public async Task<int?> GetAccountLevel(Guid accountId)
{
var profile = await db.AccountProfiles