R/go_to_payments.R

Defines functions go_to_payments

Documented in go_to_payments

#' go_to_payments
#'
#' trigger event to redirect user to Account (payments) page,
#' typically used in an `observeEvent`
#'
#' @importFrom shiny getDefaultReactiveDomain updateQueryString
#'
#' @param session A Shiny session object.
#'
#' @export
#'

go_to_payments <- function(
  session = shiny::getDefaultReactiveDomain()
) {

  shiny::updateQueryString(
    queryString = "?page=payments",
    session = session,
    mode = "push"
  )

  session$reload()
}
Tychobra/polishedpayments documentation built on May 13, 2022, 7:15 p.m.