Skip to content

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.

const pay = yield* Stripe.ApplePayDomain("checkout", {
domainName: "pay.example.com",
});
const pay = yield* Stripe.ApplePayDomain("checkout", {
domainName: "checkout.example.com",
});
// stack.destroy() / resource removal deletes the Apple Pay domain
const pay = yield* Stripe.ApplePayDomain("checkout", {
domainName: "pay.example.com",
});