paymentsource

package
v72.87.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package paymentsource provides the /customers/{customer}/sources APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes a payment source.

func Get

Get returns the details of a payment source.

func New

New creates a new payment source.

func Update

Update updates a payment 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 /customers/{customer}/sources APIs.

func (Client) Del

Del removes a payment source.

func (Client) Get

Get returns the details of a payment source.

func (Client) List

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

List returns a list of payment sources.

func (Client) New

New creates a new payment source.

func (Client) Update

Update updates a payment source's properties.

func (Client) Verify

func (c 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 payment sources.

func List

func List(params *stripe.SourceListParams) *Iter

List returns a list of payment sources.

func (*Iter) PaymentSource

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

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

func (*Iter) SourceList

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

SourceList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

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