1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-04 07:51:31 +02:00

Enable automatic tax

This commit is contained in:
binwiederhier 2023-01-30 09:30:51 -05:00
parent 4ad1099e9f
commit b10b0f8a6a

View file

@ -145,10 +145,8 @@ func (s *Server) handleAccountBillingSubscriptionCreate(w http.ResponseWriter, r
Quantity: stripe.Int64(1), Quantity: stripe.Int64(1),
}, },
}, },
Params: stripe.Params{ AutomaticTax: &stripe.CheckoutSessionAutomaticTaxParams{
Metadata: map[string]string{ Enabled: stripe.Bool(true),
"user_id": u.ID,
},
}, },
} }
sess, err := s.stripe.NewCheckoutSession(params) sess, err := s.stripe.NewCheckoutSession(params)