forked from mirrors/ntfy
Enable automatic tax
This commit is contained in:
parent
4ad1099e9f
commit
b10b0f8a6a
1 changed files with 2 additions and 4 deletions
|
@ -145,10 +145,8 @@ func (s *Server) handleAccountBillingSubscriptionCreate(w http.ResponseWriter, r
|
|||
Quantity: stripe.Int64(1),
|
||||
},
|
||||
},
|
||||
Params: stripe.Params{
|
||||
Metadata: map[string]string{
|
||||
"user_id": u.ID,
|
||||
},
|
||||
AutomaticTax: &stripe.CheckoutSessionAutomaticTaxParams{
|
||||
Enabled: stripe.Bool(true),
|
||||
},
|
||||
}
|
||||
sess, err := s.stripe.NewCheckoutSession(params)
|
||||
|
|
Loading…
Reference in a new issue