Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SocialPayInvoicePhone = utils.API{ Url: "/pos/invoice/phone", Method: http.MethodPost, } SocialPayInvoiceQr = utils.API{ Url: "/pos/invoice/qr", Method: http.MethodPost, } SocialPayInvoiceCancel = utils.API{ Url: "/pos/invoice/cancel", Method: http.MethodPost, } SocialPayInvoiceCheck = utils.API{ Url: "/pos/invoice/check", Method: http.MethodPost, } SocialPayPaymentCancel = utils.API{ Url: "/pos/payment/cancel", Method: http.MethodPost, } SocialPayPaymentSettlement = utils.API{ Url: "/pos/settlement", Method: http.MethodPost, } )
SocialPay
Functions ¶
This section is empty.
Types ¶
type SocialPay ¶
type SocialPay interface { InvoicePhone(amount float64, invoice, phone string) (SocialPaySimpleResponse, error) InvoiceQR(amount float64, invoice string) (SocialPaySimpleResponse, error) CheckTransaction(amount float64, invoice string) (SocialPayTransactionResponse, error) CancelInvoice(amount float64, invoice string) (SocialPaySimpleResponse, error) CancelTransaction(amount float64, invoice string) (SocialPayTransactionResponse, error) TransactionSettlement(settlementId string) (SocialPayPaymentSettlementResponse, error) }
type SocialPayErrorResponse ¶
type SocialPaySimpleResponse ¶
type SocialPayTransactionResponse ¶
type SocialPayTransactionResponse struct { ApprovalCode string `json:"approval_code"` Amount float64 `json:"amount"` CardNumber string `json:"card_number"` ResponseDescription string `json:"resp_desc"` ResponseCode string `json:"resp_code"` Terminal string `json:"terminal"` Invoice string `json:"invoice"` Checksum string `json:"checksum"` }
Click to show internal directories.
Click to hide internal directories.