paymentintent

package
v72.97.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 3 Imported by: 28

Documentation

Overview

Package paymentintent provides the /payment_intents APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

Cancel is the method for the `POST /v1/payment_intents/{intent}/cancel` API.

func Capture

Capture is the method for the `POST /v1/payment_intents/{intent}/capture` API.

func Confirm

Confirm is the method for the `POST /v1/payment_intents/{intent}/confirm` API.

func Get

Get returns the details of a payment intent.

func New

New creates a new payment intent.

func Update

Update updates a payment intent's properties.

func VerifyMicrodeposits added in v72.87.0

VerifyMicrodeposits is the method for the `POST /v1/payment_intents/{intent}/verify_microdeposits` API.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /payment_intents APIs.

func (Client) Cancel

Cancel is the method for the `POST /v1/payment_intents/{intent}/cancel` API.

func (Client) Capture

Capture is the method for the `POST /v1/payment_intents/{intent}/capture` API.

func (Client) Confirm

Confirm is the method for the `POST /v1/payment_intents/{intent}/confirm` API.

func (Client) Get

Get returns the details of a payment intent.

func (Client) List

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

List returns a list of payment intents.

func (Client) New

New creates a new payment intent.

func (Client) Search added in v72.97.0

Search returns a search result containing payment intents.

func (Client) Update

func (c Client) Update(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)

Update updates a payment intent's properties.

func (Client) VerifyMicrodeposits added in v72.87.0

func (c Client) VerifyMicrodeposits(id string, params *stripe.PaymentIntentVerifyMicrodepositsParams) (*stripe.PaymentIntent, error)

VerifyMicrodeposits is the method for the `POST /v1/payment_intents/{intent}/verify_microdeposits` API.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for payment intents.

func List

func List(params *stripe.PaymentIntentListParams) *Iter

List returns a list of payment intents.

func (*Iter) PaymentIntent

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

PaymentIntent returns the payment intent which the iterator is currently pointing to.

func (*Iter) PaymentIntentList

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

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

type SearchIter added in v72.97.0

type SearchIter struct {
	*stripe.SearchIter
}

SearchIter is an iterator for payment intents.

Search returns a search result containing payment intents.

func (*SearchIter) PaymentIntent added in v72.97.0

func (i *SearchIter) PaymentIntent() *stripe.PaymentIntent

PaymentIntent returns the payment intent which the iterator is currently pointing to.

func (*SearchIter) PaymentIntentSearchResult added in v72.97.0

func (i *SearchIter) PaymentIntentSearchResult() *stripe.PaymentIntentSearchResult

PaymentIntentSearchResult 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