Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownType = errors.New("unknown type") ErrUnknownSource = errors.New("unknown source") )
View Source
var ErrUnknownPayload = errors.New("unknown payload")
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(client cloudevents.Client, serverKey string) *Handler
func (*Handler) PayAccountNotification ¶
func (h *Handler) PayAccountNotification() http.HandlerFunc
func (*Handler) PaymentNotification ¶
func (h *Handler) PaymentNotification() http.HandlerFunc
func (*Handler) RecurringNotification ¶
func (h *Handler) RecurringNotification() http.HandlerFunc
type Payload ¶
type Payload struct { PaymentType string `json:"payment_type"` OrderID string `json:"order_id"` StatusCode string `json:"status_code"` GrossAmount string `json:"gross_amount"` SignatureKey string `json:"signature_key"` TransactionStatus string `json:"transaction_status"` FraudStatus string `json:"fraud_status"` // #permata-virtual-account PermataVANumber string `json:"permata_va_number"` // com.midtrans.bank_transfer VANumbers []struct { VANumber string `json:"va_number"` Bank string `json:"bank"` } `json:"va_numbers"` // com.midtrans.cstore Store string `json:"store"` }
Click to show internal directories.
Click to hide internal directories.