How novmar03/demo-shop works
This is a Russian-language demo storefront with an eight-item catalog and shared cart, offering three payment demonstrations: a CloudPayments widget, payment blocks, and Checkout cryptogram creation. The principal flow is browsing products, changing cart quantities, producing an order snapshot, then choosing a payment scenario; Checkout deliberately does not complete a charge. The graph includes catalog presentation, cart state, and each payment path. Connections reflect the sampled app and module calls or README-described behavior; server-side payment confirmation is documented as not implemented.
Main entry points: app.js Storefront app · blocks.js Payment blocks · checkout.js Cryptogram checkout · payment.js Widget checkout
Components 15
Storefront
- Storefront app
src/app.js - Product catalog
src/products.js - UI components
src/ui.js - Responsive styling
src/styles.css
Cart and order
- Cart operations
src/cart.js - Browser storage
- Order snapshot
src/cart.js
Payment scenarios
- Widget checkout
src/payment.js - Payment blocks
src/blocks.js - Cryptogram checkout
src/checkout.js
Payment provider
- CloudPayments widget
- CloudPayments blocks
- CloudPayments Checkout
Other components
- Shopper
- Browser
Connections 19
- Shopper → Storefront app: browses and acts
src/app.js - Storefront app → Product catalog: reads products
src/app.js - Storefront app → UI components: renders storefront
src/app.js - UI components → Responsive styling: uses styles
- Storefront app → Cart operations: updates cart
src/app.js - Cart operations → Product catalog: validates product IDs
src/cart.js - Storefront app → Browser storage: loads and saves cart
src/app.js - Storefront app → Order snapshot: creates order
src/app.js - Order snapshot → Product catalog: adds product details
src/cart.js - Shopper → Storefront app: selects payment route
src/app.js - Storefront app → Widget checkout: starts widget payment
src/app.js - Widget checkout → CloudPayments widget: loads SDK and starts
src/payment.js - Storefront app → Payment blocks: mounts payment blocks
src/app.js - Payment blocks → CloudPayments widget: uses payment parameters
src/blocks.js - Payment blocks → CloudPayments blocks: loads and mounts
src/blocks.js - Storefront app → Cryptogram checkout: mounts Checkout form
src/app.js - Cryptogram checkout → CloudPayments Checkout: loads SDK and creates cryptogram
src/checkout.js - Cryptogram checkout → Widget checkout: uses public ID
src/checkout.js - Storefront app → Browser: dispatches checkout results
src/app.js