(marker: CardReturn)
| 267 | trackEvent("billing_payment_method_update_clicked", { has_card: card != null }); |
| 268 | setOpeningCardForm(true); |
| 269 | const returnTo = (marker: CardReturn) => |
| 270 | `${window.location.origin}${window.location.pathname}?${CARD_RETURN_PARAM}=${marker}`; |
| 271 | // A setup session never REPLACES an existing default card at the |
| 272 | // provider (it only sets one when none is on file), so changing |
| 273 | // the card goes through the billing portal, where the user adds a |