Documentation
¶
Index ¶
- Constants
- type Handler
- func (handler *Handler) DecryptMessage() (string, error)
- func (handler *Handler) Fail(message string)
- func (handler *Handler) GetMessage() (notify *request.RequestNotify, err error)
- func (handler *Handler) RespondWith(attributes *object.StringMap, sign bool) *Handler
- func (handler *Handler) Strict(result interface{})
- func (handler *Handler) ToResponse() (response *response2.HttpResponse, err error)
- type Paid
- type Refund
- type Scanned
Constants ¶
View Source
const FAIL = "FAIL"
View Source
const SUCCESS = "SUCCESS"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
App *kernel.ApplicationPaymentInterface
Message *request.RequestNotify
Attributes *object.StringMap
Check bool
Sign bool
ExternalRequest *http.Request
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(app *kernel.ApplicationPaymentInterface, r *http.Request) *Handler
func (*Handler) DecryptMessage ¶
func (*Handler) GetMessage ¶
func (handler *Handler) GetMessage() (notify *request.RequestNotify, err error)
func (*Handler) RespondWith ¶
func (*Handler) ToResponse ¶
func (handler *Handler) ToResponse() (response *response2.HttpResponse, err error)
type Paid ¶
type Paid struct {
*Handler
}
func NewPaidNotify ¶
func NewPaidNotify(app kernel.ApplicationPaymentInterface, request *http.Request) *Paid
func (*Paid) Handle ¶
func (comp *Paid) Handle(closure func(message *request.RequestNotify, transaction *models.Transaction, fail func(message string)) interface{}) (*response.HttpResponse, error)
type Refund ¶
type Refund struct {
*Handler
}
func NewRefundNotify ¶
func NewRefundNotify(app kernel.ApplicationPaymentInterface, request *http.Request) *Refund
type Scanned ¶
type Scanned struct {
*Handler
// contains filtered or unexported fields
}
func NewScannedNotify ¶
func NewScannedNotify(app kernel.ApplicationPaymentInterface, request *http.Request) *Scanned
func (*Scanned) Handle ¶
func (comp *Scanned) Handle(closure func(message *request.RequestNotify, fail func(message string), alert func(message string)) interface{}) (*response.HttpResponse, error)
Click to show internal directories.
Click to hide internal directories.