Raw
1 /** @type {import('types').Sidebar.SidebarItem[]} */
2 export const paymentSidebar = [
3 {
4 type: "sidebar",
5 sidebar_id: "payment",
6 title: "Payment Module",
7 children: [
8 {
9 type: "link",
10 path: "/commerce-modules/payment",
11 title: "Overview",
12 },
13 {
14 type: "link",
15 path: "/commerce-modules/payment/module-options",
16 title: "Module Options",
17 },
18 {
19 type: "separator",
20 },
21 {
22 type: "category",
23 title: "Concepts",
24 children: [
25 {
26 type: "link",
27 path: "/commerce-modules/payment/payment-collection",
28 title: "Payment Collections",
29 },
30 {
31 type: "link",
32 path: "/commerce-modules/payment/payment-session",
33 title: "Payment Session",
34 },
35 {
36 type: "link",
37 path: "/commerce-modules/payment/payment",
38 title: "Payment",
39 },
40 {
41 type: "link",
42 path: "/commerce-modules/payment/payment-provider",
43 title: "Payment Module Provider",
44 },
45 {
46 type: "link",
47 path: "/commerce-modules/payment/payment-checkout-flow",
48 title: "Payment in Checkout",
49 },
50 {
51 type: "link",
52 path: "/commerce-modules/payment/account-holder",
53 title: "Account Holder",
54 },
55 {
56 type: "link",
57 path: "/commerce-modules/payment/webhook-events",
58 title: "Webhook Events",
59 },
60 {
61 type: "link",
62 path: "/commerce-modules/payment/links-to-other-modules",
63 title: "Links to Other Modules",
64 },
65 ],
66 },
67 {
68 type: "category",
69 title: "Server Guides",
70 autogenerate_tags: "server+payment",
71 autogenerate_as_ref: true,
72 sort_sidebar: "alphabetize",
73 description:
74 "Learn how to use the Payment Module in your customizations on the Medusa application server.",
75 children: [
76 {
77 type: "link",
78 path: "/commerce-modules/payment/payment-flow",
79 title: "Accept Payment Flow",
80 },
81 {
82 type: "link",
83 path: "/references/payment/provider",
84 title: "Create Payment Provider",
85 },
86 ],
87 },
88 {
89 type: "category",
90 title: "Storefront Guides",
91 autogenerate_tags: "storefront+payment,-jsSdk",
92 autogenerate_as_ref: true,
93 sort_sidebar: "alphabetize",
94 description:
95 "Learn how to integrate the Payment Module's features into your storefront.",
96 },
97 {
98 type: "category",
99 title: "Admin Guides",
100 autogenerate_tags: "admin+payment,-jsSdk",
101 autogenerate_as_ref: true,
102 sort_sidebar: "alphabetize",
103 description:
104 "Learn how to utilize administative features of the Payment Module.",
105 },
106 {
107 type: "category",
108 title: "Admin User Guides",
109 autogenerate_tags: "userGuide+payment",
110 autogenerate_as_ref: true,
111 sort_sidebar: "alphabetize",
112 description:
113 "Learn how to utilize and manage Payment features in the Medusa Admin dashboard.",
114 },
115 {
116 type: "category",
117 title: "Providers",
118 children: [
119 {
120 type: "link",
121 path: "/commerce-modules/payment/payment-provider/stripe",
122 title: "Stripe",
123 },
124 {
125 type: "ref",
126 path: "/integrations/guides/paypal",
127 title: "PayPal",
128 },
129 ],
130 },
131 {
132 type: "category",
133 title: "References",
134 description:
135 "Find references for tools and resources related to the Payment Module, such as data models, methods, and more. These are useful for your customizations.",
136 children: [
137 {
138 type: "link",
139 path: "/commerce-modules/payment/workflows",
140 title: "Workflows",
141 hideChildren: true,
142 children: [
143 {
144 type: "category",
145 title: "Workflows",
146 autogenerate_tags: "workflow+payment",
147 autogenerate_as_ref: true,
148 sort_sidebar: "alphabetize",
149 },
150 {
151 type: "category",
152 title: "Steps",
153 autogenerate_tags: "step+payment",
154 autogenerate_as_ref: true,
155 sort_sidebar: "alphabetize",
156 },
157 ],
158 },
159 {
160 type: "link",
161 path: "/commerce-modules/payment/js-sdk",
162 title: "JS SDK",
163 hideChildren: true,
164 children: [
165 {
166 type: "sub-category",
167 title: "Store",
168 autogenerate_tags: "jsSdk+storefront+payment",
169 description:
170 "The following methods or properties are used to send requests to Store API Routes related to the Payment Module.",
171 autogenerate_as_ref: true,
172 sort_sidebar: "alphabetize",
173 },
174 {
175 type: "sub-category",
176 title: "Admin",
177 autogenerate_tags: "jsSdk+admin+payment",
178 description:
179 "The following methods or properties are used to send requests to Admin API Routes related to the Payment Module.",
180 autogenerate_as_ref: true,
181 sort_sidebar: "alphabetize",
182 },
183 ],
184 },
185 {
186 type: "link",
187 path: "/references/payment/events",
188 title: "Events Reference",
189 },
190 {
191 type: "sidebar",
192 sidebar_id: "payment-service-reference",
193 title: "Main Service Reference",
194 childSidebarTitle: "Payment Module's Main Service Reference",
195 children: [
196 {
197 type: "link",
198 path: "/references/payment",
199 title: "Reference Overview",
200 },
201 {
202 type: "separator",
203 },
204 {
205 type: "category",
206 title: "Methods",
207 autogenerate_path:
208 "/references/payment/IPaymentModuleService/methods",
209 },
210 ],
211 },
212 {
213 type: "sidebar",
214 sidebar_id: "payment-models-reference",
215 title: "Data Models Reference",
216 childSidebarTitle: "Payment Module Data Models Reference",
217 children: [
218 {
219 type: "link",
220 path: "/references/payment/models",
221 title: "Reference Overview",
222 },
223 {
224 type: "separator",
225 },
226 {
227 type: "category",
228 title: "Data Models",
229 autogenerate_path: "/references/payment_models/variables",
230 },
231 ],
232 },
233 ],
234 },
235 ],
236 },
237 ]