Skip to content

Latest commit

 

History

History
140 lines (93 loc) · 3.57 KB

File metadata and controls

140 lines (93 loc) · 3.57 KB

list

List payment method domains

Lists the details of existing payment method domains.

API Endpoint: GET /v1/payment_method_domains

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_method_domain.list()

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_method_domain.list()

get

Retrieve a payment method domain

Retrieves the details of an existing payment method domain.

API Endpoint: GET /v1/payment_method_domains/{payment_method_domain}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_method_domain.get(payment_method_domain="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_method_domain.get(payment_method_domain="string")

create

Create a payment method domain

Creates a payment method domain.

API Endpoint: POST /v1/payment_method_domains

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_method_domain.create(domain_name="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_method_domain.create(domain_name="string")

update

Update a payment method domain

Updates an existing payment method domain.

API Endpoint: POST /v1/payment_method_domains/{payment_method_domain}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_method_domain.update(payment_method_domain="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_method_domain.update(payment_method_domain="string")

validate

Validate an existing payment method domain

Some payment methods might require additional steps to register a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain. The payment method doesn’t appear in Elements or Embedded Checkout for this domain until it is active.

To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.

Related guides: Payment method domains.

API Endpoint: POST /v1/payment_method_domains/{payment_method_domain}/validate

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.payment_method_domain.validate(payment_method_domain="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.payment_method_domain.validate(payment_method_domain="string")