stripe

package
v0.0.0-...-9d843bf Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompleteStripeCheckoutSessionResponse

type CompleteStripeCheckoutSessionResponse struct {
	Name          string  `json:"name"`
	Description   string  `bson:"description" json:"description"`
	Price         float64 `bson:"price" json:"price"`
	PriceCurrency string  `bson:"price_currency" json:"price_currency"`
	PayFrequency  int8    `bson:"pay_frequency" json:"pay_frequency"`
	SessionID     string  `json:"session_id"`
	PaymentStatus string  `json:"payment_status"`
	Status        string  `json:"status"`
}

type StripePaymentProcessorController

type StripePaymentProcessorController interface {
	Webhook(ctx context.Context, header string, b []byte) error
	CreateStripeCheckoutSessionURLForComicSubmissionID(ctx context.Context, comicSubmissionID primitive.ObjectID) (string, error)
}

type StripePaymentProcessorControllerImpl

type StripePaymentProcessorControllerImpl struct {
	Config                *config.Conf
	Logger                *slog.Logger
	UUID                  uuid.Provider
	S3                    s3_storage.S3Storager
	Password              password.Provider
	Emailer               mg.Emailer
	TemplatedEmailer      templatedemailer.TemplatedEmailer
	PaymentProcessor      pm.PaymentProcessor
	Kmutex                kmutex.Provider
	DbClient              *mongo.Client
	StoreStorer           org_s.StoreStorer
	UserStorer            user_s.UserStorer
	ReceiptStorer         r_s.ReceiptStorer
	OfferStorer           offer_s.OfferStorer
	EventLogStorer        eventlog_s.EventLogStorer
	ComicSubmissionStorer submission_s.ComicSubmissionStorer
	UserPurchaseStorer    up_s.UserPurchaseStorer
}

func (*StripePaymentProcessorControllerImpl) CreateStripeCheckoutSessionURLForComicSubmissionID

func (impl *StripePaymentProcessorControllerImpl) CreateStripeCheckoutSessionURLForComicSubmissionID(ctx context.Context, comicSubmissionID primitive.ObjectID) (string, error)

func (*StripePaymentProcessorControllerImpl) Webhook

func (impl *StripePaymentProcessorControllerImpl) Webhook(ctx context.Context, header string, b []byte) error

Jump to

Keyboard shortcuts

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