stripeapi

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomer

func CreateCustomer(email string, name string, locale string) (cu *stripe.Customer, err error)

func CreatePrice

func CreatePrice(amount int64, pm_id string, interval string) (p *stripe.Price, err error)

func GetCustomerByEmail

func GetCustomerByEmail(email string) (cu *stripe.Customer, err error)

func GetDate

func GetDate() (t time.Time)

func GetPaymentMethod

func GetPaymentMethod(cu_id string, pm_type string) (pm_method *stripe.PaymentMethod, err error)

func SetDefaultPayment

func SetDefaultPayment(cu_id string, pm_id string) (cu *stripe.Customer, err error)

func SetupIntent

func SetupIntent(cu_id string, pm_type string) (co_data *models.CheckoutData, err error)

func SubProduct

func SubProduct(cu_id string, p_id string) (s *stripe.Subscription, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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