handler

package
v0.0.0-...-9793867 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmMessage

type ConfirmMessage struct {
	RedirectURL string `json:"redirectUrl"`
	TableID     string `json:"tableId"`
}

type Controller

type Controller struct {
	DB          *gorm.DB
	DebugMode   bool
	PaymentHost string
	PaymentPort int
}

func NewController

func NewController(db *gorm.DB, debugMode bool, paymentHost string, paymentPort int) *Controller

func (*Controller) CreateGroupId

func (ctr *Controller) CreateGroupId() func(ctx iris.Context)

TODO: 決済が終了していない場合のチェック機能

func (*Controller) ExecutePayment

func (ctr *Controller) ExecutePayment() func(ctx iris.Context)

ExecutePayment ...

func (*Controller) GetGroupId

func (ctr *Controller) GetGroupId() func(ctx iris.Context)

func (*Controller) LinepayConfirm

func (ctr *Controller) LinepayConfirm() func(ctx iris.Context)

LinepayConfirm ...

func (*Controller) LinepayReserve

func (ctr *Controller) LinepayReserve() func(ctx iris.Context)

LinepayReserve ...

type LinePayConfirmResponse

type LinePayConfirmResponse struct {
	Err     interface{}     `json:"error"`
	Message *ConfirmMessage `json:"message, omitempty"`
}

type LinePayReserveResponse

type LinePayReserveResponse struct {
	Err     interface{}     `json:"error"`
	Message *ReserveMessage `json:"message,omitempty"`
}

type Message

type Message struct {
	CustomerID  string
	Amount      int `json:"amount"`
	Currency    string
	Description string
	ChargeID    string
}

Message ...

type Payment

type Payment struct {
	Amount  int
	UserID  string
	Token   string
	TableID string
}

Payment ...

type PaymentError

type PaymentError struct {
	StatusCode int    `json:"statusCode"`
	Message    string `json:"message"`
}

PaymentError ...

type PaymentInfo

type PaymentInfo struct {
	Error   interface{}
	Message *Message
}

PaymentInfo ...

type ReserveMessage

type ReserveMessage struct {
	Amount     int    `json:"amount"`
	OrderID    string `json:"orderId"`
	Item       string `json:"item"`
	PaymentURL string `json:"paymentURL"`
}

Jump to

Keyboard shortcuts

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