The catalog stays in packages.rs: every checkout session carries the package's name and gross price, nothing has to be kept in Stripe. The package is granted once, when Stripe confirms the payment: by the signed webhook, or by the return page asking Stripe when the webhook is late. With a test key only admins can buy, so Stripe's test cards give nobody free packages. Without the keys nothing changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
"use client";
|
|
|
|
import type { PayMethod } from "@/lib/types";
|
|
|
|
import { PackageChooser } from "./PackageCards";
|
|
|
|
/** Packages that give more persons: a few more, or the family package. */
|
|
export function PersonPacks({ canPay }: { canPay: PayMethod | null }) {
|
|
return <PackageChooser ids={["addon_persons", "family"]} canPay={canPay} />;
|
|
}
|