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 *http.Response, 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 ¶
type Paid ¶
type Paid struct {
*Handler
}
func NewPaidNotify ¶
func NewPaidNotify(app kernel.ApplicationPaymentInterface, request *http.Request) *Paid
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
Click to show internal directories.
Click to hide internal directories.