Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse represents a response containing an error message.
type PaidOPORequest ¶
type PaidOPORequest struct {
PaymentTrxID string `json:"payment_trx_id,omitempty"`
}
type PaymentHandler ¶
type PaymentHandler struct {
// contains filtered or unexported fields
}
func NewPaymentHandler ¶
func NewPaymentHandler(payment PaymentService) *PaymentHandler
func (*PaymentHandler) Register ¶
func (p *PaymentHandler) Register(r chi.Router)
type PaymentService ¶
type RegisterRequest ¶
type RegisterRequest struct { TransactionDetail struct { TrxID string `json:"trx_id"` FinalAmount float64 `json:"final_amount"` } `json:"transaction_detail"` CustomerDetail struct { Name string `json:"name"` Address string `json:"address"` } `json:"customer_detail"` ItemDetails []struct { ID int64 `json:"id"` Name string `json:"name"` Quantity int64 `json:"quantity"` Price float64 `json:"price"` } `json:"item_details"` }
type RegisterResponse ¶
type RegisterResponse struct { Data struct { PaymentTrxID string `json:"payment_trx_id"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.