components/VueStripeLinkSignupElement.ts

vue-stripe · packages/vue-stripe/src/components/VueStripeLinkSignupElement.ts · typescript · MIT
payments

Vue wrapper for Stripe Link Signup element, enabling customer sign‑up via Stripe Link.

// Source: https://github.com/vue-stripe/vue-stripe | License: MIT | Copyright 2021-2026 Jofferson Ramirez Tiquez
// Provided via justclaw.it.com; keep this notice with the code.
import type { StripeLinkSignupElement, StripeLinkSignupElementOptions } from '@stripe/stripe-js'
import type { ElementTypeEvent, LoadErrorEvent, LoadStartEvent } from '../utils/element-factory'
import { createStripeElement, pick } from '../utils/element-factory'

type LinkSignupEvents = {
  ready: [element: StripeLinkSignupElement]
  focus: ElementTypeEvent<'linkSignup'>
  blur: ElementTypeEvent<'linkSignup'>
  escape: ElementTypeEvent<'linkSignup'>
  loaderstart: LoadStartEvent<'linkSignup'>
  loaderror: LoadErrorEvent<'linkSignup'>
}

/**
 * Link Signup Element (Stripe beta): offers to save the customer's detail

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key