forked from unimatrix/web
Document 1.0.1.1 SHOP discovery and general-commerce migration plan
This commit is contained in:
parent
21b765bb80
commit
34f3c4ae7e
1 changed files with 68 additions and 0 deletions
68
docs/design/1.0.1.1-shop.md
Normal file
68
docs/design/1.0.1.1-shop.md
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
# 1.0.1.1 SHOP — discovery and implementation plan
|
||||
|
||||
Status: discovery / open implementation PR. This document does not claim that the replacement shop, payment adapter or vendor emails are installed.
|
||||
|
||||
## Owner decisions
|
||||
|
||||
- Use a general webshop at `shop.dunerealms.com` for hosting, physical merchandise (including sashes), digital services and optional item/kit codes.
|
||||
- Keep the current Azuriom shop, its files, orders, configuration and database. Latest instruction: remove its MAIN MENU link only; do not deactivate it yet.
|
||||
- Do not build a direct dependency between two shops. The new shop can use existing one-time code/delivery services as a fulfilment adapter.
|
||||
- Existing customer identities, permissions, order histories and paid entitlements must remain intact.
|
||||
|
||||
## Findings
|
||||
|
||||
The current shop is Azuriom with its Shop plugin. Azuriom's official Shop repository describes in-game sales and extensible payment methods. It is useful to retain, but a Minecraft-centred checkout is not the desired basis for hosting and shipped merchandise.
|
||||
|
||||
osCommerce is a plausible replacement candidate because it is a general storefront. Its official V4 repository includes the installation process and requires a separately created database. The production PHP runtime must be checked against the selected supported release; the website host currently uses PHP 8.5, which must not be assumed compatible. Official 2024 documentation confirms 4.13 support through PHP 8.2; a newer official product page mentions PHP 8.3. Those statements are not proof of PHP 8.5 support.
|
||||
|
||||
No first-party Minecraft bridge for osCommerce was verified. We do not need one if our existing code fulfilment remains the separate game adapter.
|
||||
|
||||
Official sources checked 16 November 2026:
|
||||
|
||||
- [osCommerce V4 source and installation](https://github.com/osCommerce/osCommerce-V4)
|
||||
- [Official download and hosting requirements entry point](https://www.oscommerce.com/download-oscommerce)
|
||||
- [Official PHP compatibility explanation](https://www.oscommerce.com/blog/success-case-php-version-requirements-for-oscommerce-4)
|
||||
- [Official osCommerce platform description](https://www.oscommerce.com/index.php?cPath=21)
|
||||
- [osCommerce PayPal API/webhook documentation](https://www.oscommerce.com/blog/new-paypal-module-latest-api-2-0-configuration-in-the-advanced-variant-for-oscommerce-4-based-systems)
|
||||
- [Current Azuriom Shop source](https://github.com/Azuriom/Plugin-Shop)
|
||||
|
||||
## Fulfilment types
|
||||
|
||||
| Type | After verified payment | Completion |
|
||||
| --- | --- | --- |
|
||||
| Physical merchandise | Queue an order for the configured vendor | Dispatch/tracking recorded, customer notified |
|
||||
| Hosting | Queue provisioning or an authorised manual work item | Service activated and customer notified |
|
||||
| Digital service | Queue its defined service workflow | Deliverable confirmed |
|
||||
| Kit/item code | Issue one matching entitlement through the existing system | Code redeemed once; game delivery independently confirmed |
|
||||
|
||||
## Physical order flow
|
||||
|
||||
Product/variant/stock and personalisation → delivery address → shipping quote → checkout → verified paid order → vendor notification → packing → dispatch → tracking → completion. Retain refund, cancellation and return history. A vendor receives only the information needed for their allocated order lines, not unrestricted customer access.
|
||||
|
||||
Vendor notification is automatic after payment is confirmed, never merely because a draft order exists. Use an outbox with unique order/vendor/event keys so retries do not send duplicate orders. Record acceptance, dispatch and tracking separately from payment status. Actual vendor destinations still need configuration; no emails are sent by this discovery work.
|
||||
|
||||
## Existing code bridge
|
||||
|
||||
A verified paid order line creates at most one entitlement. Bind it to the correct purchaser/player identity, record an immutable shop/order/line reference, and use idempotency keys. A repeated webhook, refresh or retry must not mint another code or deliver twice. Keep the distinction between paid, code issued, redeemed and game-delivered states.
|
||||
|
||||
Proposed new display prefixes previously agreed: KIT-, UP-, CLAN-, COM-. Existing DRK/DRU and other valid codes must remain redeemable until compatible migration is implemented. Do not assume a label change implements a new backend format. Physical merchandise and hosting do not use game-code fulfilment.
|
||||
|
||||
## Proposed batches
|
||||
|
||||
1. Inspect current host/storage/PHP and current shop data; install a separate supported osCommerce runtime/database at the selected hostname. Do not reuse or overwrite the old shop database.
|
||||
2. Configure TLS, restricted administration, backups and a non-live staging checkout. Verify scheduled workers, mail and certificate renewal.
|
||||
3. Design the catalogue, physical shipping, variants/personalisation and vendor order workflow.
|
||||
4. Add identity/account integration and the reusable paid-order/code adapter.
|
||||
5. Test payment success/failure/refund, duplicate events, vendor retry, dispatch and one-time redemption. Use test payment mode and fixtures; do not create real purchases or send vendor mail during testing.
|
||||
6. Review the concrete storefront and transaction flows before enabling live payments and replacing the public Shop entry.
|
||||
|
||||
## Open implementation questions
|
||||
|
||||
- Exact current supported osCommerce release and PHP/runtime requirements, resource footprint and maintenance path.
|
||||
- Vendor destinations, product catalogue, shipping origins/regions/rates, stock and personalisation fields.
|
||||
- Payment providers, tax/invoice configuration, refund/return terms and hosting provisioning adapter.
|
||||
- DNS for shop.dunerealms.com and which existing SSO capability can be reused safely.
|
||||
|
||||
## Separation from other work
|
||||
|
||||
The ongoing clan/company/Boards work remains under PR #337. This SHOP PR remains open until its implementation and review are finished. Shop discovery does not authorize changes to voting, account ownership, organisation entitlements or bank balances.
|
||||
Loading…
Reference in a new issue

Staff