Stripe-Produkt: Name, Beschreibung und Abrechnungstext wie im Dashboard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c92615869
commit
c0214725c0
3 files changed
+7
-4
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 428 KiB |
+4
-1
@@ -59,7 +59,10 @@ export const config = {
|
|||||||
webhookSecret: process.env.STRIPE_WEBHOOK_SECRET || '',
|
webhookSecret: process.env.STRIPE_WEBHOOK_SECRET || '',
|
||||||
priceLookupKey: process.env.STRIPE_ABO_PRICE_LOOKUP_KEY || 'webklar_wartung_monatlich_5000',
|
priceLookupKey: process.env.STRIPE_ABO_PRICE_LOOKUP_KEY || 'webklar_wartung_monatlich_5000',
|
||||||
priceAmountCents: 5000,
|
priceAmountCents: 5000,
|
||||||
productName: 'Webklar Wartungs-Abo',
|
productName: 'WEBklar Wartungs-Abo',
|
||||||
|
productDescription:
|
||||||
|
'Betrieb und Pflege Ihrer Website bzw. Web-Anwendung auf unserem Server in Deutschland (Sicherheitsupdates, SSL, tägliche Datensicherung, Überwachung der Erreichbarkeit), 1 Domain inklusive Verwaltung, 1 E-Mail-Postfach (5 GB) und 1 Stunde Arbeitszeit pro Monat (12 Monate nutzbar). Keine Mindestlaufzeit, monatlich kündbar. Gemäß § 19 UStG ohne Umsatzsteuer.',
|
||||||
|
statementDescriptor: 'WEBKLAR WARTUNG',
|
||||||
// Kleinunternehmer: Pflichthinweis auf jeder Stripe-Rechnung
|
// Kleinunternehmer: Pflichthinweis auf jeder Stripe-Rechnung
|
||||||
invoiceFooter:
|
invoiceFooter:
|
||||||
process.env.STRIPE_INVOICE_FOOTER ||
|
process.env.STRIPE_INVOICE_FOOTER ||
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ export async function ensureAboPrice() {
|
|||||||
}
|
}
|
||||||
const product = await stripe.products.create({
|
const product = await stripe.products.create({
|
||||||
name: config.stripe.productName,
|
name: config.stripe.productName,
|
||||||
description:
|
description: config.stripe.productDescription,
|
||||||
'Betrieb & Pflege Ihrer Website/Web-Anwendung, 1 Domain, 1 E-Mail-Postfach, 1 Stunde Arbeitszeit pro Monat (12 Monate gültig).',
|
statement_descriptor: config.stripe.statementDescriptor,
|
||||||
metadata: { webklar: 'wartungs-abo' },
|
metadata: { webklar: 'wartungs-abo' },
|
||||||
})
|
})
|
||||||
const price = await stripe.prices.create({
|
const price = await stripe.prices.create({
|
||||||
@@ -65,7 +65,7 @@ export async function ensureAboPrice() {
|
|||||||
recurring: { interval: 'month' },
|
recurring: { interval: 'month' },
|
||||||
tax_behavior: 'inclusive',
|
tax_behavior: 'inclusive',
|
||||||
lookup_key: config.stripe.priceLookupKey,
|
lookup_key: config.stripe.priceLookupKey,
|
||||||
nickname: 'Wartungs-Abo monatlich 50 EUR',
|
nickname: 'Wartungs-Abo monatlich',
|
||||||
})
|
})
|
||||||
cachedPriceId = price.id
|
cachedPriceId = price.id
|
||||||
return cachedPriceId
|
return cachedPriceId
|
||||||
|
|||||||
Reference in new issue
Block a user