token

package
v81.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package token provides the /tokens APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.TokenParams) (*stripe.Token, error)

Retrieves the token with the given ID.

func New

func New(params *stripe.TokenParams) (*stripe.Token, error)

Creates a single-use token that represents a bank account's details. You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /tokens APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.TokenParams) (*stripe.Token, error)

Retrieves the token with the given ID.

func (Client) New

func (c Client) New(params *stripe.TokenParams) (*stripe.Token, error)

Creates a single-use token that represents a bank account's details. You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.

Jump to

Keyboard shortcuts

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