You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Customize the supported tokens that users can pay with.
34
+
*/
32
35
supportedTokens?: SupportedTokens;
33
36
/**
34
37
* A client is the entry point to the thirdweb SDK.
@@ -215,11 +218,43 @@ type UIOptionsResult =
215
218
* @example
216
219
* ### Default configuration
217
220
*
218
-
* By default, the `CheckoutWidget` component will allows users to fund their wallets with crypto or fiat on any of the supported chains..
221
+
* The `CheckoutWidget` component allows user to pay a given wallet for any product or service. You can register webhooks to get notified for every purchase done via the widget.
222
+
*
223
+
* ```tsx
224
+
* <CheckoutWidget
225
+
* client={client}
226
+
* chain={base}
227
+
* amount="0.01" // in native tokens (ETH), pass tokenAddress to charge in a specific token (USDC, USDT, etc.)
228
+
* seller="0x123...abc" // the wallet address that will receive the payment
229
+
* name="Premium Course"
230
+
* description="Complete guide to web3 development"
231
+
* image="/course-thumbnail.jpg"
232
+
* onSuccess={() => {
233
+
* alert("Purchase successful!");
234
+
* }}
235
+
* />
236
+
* ```
237
+
*
238
+
* ### Customize the supported tokens
239
+
*
240
+
* You can customize the supported tokens that users can pay with by passing a `supportedTokens` object to the `CheckoutWidget` component.
219
241
*
220
242
* ```tsx
221
243
* <CheckoutWidget
222
244
* client={client}
245
+
* chain={arbitrum}
246
+
* amount="0.01"
247
+
* seller="0x123...abc"
248
+
* // user will only be able to pay with these tokens
0 commit comments