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.
Creating a Domain
Section titled “Creating a Domain”Generated domain name
const domain = yield* Stripe.PaymentMethodDomain("checkout");Named domain
const domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com",});Updating a Domain
Section titled “Updating a Domain”const domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com", enabled: false,});Deactivating a Domain
Section titled “Deactivating a Domain”// stack.destroy() / resource removal sets enabled: falseconst domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com",});