#27 added more info to transaction + callback from stripe

This commit is contained in:
Dominic Villemure
2024-05-09 18:00:42 -04:00
parent 5980eb7f0f
commit 4f97f8ad25
13 changed files with 770 additions and 22 deletions

View File

@@ -22,9 +22,7 @@ public class CreateSessionCheckoutCommandHandler(
// ReSharper disable once PossibleLossOfFraction
decimal priceInDollars = (request.Amount / 100);
//todo: Need to add this transaction after the confirmation from stripe in the frontEnd ( redirect, re-call backend )
var userTransaction = new UserTransaction
{
Currency = request.Currency, Amount = priceInDollars, TipMessage = request.TipMessage, ApplicationUserId = request.CreatorId