@page "/store/receipt"

Receipt

Mistox

https://mistox.net

For Support or questions please email

derek@mistox.net


Payment Method: @PayMethod

Card Used: @Last4


@ItemTitle:

$@ItemCost


Subtotal:

$@ItemCost

Amount Charged:

$@ItemCost


Receipt ID: @ReceiptID

Purchase Time: @PurchaseDateTime

Customer: @CustomerID


Thank you

@code { [Parameter] [SupplyParameterFromQuery] public string ReceiptID { get; set; } = ""; public string PurchaseDateTime{ get; set; } = ""; public string CustomerID { get; set; } = ""; public string ItemTitle { get; set; } = ""; public string ItemCost { get; set; } = ""; public string PayMethod { get; set; } = ""; public string Last4 { get; set; } = ""; protected override void OnInitialized() { /* string resultBody = await (await Http.PostAsync( "/api/stripe/getreceipt", new StringContent(ReceiptID) )).Content.ReadAsStringAsync(); ReceiptResponse receipt = JsonConvert.DeserializeObject( resultBody ); if (receipt != null ) { if( receipt.Succeeded == "succeeded" ) { PurchaseDateTime = receipt.PurchaseDateTime; CustomerID = receipt.CustomerID; ItemTitle = receipt.ItemTitle; ItemCost = receipt.ItemCost; PayMethod = receipt.PayMethod; Last4 = receipt.Last4; } else { Nav.NavigateTo( "/" ); } } else { Nav.NavigateTo( "/?ReceiptNotFound" ); } */ } }