Stripe.Payment Methods reference
ApplePayDomain
Section titled “ApplePayDomain”Source:
src/Stripe/ApplePayDomain.ts
A Stripe Apple Pay Domain — a hostname registered so Apple Pay can be
offered on that origin. Existence-only: there is nothing to update in
place; changing domainName replaces the registration. Destroy deletes
it.
Apple Pay domains have no metadata. Account-wide list() (nuke)
enumerates every domain on the account.
In test mode, Stripe does not require the Apple domain-association
file. Live mode requires
/.well-known/apple-developer-merchantid-domain-association on the
hostname before registration succeeds.
ApplePayDomain: Registering a Domain
Section titled “ApplePayDomain: Registering a Domain”const pay = yield* Stripe.ApplePayDomain("checkout", { domainName: "pay.example.com",});ApplePayDomain: Replacing a Domain
Section titled “ApplePayDomain: Replacing a Domain”const pay = yield* Stripe.ApplePayDomain("checkout", { domainName: "checkout.example.com",});ApplePayDomain: Deleting a Domain
Section titled “ApplePayDomain: Deleting a Domain”// stack.destroy() / resource removal deletes the Apple Pay domainconst pay = yield* Stripe.ApplePayDomain("checkout", { domainName: "pay.example.com",});PaymentMethodConfiguration
Section titled “PaymentMethodConfiguration”Source:
src/Stripe/PaymentMethodConfiguration.ts
A Stripe Payment Method Configuration — which payment methods Checkout,
PaymentIntents, and SetupIntents show when payment method types are not
set explicitly. name and per-method displayPreference update in
place. parent is create-only and changing it replaces the
configuration.
Payment method configurations have no metadata field and cannot be
hard-deleted. Destroying this resource deactivates it (active: false).
Identity is the Stripe id plus the unique name.
PaymentMethodConfiguration: Creating a Configuration
Section titled “PaymentMethodConfiguration: Creating a Configuration”Named checkout configuration
const checkout = yield* Stripe.PaymentMethodConfiguration("checkout", { name: "Checkout", card: { displayPreference: { preference: "on" } }, link: { displayPreference: { preference: "on" } },});Cards only
const cards = yield* Stripe.PaymentMethodConfiguration("cards", { name: "Cards only", card: { displayPreference: { preference: "on" } }, link: { displayPreference: { preference: "off" } }, applePay: { displayPreference: { preference: "off" } }, googlePay: { displayPreference: { preference: "off" } },});PaymentMethodConfiguration: Updating a Configuration
Section titled “PaymentMethodConfiguration: Updating a Configuration”const checkout = yield* Stripe.PaymentMethodConfiguration("checkout", { name: "Checkout (updated)", card: { displayPreference: { preference: "on" } }, usBankAccount: { displayPreference: { preference: "on" } },});PaymentMethodConfiguration: Deactivating a Configuration
Section titled “PaymentMethodConfiguration: Deactivating a Configuration”// stack.destroy() / resource removal sets active: falseconst checkout = yield* Stripe.PaymentMethodConfiguration("checkout", { name: "Checkout",});PaymentMethodDomain
Section titled “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.
PaymentMethodDomain: Creating a Domain
Section titled “PaymentMethodDomain: Creating a Domain”Generated domain name
const domain = yield* Stripe.PaymentMethodDomain("checkout");Named domain
const domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com",});PaymentMethodDomain: Updating a Domain
Section titled “PaymentMethodDomain: Updating a Domain”const domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com", enabled: false,});PaymentMethodDomain: Deactivating a Domain
Section titled “PaymentMethodDomain: Deactivating a Domain”// stack.destroy() / resource removal sets enabled: falseconst domain = yield* Stripe.PaymentMethodDomain("checkout", { domainName: "checkout.example.com",});RetrieveApplePayDomain
Section titled “RetrieveApplePayDomain”Source:
src/Stripe/RetrieveApplePayDomain.ts
Retrieve a bound Stripe Apple Pay Domain over HTTP.
RetrieveApplePayDomain: Reading an Apple Pay Domain
Section titled “RetrieveApplePayDomain: Reading an Apple Pay Domain”const retrieve = yield* Stripe.RetrieveApplePayDomain(pay);const live = yield* retrieve();RetrieveApplePayDomainHttp
Section titled “RetrieveApplePayDomainHttp”Source:
src/Stripe/RetrieveApplePayDomainHttp.tsKind: Layer · Provides:Stripe.RetrieveApplePayDomain
HTTP implementation of RetrieveApplePayDomain. Provide it on
the Function or Worker Effect.
RetrievePaymentMethodConfiguration
Section titled “RetrievePaymentMethodConfiguration”Source:
src/Stripe/RetrievePaymentMethodConfiguration.ts
Retrieve a bound Stripe Payment Method Configuration over HTTP.
RetrievePaymentMethodConfiguration: Reading a Payment Method Configuration
Section titled “RetrievePaymentMethodConfiguration: Reading a Payment Method Configuration”const retrieve = yield* Stripe.RetrievePaymentMethodConfiguration(checkout);const live = yield* retrieve();RetrievePaymentMethodConfigurationHttp
Section titled “RetrievePaymentMethodConfigurationHttp”Source:
src/Stripe/RetrievePaymentMethodConfigurationHttp.tsKind: Layer · Provides:Stripe.RetrievePaymentMethodConfiguration
HTTP implementation of RetrievePaymentMethodConfiguration.
RetrievePaymentMethodDomain
Section titled “RetrievePaymentMethodDomain”Source:
src/Stripe/RetrievePaymentMethodDomain.ts
Retrieve a bound Stripe Payment Method Domain over HTTP.
RetrievePaymentMethodDomain: Reading a Payment Method Domain
Section titled “RetrievePaymentMethodDomain: Reading a Payment Method Domain”const retrieve = yield* Stripe.RetrievePaymentMethodDomain(domain);const live = yield* retrieve();RetrievePaymentMethodDomainHttp
Section titled “RetrievePaymentMethodDomainHttp”Source:
src/Stripe/RetrievePaymentMethodDomainHttp.tsKind: Layer · Provides:Stripe.RetrievePaymentMethodDomain
HTTP implementation of RetrievePaymentMethodDomain.