controller

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 AddDefaultPayment

func AddDefaultPayment(c echo.Context) (err error)

* * controller for payment

func CheckCustomer

func CheckCustomer(billing *models.Billing) (customer_id *stripe.Customer, err error)

* * Get or create customer. Use billing informations. * return stripe Customer

func GetPaymentMethod

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

* * get payment method from stripe api via customer id and given type

func PaymentIntentCard

func PaymentIntentCard(c echo.Context) (err error)

func PaymentIntentIBAN

func PaymentIntentIBAN(c echo.Context) (err error)

func Subscription

func Subscription(c echo.Context) (err error)

func SuccessPayment

func SuccessPayment(c echo.Context) (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