Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

The PaymentMethodDomain object


The PaymentMethodDomain object

Attributes

  • id string Unique identifier for the object.
  • domain _ name string The domain name that this payment method domain object represents.
  • enabled boolean Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.

More attributes

  • object string, value is "payment_method_domain"
  • amazon _ pay object
  • apple _ pay object
  • created timestamp
  • google _ pay object
  • klarna object
  • link object
  • livemode boolean
  • paypal object

The PaymentMethodDomain object

{ "id": "pmd_1Nnrer2eZvKYlo2Cips79tWl", "object": "payment_method_domain", "apple_pay": { "status": "active" }, "created": 1694129445, "domain_name": "example.com", "enabled": true, "google_pay": { "status": "active" }, "link": { "status": "active" }, "livemode": false, "paypal": { "status": "active" }}

Create a payment method domain

POST / v1 / payment_method_domains

Creates a payment method domain.

Parameters

  • domain _ name string Required The domain name that this payment method domain object represents.
  • enabled boolean Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout.

Returns

Returns a payment method domain object.

Response

{ "id": "pmd_1Nnrer2eZvKYlo2Cips79tWl", "object": "payment_method_domain", "apple_pay": { "status": "active" }, "created": 1694129445, "domain_name": "example.com", "enabled": true, "google_pay": { "status": "active" }, "link": { "status": "active" }, "livemode": false, "paypal": { "status": "active" }}

Update a payment method domain

POST / v1 / payment_method_domains /:id

Updates an existing payment method domain.

Parameters

  • enabled boolean Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout.

Returns

Returns the updated payment method domain object.

Response

{ "id": "pmd_1Nnrer2eZvKYlo2Cips79tWl", "object": "payment_method_domain", "apple_pay": { "status": "active" }, "created": 1694129445, "domain_name": "example.com", "enabled": false, "google_pay": { "status": "active" }, "link": { "status": "active" }, "livemode": false, "paypal": { "status": "active" }}
Last verified 2026-09-24

Is this helpful?