paymentsource

package
v10.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package paymentsource provides the /sources APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes a source. For more details see https://stripe.com/docs/api#delete_source.

func Get

Get returns the details of a source. For more details see https://stripe.com/docs/api#retrieve_source.

func New

New POSTs new sources for a customer. For more details see https://stripe.com/docs/api#create_source.

func Update

Update updates a source's properties. For more details see https://stripe.com/docs/api#update_source.

func Verify

func Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)

Verify verifies a bank account For more details see https://stripe.com/docs/guides/ach-beta

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /sources APIs.

func (Client) Del

func (Client) Get

func (Client) List

func (s Client) List(params *stripe.SourceListParams) *Iter

func (Client) New

func (Client) Update

func (Client) Verify

func (s Client) Verify(id string, params *stripe.SourceVerifyParams) (*stripe.PaymentSource, error)

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of PaymentSources. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.SourceListParams) *Iter

List returns a list of sources. For more details see https://stripe.com/docs/api#list_sources.

func (*Iter) PaymentSource

func (i *Iter) PaymentSource() *stripe.PaymentSource

PaymentSource returns the most recent PaymentSource visited by a call to Next.

Jump to

Keyboard shortcuts

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