ÁSZF: terms page, consent on every purchase, confirmation e-mail
The new /aszf page holds the terms (a draft for legal review; the company data come from lib/legal.ts). Stripe's payment page asks every buyer to accept them and to ask for immediate delivery, giving up the 14-day withdrawal right; the time and the terms version are stored, and a purchase_confirmation e-mail confirms it. Login, the landing footer, the package cards and the sitemap link the terms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -36,6 +36,16 @@ pub struct Session {
|
||||
/// Name, e-mail, billing address; for a company its name and tax ids.
|
||||
#[serde(default)]
|
||||
pub customer_details: Option<Value>,
|
||||
/// `{"terms_of_service": "accepted"}` once the buyer ticked the terms box.
|
||||
#[serde(default)]
|
||||
pub consent: Option<Value>,
|
||||
}
|
||||
|
||||
impl Session {
|
||||
/// The buyer accepted the terms (and gave up the withdrawal right).
|
||||
pub fn terms_accepted(&self) -> bool {
|
||||
self.consent.as_ref().is_some_and(|c| c["terms_of_service"] == "accepted")
|
||||
}
|
||||
}
|
||||
|
||||
impl Session {
|
||||
|
||||
Reference in New Issue
Block a user