Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/service/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,17 +681,17 @@ func (t transaction) sendEmailReceipt(request postProcessRequest) error {
ReceiptType: "NFT Purchase", // TODO: retrieve dynamically
CustomerName: name,
StringPaymentId: request.TxDBID,
PaymentDescriptor: "STRNG*STRNG-DEMO NFT", // TODO: retrieve dynamically
PaymentDescriptor: "String Digital Asset", // TODO: retrieve dynamically
TransactionDate: time.Now().Format(time.RFC1123),
}
receiptBody := [][2]string{
{"Transaction ID", "<a href='" + request.Chain.Explorer + "/tx/" + request.TxID + "'>" + request.TxID + "</a>"},
{"Destination Wallet", "<a href='" + request.Chain.Explorer + "/address/" + request.UserAddress + "'>" + request.UserAddress + "</a>"},
{"Payment Descriptor", receiptParams.PaymentDescriptor},
{"Payment Method", request.Authorization.Issuer + " " + request.Authorization.Last4},
{"Platform", "String Demo"}, // TODO: retrieve dynamically
{"Item Ordered", "String Demo NFT"}, // TODO: retrieve dynamically
{"Token ID", "1234"}, // TODO: retrieve dynamically, maybe after building token transfer detection
{"Platform", "String Demo"}, // TODO: retrieve dynamically
{"Item Ordered", "String Fighter NFT"}, // TODO: retrieve dynamically
{"Token ID", "1234"}, // TODO: retrieve dynamically, maybe after building token transfer detection
{"Subtotal", common.FloatToUSDString(request.Quote.BaseUSD + request.Quote.TokenUSD)},
{"Network Fee:", common.FloatToUSDString(request.Quote.GasUSD)},
{"Processing Fee", common.FloatToUSDString(request.Quote.ServiceUSD)},
Expand Down