stripe

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StripePayments

type StripePayments struct {
	// contains filtered or unexported fields
}

func NewStripePayments added in v0.11.0

func NewStripePayments(client *client.API) *StripePayments

NewStripePayments returns a new StripePayments

func (*StripePayments) CreateCard

func (s *StripePayments) CreateCard(ctx context.Context, customerID string, token string) (*providers.Card, error)

CreateCard creates a card for a customer

func (*StripePayments) CreateCharge

func (s *StripePayments) CreateCharge(ctx context.Context, charge *providers.Charge) (*providers.Charge, error)

CreateCharge charges a customer

func (*StripePayments) CreateCustomer

func (s *StripePayments) CreateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)

CreateCustomer creates a customer

func (*StripePayments) DeleteCard

func (s *StripePayments) DeleteCard(ctx context.Context, customerID string, cardID string) error

func (*StripePayments) DeleteCustomer

func (s *StripePayments) DeleteCustomer(ctx context.Context, id string) error

DeleteCustomer deletes a customer

func (*StripePayments) GetCard

func (s *StripePayments) GetCard(ctx context.Context, customerID string, cardID string) (*providers.Card, error)

GetCard gets a card

func (*StripePayments) GetCharge

func (s *StripePayments) GetCharge(ctx context.Context, id string) (*providers.Charge, error)

GetCharge gets a charge

func (*StripePayments) GetCustomer

func (s *StripePayments) GetCustomer(ctx context.Context, id string) (*providers.Customer, error)

GetCustomer gets a customer

func (*StripePayments) ListCards

func (s *StripePayments) ListCards(ctx context.Context, customerID string) ([]*providers.Card, error)

ListCards lists a customer's cards

func (*StripePayments) ListCharges

func (s *StripePayments) ListCharges(ctx context.Context, customerID string, starting_after string, limit int64) ([]*providers.Charge, error)

ListCharges lists a customer's charges

func (*StripePayments) ListCustomers

func (s *StripePayments) ListCustomers(ctx context.Context, after string, limit int64) ([]*providers.Customer, error)

ListCustomers lists customers

func (*StripePayments) UpdateCustomer

func (s *StripePayments) UpdateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)

UpdateCustomer updates a customer

Jump to

Keyboard shortcuts

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