token

package
v72.95.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 2 Imported by: 3

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)

Get returns the details of a token.

func New

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

New creates a new token.

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)

Get returns the details of a token.

func (Client) New

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

New creates a new token.

Jump to

Keyboard shortcuts

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