Overview of EverShop Payment Gateway Architecture
| Piece | File | Job |
|---|---|---|
| Registration | bootstrap.ts | Declares the method, its payment statuses, and availability |
| Checkout component | pages/frontStore/checkout/Stripe.tsx | Mounts into checkout page; provides name, form, and button renderers |
| Payment intent API | api/createPaymentIntent/ | Creates the Stripe PaymentIntent and returns the client secret |
| Webhook | api/stripeWebHook/ | Receives events and updates order payment status |
| Admin settings | pages/admin/paymentSetting/StripePayment.tsx | Manages keys, display name, and capture mode |