paymentsource

package
v61.18.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 4 Imported by: 95

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.

func Get

Get returns the details of a source.

func New

New creates a new source for a customer.

func Update

Update updates a source's properties.

func Verify

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

Verify verifies a source which is used for bank accounts.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /sources APIs.

func (Client) Del

Del removes a source.

func (Client) Get

Get returns the details of a source.

func (Client) List

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

List returns a list of sources.

func (Client) New

New creates a new source for a customer.

func (Client) Update

Update updates a source's properties.

func (Client) Verify

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

Verify verifies a source which is used for bank accounts.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for sources.

func List

func List(params *stripe.SourceListParams) *Iter

List returns a list of sources.

func (*Iter) PaymentSource

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

PaymentSource returns the source which the iterator is currently pointing to.

Jump to

Keyboard shortcuts

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