Documentation ¶
Index ¶
- Variables
- type CheckOutItem
- type Data
- type Details
- type Hipay
- type HipayCheckoutGetResponse
- type HipayCheckoutRequest
- type HipayCheckoutResponse
- type HipayPaymentCorrectionRequest
- type HipayPaymentCorrectionResponse
- type HipayPaymentGetResponse
- type HipayStatementRequest
- type HipayStatementResponse
- type List
- type Signal
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HipayCheckout = utils.API{ Url: "/checkout", Method: http.MethodPost, } HipayCheckoutGet = utils.API{ Url: "/checkout/get/", Method: http.MethodGet, } HipayPaymentGet = utils.API{ Url: "/payment/get/", Method: http.MethodGet, } HipayPaymentCorrection = utils.API{ Url: "/pos/correction", Method: http.MethodPost, } HipayStatement = utils.API{ Url: "/pos/statement", Method: http.MethodPost, } )
Functions ¶
This section is empty.
Types ¶
type CheckOutItem ¶
type Hipay ¶
type Hipay interface { Checkout(amount float64) (HipayCheckoutResponse, error) CheckoutGet(checkoutId string) (HipayCheckoutGetResponse, error) PaymentGet(paymentId string) (HipayPaymentGetResponse, error) PaymentCorrection(paymentId string) (HipayPaymentCorrectionResponse, error) Statement(date string) (HipayStatementResponse, error) }
type HipayCheckoutGetResponse ¶
type HipayCheckoutGetResponse struct { Code int64 `json:"code"` Description string `json:"description"` Amount float64 `json:"amount,omitempty"` Currency string `json:"currency,omitempty"` DiscountAmount float64 `json:"discount_amount,omitempty"` Status string `json:"status,omitempty"` StatusDate string `json:"status_date,omitempty"` PaymentID string `json:"paymentId,omitempty"` Details []*Details `json:"details,omitempty"` }
type HipayCheckoutRequest ¶
type HipayCheckoutResponse ¶
type HipayCheckoutResponse struct { Code int64 `json:"code"` Description string `json:"description"` RequestID string `json:"requestId"` CheckoutID string `json:"checkoutId"` Expires string `json:"expires"` Signal *Signal `json:"signal,omitempty"` QrData string `json:"qrData"` Details []*Details `json:"details,omitempty"` }
type HipayPaymentGetResponse ¶
type HipayPaymentGetResponse struct { Code int64 `json:"code"` Description string `json:"description"` ID string `json:"id,omitempty"` Amount string `json:"amount,omitempty"` Currency string `json:"currency,omitempty"` EntityID string `json:"entityId,omitempty"` CheckoutID string `json:"checkoutId,omitempty"` PaymentID string `json:"paymentId,omitempty"` PaymentType string `json:"paymentType,omitempty"` PaymentBrand string `json:"paymentBrand,omitempty"` PaymentDate string `json:"paymentDate,omitempty"` PaymentDesc string `json:"paymentDesc,omitempty"` ResultDesc string `json:"result_desc,omitempty"` ResultCode string `json:"result_code,omitempty"` Details []*Details `json:"details,omitempty"` }
type HipayStatementRequest ¶
type HipayStatementResponse ¶
type List ¶
type List struct { PaymentDate string `json:"paymentDate"` CheckoutID string `json:"checkoutId"` PaymentID string `json:"paymentId"` Amount float64 `json:"amount"` Currency string `json:"currency"` FeeAmount float64 `json:"feeAmount"` FeePrc float64 `json:"feePrc"` PaymentDesc string `json:"paymentDesc"` ReturnAmount float64 `json:"returnAmount"` }
Click to show internal directories.
Click to hide internal directories.