To show the past Halliday payment activity of the account in the widget, the user can click or tap the icon at the top right of the widget. This opens the Transactions & activity page of the widget.To directly open this screen in the widget, use the openActivity method.
React
JavaScript
copy
const { openActivity } = useHallidayPayments();// Must be called after openDeposit()/openWithdrawal()<button onClick={openActivity}> Open Activity</button>
copy
const halliday = new HallidayPayments({ /* ... */});// ...button.addEventListener("click", halliday.openActivity);