token

package
v66.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 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)

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