Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public async Task<ProcessSaleTransactionResponse> ProcessSaleTransaction(Guid tr

(String responseMessage, TransactionResponseCode responseCode) validationResult =
await this.ValidateSaleTransaction(estateId, merchantId, deviceIdentifier, operatorIdentifier, transactionAmount, cancellationToken);

await this.TransactionAggregateManager.StartTransaction(transactionId,
transactionDateTime,
transactionNumber,
Expand All @@ -184,12 +184,12 @@ await this.TransactionAggregateManager.StartTransaction(transactionId,
deviceIdentifier,
transactionAmount,
cancellationToken);


// Add the product details
await this.TransactionAggregateManager.AddProductDetails(estateId, transactionId, contractId, productId, cancellationToken);

if (validationResult.responseCode == TransactionResponseCode.Success)
{
// Add the product details
await this.TransactionAggregateManager.AddProductDetails(estateId, transactionId, contractId, productId, cancellationToken);

// Record any additional request metadata
await this.TransactionAggregateManager.RecordAdditionalRequestData(estateId,
transactionId,
Expand Down
Loading