Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentProcessor ¶
type PaymentProcessor interface { GetName() string GetProducts() ([]PaymentProcessorProduct, error) GetWebhookSecretKey() string CreateCustomer(fullName, email, descr, shipName, shipPhone, shipCity, shipCountry, shipLine1, shipLine2, shipPostalCode, shipState, billCity, billCountry, billLine1, billLine2, billPostalCode, billState string) (*string, error) UpdateCustomer(customerID, fullName, email, descr, shipName, shipPhone, shipCity, shipCountry, shipLine1, shipLine2, shipPostalCode, shipState, billCity, billCountry, billLine1, billLine2, billPostalCode, billState string) error SetupNewCard(customerID string) (secret *string, err error) CreateSubscriptionCheckoutSessionURL(domain, successURL, canceledURL, customerID, priceID string, metadata map[string]string, customerHasShippingAddress bool) (string, error) CreateOneTimeCheckoutSessionURL(domain, successCallbackURL, canceledCallbackURL, customerID, priceID string, metadata map[string]string, customerHasShippingAddress bool) (string, error) GetCheckoutSession(sessionID string) (*stripe.CheckoutSession, error) GetCheckoutSessionLineItems(sessionID string) ([]*stripe.LineItem, error) GetCustomer(customerID string) (*stripe.Customer, error) ListInvoicesByCustomerID(customerID string) ([]*stripe.Invoice, error) GetPaymentIntent(paymentIntentID string) (*stripe.PaymentIntent, error) GetLatestInvoiceByCustomerID(customerID string) (*stripe.Invoice, error) GetPrice(priceID string) (*stripe.Price, error) }
func NewPaymentProcessor ¶
type PaymentProcessorProduct ¶
PaymentProcessorProduct Structure represents the product that exists on record in the payment processor's database.
Click to show internal directories.
Click to hide internal directories.