How sereyodamchek/prostore_payway-intergration works
ProStore is a small subscription storefront: shoppers browse a product catalog, select an offer, enter contact details, and initiate ABA PayWay checkout. The page and checkout modal coordinate the client workflow; a payment API creates transaction details and signs them with the PayWay helper, then the browser submits the payment form to PayWay. The README describes webhook handling, but the supplied tree contains no webhook route, so that capability is not represented as implemented. The graph reflects the sampled runtime files; no separate order store or payment-result stage is visible.
Main entry points: index.tsx Storefront page · CheckoutModal.tsx Checkout modal · payment.ts Payment endpoint · ProductCard.tsx Product card
Components 9
Storefront
- Storefront page
pages/index.tsx - Subscription catalog
lib/products.ts - Product card
components/ProductCard.tsx - Checkout modal
components/CheckoutModal.tsx - App shell
pages/_app.tsx
Payment
- Payment endpoint
pages/api/payment.ts - Hash and transaction IDs
lib/payway.ts
Other components
- Shopper
- ABA PayWay
Connections 11
- Shopper → Storefront page: browses
pages/index.tsx - Storefront page → Subscription catalog: reads offers
pages/index.tsx - Storefront page → Product card: renders cards
pages/index.tsx - Product card → Storefront page: selects offer
pages/index.tsx - Storefront page → Checkout modal: opens on selection
pages/index.tsx - Checkout modal → Payment endpoint: posts details
components/CheckoutModal.tsx - Payment endpoint → Hash and transaction IDs: generates hash and ID
pages/api/payment.ts - Payment endpoint → Checkout modal: returns payment fields
components/CheckoutModal.tsx - Checkout modal → ABA PayWay: submits payment form
components/CheckoutModal.tsx - Storefront page → ABA PayWay: loads checkout SDK
pages/index.tsx - App shell → Storefront page: renders page
pages/_app.tsx