paymentmethoddomain

package
v79.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package paymentmethoddomain provides the /payment_method_domains APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Retrieves the details of an existing payment method domain.

func New

Creates a payment method domain.

func Update

Updates an existing payment method domain.

func Validate

Some payment methods such as Apple Pay require additional steps to verify 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 for this domain until it is active.

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

Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /payment_method_domains APIs.

func (Client) Get

Retrieves the details of an existing payment method domain.

func (Client) List

func (c Client) List(listParams *stripe.PaymentMethodDomainListParams) *Iter

Lists the details of existing payment method domains.

func (Client) New

Creates a payment method domain.

func (Client) Update

Updates an existing payment method domain.

func (Client) Validate

Some payment methods such as Apple Pay require additional steps to verify 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 for this domain until it is active.

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

Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for payment method domains.

func List

Lists the details of existing payment method domains.

func (*Iter) PaymentMethodDomain

func (i *Iter) PaymentMethodDomain() *stripe.PaymentMethodDomain

PaymentMethodDomain returns the payment method domain which the iterator is currently pointing to.

func (*Iter) PaymentMethodDomainList

func (i *Iter) PaymentMethodDomainList() *stripe.PaymentMethodDomainList

PaymentMethodDomainList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL