Link Signup Element

How ngx-stripe and Stripe.js fit together

Happy to help with either — this note just points you to the fastest answer. ngx-stripe wraps Stripe.js for Angular (DI, Observables, CDN loading, Element hosts). Stripe.js owns Element appearance, payment methods, validation copy, and PCI. For styling, placeholders, installments, and Element options, Stripe’s docs are usually the best first stop; for Angular setup and our components, you’re in the right place. See also FAQs, CSP, and Stripe.js.

Collect Link signup details (email / name / phone defaults) next to Payment Element.

Stripe.js type linkSignup, selector ngx-stripe-link-signup, export StripeLinkSignupComponent. Shipped in ngx-stripe 22.9.1.

Options and appearance: Stripe.js documentation.

Requires Link enabled on the Stripe account. Use the same Elements group as Payment Element. Types from @stripe/stripe-js (≥ 9.16).

Set clientSecret on elementsOptions before creating ngx-stripe-elements. Nested Elements cannot update the secret later — wrap the parent in @if. See Elements and Payment Element.

Using the Element

@if (elementsOptions.clientSecret) {
  <ngx-stripe-elements
    [stripe]="stripe"
    [elementsOptions]="elementsOptions"
  >
    <ngx-stripe-link-signup [options]="options" />
  </ngx-stripe-elements>
}