token

package
v72.64.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 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