TypeScript SDK
CheckoutWidget
Widget a prebuilt UI for purchasing a specific token.
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.
You can customize the supported tokens that users can pay with by passing a supportedTokens object to the CheckoutWidget component.
You can customize the UI of the CheckoutWidget component by passing a custom theme object to the theme prop.
Refer to the Theme type for more details.
You can update the title of the widget by passing a title prop to the CheckoutWidget component.
You can customize the wallet connection flow by passing a connectOptions object to the CheckoutWidget component.
Refer to the CheckoutWidgetConnectOptions type for more details.