This commit is contained in:
greeneclipse committed 2026-10-16 00:34:06 +02:00
1 parent 6586722652
commit 1e7c7bbfbb
65 files changed
+1345 -640

No files matched your search

@@ -64,7 +64,10 @@ func (s *StripeService) CreateSalesQuoteCheckout(ctx context.Context, in SalesQu
}
currency := strings.ToLower(strings.TrimSpace(in.Currency))
if currency == "" {
currency = "usd"
currency = "eur"
}
if currency != "eur" {
return SalesQuoteCheckoutResult{}, fmt.Errorf("%w: only EUR sales quotes are supported", ErrStripePlanUnsupported)
}
ctx, cfg, err := s.bindCfg(ctx)
@@ -206,7 +209,7 @@ func (s *StripeService) createSalesQuotePrice(ctx context.Context, productID str
form.Set("product", productID)
form.Set("currency", strings.ToLower(strings.TrimSpace(in.Currency)))
if form.Get("currency") == "" {
form.Set("currency", "usd")
form.Set("currency", "eur")
}
form.Set("unit_amount", strconv.Itoa(in.InstallmentAmountCents))
form.Set("metadata[descrybe_sales_quote]", in.QuoteID.String())