paymentintent

package
v72.46.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 3 Imported by: 28

Documentation

Overview

Package paymentintent provides API functions related to payment intents.

For more details, see: https://stripe.com/docs/api/go#payment_intents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

Cancel cancels a payment intent.

func Capture

Capture captures a payment intent.

func Confirm

Confirm confirms a payment intent.

func Get

Get retrieves a payment intent.

func New

New creates a payment intent.

func Update

Update updates a payment intent.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke APIs related to payment intents.

func (Client) Cancel

Cancel cancels a payment intent.

func (Client) Capture

Capture captures a payment intent.

func (Client) Confirm

Confirm confirms a payment intent.

func (Client) Get

Get retrieves 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 payment intent.

func (Client) Update

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

Update updates a payment intent.

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.

Jump to

Keyboard shortcuts

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