Add customer communication system

This commit is contained in:
sysadmin
2025-08-27 18:02:39 +01:00
parent 1f7c0af497
commit eae5be3e7c
136 changed files with 14552 additions and 97 deletions

View File

@@ -163,14 +163,18 @@ public class CryptoPaymentService : ICryptoPaymentService
private static string GenerateWalletAddress(CryptoCurrency currency)
{
// Placeholder wallet addresses - in production these would come from BTCPay Server
var guid = Guid.NewGuid().ToString("N"); // 32 characters
return currency switch
{
CryptoCurrency.BTC => "bc1q" + Guid.NewGuid().ToString("N")[..26],
CryptoCurrency.XMR => "4" + Guid.NewGuid().ToString("N")[..94],
CryptoCurrency.USDT => "0x" + Guid.NewGuid().ToString("N")[..38],
CryptoCurrency.LTC => "ltc1q" + Guid.NewGuid().ToString("N")[..26],
CryptoCurrency.ETH => "0x" + Guid.NewGuid().ToString("N")[..38],
_ => "placeholder_" + Guid.NewGuid().ToString("N")[..20]
CryptoCurrency.BTC => "bc1q" + guid[..26],
CryptoCurrency.XMR => "4" + guid + guid[..32], // XMR needs ~95 chars, use double GUID
CryptoCurrency.USDT => "0x" + guid[..32], // ERC-20 address
CryptoCurrency.LTC => "ltc1q" + guid[..26],
CryptoCurrency.ETH => "0x" + guid[..32],
CryptoCurrency.ZEC => "zs1" + guid + guid[..29], // Shielded address
CryptoCurrency.DASH => "X" + guid[..30],
CryptoCurrency.DOGE => "D" + guid[..30],
_ => "placeholder_" + guid[..20]
};
}
}