Skip to content

PaymentMethodDomain

Source: src/Stripe/PaymentMethodDomain.ts

A Stripe Payment Method Domain — a web domain registered so Stripe Elements and Embedded Checkout can show domain-gated payment methods (Apple Pay, Google Pay, Link, PayPal, Klarna, Amazon Pay). enabled updates in place. domainName is create-only and changing it replaces the domain.

Payment method domains have no metadata field and cannot be hard-deleted. Destroying this resource disables it (enabled: false). Disabled domains still occupy their domainName, so a later deploy with the same name re-enables the existing domain.

Generated domain name

const domain = yield* Stripe.PaymentMethodDomain("checkout");

Named domain

const domain = yield* Stripe.PaymentMethodDomain("checkout", {
domainName: "checkout.example.com",
});
const domain = yield* Stripe.PaymentMethodDomain("checkout", {
domainName: "checkout.example.com",
enabled: false,
});
// stack.destroy() / resource removal sets enabled: false
const domain = yield* Stripe.PaymentMethodDomain("checkout", {
domainName: "checkout.example.com",
});