Documentation ¶
Overview ¶
Package paymentintent provides API functions related to payment intents.
For more details, see: https://stripe.com/docs/api/go#payment_intents.
Index ¶
- func Cancel(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func Capture(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func Confirm(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func Get(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func New(params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func Update(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (c Client) Capture(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (c Client) Confirm(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (c Client) Get(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (c Client) List(listParams *stripe.PaymentIntentListParams) *Iter
- func (c Client) New(params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- func (c Client) Update(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
func Cancel(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Cancel cancels a payment intent.
func Capture ¶
func Capture(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Capture captures a payment intent.
func Confirm ¶
func Confirm(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Confirm confirms a payment intent.
func Get ¶
func Get(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Get retrieves a payment intent.
func New ¶
func New(params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
New creates a payment intent.
func Update ¶
func Update(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Update updates a payment intent.
Types ¶
type Client ¶
Client is used to invoke APIs related to payment intents.
func (Client) Cancel ¶
func (c Client) Cancel(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Cancel cancels a payment intent.
func (Client) Capture ¶
func (c Client) Capture(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Capture captures a payment intent.
func (Client) Confirm ¶
func (c Client) Confirm(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
Confirm confirms a payment intent.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
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 ¶
func (c Client) New(params *stripe.PaymentIntentParams) (*stripe.PaymentIntent, error)
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 ¶
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.