Configure BTCPay with external nodes via Tor
- Set up Tor container for SOCKS proxy (port 9050) - Configured Monero wallet with remote onion node - Bitcoin node continues syncing in background (60% complete) - Created documentation for wallet configuration steps - All external connections routed through Tor for privacy BTCPay requires manual wallet configuration through web interface: - Bitcoin: Need to add xpub/zpub for watch-only wallet - Monero: Need to add address and view key System ready for payment acceptance once wallets configured.
This commit is contained in:
@@ -11,10 +11,11 @@ namespace TeleBot.Models
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public void AddItem(Guid productId, string productName, decimal price, int quantity = 1)
|
||||
public void AddItem(Guid productId, string productName, decimal price, int quantity = 1, Guid? variationId = null)
|
||||
{
|
||||
var existingItem = Items.FirstOrDefault(i => i.ProductId == productId);
|
||||
|
||||
var existingItem = Items.FirstOrDefault(i =>
|
||||
i.ProductId == productId && i.VariationId == variationId);
|
||||
|
||||
if (existingItem != null)
|
||||
{
|
||||
existingItem.Quantity += quantity;
|
||||
@@ -25,6 +26,7 @@ namespace TeleBot.Models
|
||||
var newItem = new CartItem
|
||||
{
|
||||
ProductId = productId,
|
||||
VariationId = variationId,
|
||||
ProductName = productName,
|
||||
UnitPrice = price,
|
||||
Quantity = quantity
|
||||
@@ -32,7 +34,7 @@ namespace TeleBot.Models
|
||||
newItem.UpdateTotalPrice(); // Ensure total is calculated after all properties are set
|
||||
Items.Add(newItem);
|
||||
}
|
||||
|
||||
|
||||
UpdatedAt = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
@@ -85,6 +87,7 @@ namespace TeleBot.Models
|
||||
public class CartItem
|
||||
{
|
||||
public Guid ProductId { get; set; }
|
||||
public Guid? VariationId { get; set; }
|
||||
public string ProductName { get; set; } = string.Empty;
|
||||
public int Quantity { get; set; }
|
||||
public decimal UnitPrice { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user