Skip to content

Commit

Permalink
feat: update stripe fee
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Aug 6, 2024
1 parent 18749b5 commit aed49b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refund/refund_stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (t *ToolRefund) doRefundStripe(list []tables.ViewRefundPaymentInfo) error {
// amountRefund = amountRefund.Div(v.PremiumPercentage.Add(decimal.NewFromInt(1)))
//}

dec34 := decimal.NewFromFloat(0.034)
dec34 := decimal.NewFromFloat(0.039)
dec50 := decimal.NewFromFloat(50)
amountRefund := v.Amount.Sub(v.Amount.Mul(dec34).Add(dec50))
r, err := stripe_api.RefundPaymentIntent(v.PayHash, amountRefund.Floor().IntPart())
Expand Down

0 comments on commit aed49b1

Please sign in to comment.