Documentation ¶
Overview ¶
Package session provides API functions related to checkout sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Get retrieves a session.
func New ¶
func New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
New creates a new session.
Types ¶
type Client ¶
Client is used to invoke /checkout_sessions APIs.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Get retrieves a session.
func (Client) List ¶
func (c Client) List(listParams *stripe.CheckoutSessionListParams) *Iter
List returns a list of sessions.
func (Client) New ¶
func (c Client) New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
New creates a new session.
type Iter ¶
Iter is an iterator for sessions.
func List ¶
func List(params *stripe.CheckoutSessionListParams) *Iter
List returns a list of sessions.
func (*Iter) CheckoutSession ¶
func (i *Iter) CheckoutSession() *stripe.CheckoutSession
CheckoutSession returns the session which the iterator is currently pointing to.
Click to show internal directories.
Click to hide internal directories.