feat: add online payment management and checkout
Co-Authored-By: Craft Agent <agents-noreply@craft.do>
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# MySQL migration baseline
|
||||
|
||||
Schema 15 repairs installations that applied an early incompatible schema-14 `payment_channel_configs` table (`id/channel/enabled/config_json/secret_encrypted/updated_by`). It renames that table to `payment_channel_configs_legacy_v14` without interpreting or deleting its rows, then creates the immutable encrypted-version table, active pointer table, and payment-order version foreign key required by the current service. The retained legacy table is deliberately not migrated into active configuration because its values cannot be safely interpreted as the current encrypted format. Schema 15 uses metadata-guarded MySQL `PREPARE` branches so it is safe for both early schema-14 and final schema-14 installations. Its down migration removes only the repair-layer order column/foreign key and restores the retained legacy table name when possible; it does not delete the retained legacy rows or immutable version history. Apply 15 before starting a service that requires `RequiredSchemaVersion=15`, and rehearse both schema-14 shapes only on an isolated database.
|
||||
|
||||
Schema 14 adds encrypted immutable payment channel configuration versions, per-channel active pointers, and payment order version references. Apply schemas 13 and 14 explicitly before starting the payment configuration UI/API; startup never migrates. Provide PAYMENT_CONFIG_ENCRYPTION_KEY_FILE as an absolute path to an independent 32-byte raw random key, mounted read-only and backed up securely with the database. All API processes must use the same key. Missing key prevents configuration saves and new environment-backed payment snapshots. Retain historical versions and the startup environment merchant configuration for legacy NULL-version orders. Disabling a channel blocks new payment orders but keeps bound historical notification/query verification. Down 14 destroys configuration history and bindings: quiesce payment entry points, back up, obtain operator approval, and do not resume historical payments as environment-backed transactions. Isolated migration 14/13 down/up and configuration integration tests passed; no business database migration was performed.
|
||||
|
||||
|
||||
Status: DEV schemas are implemented through version 8 (local releases and digest-object locking). Formal entitlement policy acceptance and seed data remain pending. Read-only verification on 2026-09-30: business license_platform is version=7 dirty=false; isolated license_download_260930 is version=8 dirty=false. No business database migration was executed during the deployment-delivery slice.
|
||||
|
||||
## Version 007 to 008
|
||||
|
||||
Reference in New Issue
Block a user