ÁSZF consent on Stripe's page off until the opening (TERMS_CONSENT)
CI / test (push) Successful in 1m28s
CI / build (push) Successful in 5m2s
CI / deploy (push) Skipped

Stripe refuses the terms consent until the terms URL is set in its
Public details, so purchases would fail. TERMS_CONSENT=false (the
default) leaves the consent out; then the package cards do not mention
the withdrawal waiver and no purchase confirmation is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-20 14:03:12 +00:00
co-authored by Claude Opus 5.5
parent e326095f3f
commit 54af54cd39
9 changed files with 58 additions and 16 deletions
+6
View File
@@ -58,6 +58,10 @@ pub struct Config {
/// Until the opening only admins can (and with a test key always only
/// admins), so nobody types a real card into a test or unfinished setup.
pub purchases_open: bool,
/// `TERMS_CONSENT` (default `false`): Stripe's payment page asks every
/// buyer to accept the ÁSZF and give up the withdrawal right. Needs the
/// terms URL in Stripe's Public details; off until the opening.
pub terms_consent: bool,
/// `USER_INVITES` (default `false`): users may invite others ("how
/// compatible are we?" links, which also let the invitee sign up). Off
/// until the launch; admins may always.
@@ -187,6 +191,7 @@ impl Config {
.trim_end_matches('/')
.to_string(),
purchases_open: parsed("PURCHASES_OPEN", false)?,
terms_consent: parsed("TERMS_CONSENT", false)?,
user_invites: parsed("USER_INVITES", false)?,
referral_rewards: parsed("REFERRAL_REWARDS", false)?,
google_client_ids: list("GOOGLE_CLIENT_IDS"),
@@ -231,6 +236,7 @@ impl Config {
billingo_api_key: Some("billingo-fake".into()),
billingo_api_url: format!("{horoscope_api_url}/billingo"),
purchases_open: true,
terms_consent: true,
user_invites: true,
referral_rewards: true,
google_client_ids: vec!["test-client.apps.googleusercontent.com".into()],