From aed49b1b4beb0a48bd07979a790fc611d91ccae7 Mon Sep 17 00:00:00 2001 From: scorpiotzh <835598264@qq.com> Date: Tue, 6 Aug 2024 12:13:40 +0800 Subject: [PATCH] feat: update stripe fee --- refund/refund_stripe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refund/refund_stripe.go b/refund/refund_stripe.go index 5e6a546..f0f4201 100644 --- a/refund/refund_stripe.go +++ b/refund/refund_stripe.go @@ -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())