token

package
v13.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package token provides the /tokens APIs

Index

Constants

View Source
const (
	Card stripe.TokenType = "card"
	Bank stripe.TokenType = "bank_account"
	PII  stripe.TokenType = "pii"
)

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. For more details see https://stripe.com/docs/api#retrieve_token.

func New

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

New POSTs a new card or bank account. For more details see https://stripe.com/docs/api#create_card_Token and https://stripe.com/docs/api#create_bank_account_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)

func (Client) New

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

Jump to

Keyboard shortcuts

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