paymentsource

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2015 License: MIT Imports: 4 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

func Del(id string, params *stripe.CustomerSourceParams) error

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.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /sources APIs.

func (Client) Del

func (s Client) Del(id string, params *stripe.CustomerSourceParams) error

func (Client) Get

func (Client) List

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

func (Client) New

func (Client) Update

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