Skip to main content
The deposit modal is the primary screen of the Halliday SDK widget. Once the SDK is initialized, the deposit modal can be opened at any time using the openDeposit function. The openDeposit function is meant to be called inside of a button click event handler. When the user is ready to make a deposit, they will click or tap a button in the app user interface, which will trigger the deposit modal. For complete example implementations of opening the Halliday SDK deposit widget, see the Payments SDK Example Apps page.

Configuring the Deposit options

Deposit configuration options are part of the Halliday config which is documented on the widget documentation page.

React

With the React SDK, the constant deposit options can be defined in the properties of a HallidayPaymentsProvider.
Connected wallet objects can be passed using the updateWallets function after a user connects their wallet to the app.

JavaScript

Constant deposit options can be passed to the constructor of a HallidayPayments object or passed later using the updateConfig function. Partial configurations are valid for either function.

Opening the Deposit widget

To display the deposit widget, use the openDeposit function.
copy