bug(tipping): the computed application fee was wrong

This commit is contained in:
2025-07-31 14:11:53 -04:00
parent d7eff20050
commit 49426161fc

View File

@@ -58,7 +58,7 @@ public class StripeTipProcessor(
PaymentIntentData = new SessionPaymentIntentDataOptions PaymentIntentData = new SessionPaymentIntentDataOptions
{ {
ApplicationFeeAmount = ApplicationFeeAmount =
Convert.ToInt64(amount * 100 * stripeOptions.Value.HutopyRate), // Platform fee Convert.ToInt64(amount * stripeOptions.Value.HutopyRate), // Platform fee
TransferData = new SessionPaymentIntentDataTransferDataOptions TransferData = new SessionPaymentIntentDataTransferDataOptions
{ {
Destination = creator.StripeAccountId // Creator's Stripe account ID Destination = creator.StripeAccountId // Creator's Stripe account ID