Documentation ¶
Index ¶
- func SetValue(statuscode int) string
- type CallbackResponse
- type RequestToken
- type RequestTokenResponse
- type ReverseTransaction
- type ReverseTransactionResponse
- type SamanConfig
- func (config *SamanConfig) GetTokenRequest(resnum string, transaction_key int, amount int, callback_url string, ...) (*RequestTokenResponse, error)
- func (config *SamanConfig) ReverseTransactionRequest(transaction_key int, refnum string) (*ReverseTransactionResponse, error)
- func (config *SamanConfig) VerifyTransactionRequest(transaction_key int, refnum string) (*VerifyTransactionResponse, error)
- type VerifyInfo
- type VerifyTransaction
- type VerifyTransactionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallbackResponse ¶
type CallbackResponse struct { MID string `json:"MID"` State string `json:"State"` Status int `json:"Status"` RRN string `json:"RRN"` RefNum string `json:"RefNum"` ResNum string `json:"ResNum"` TerminalId int `json:"TerminalId"` TraceNo string `json:"TraceNo"` Amount int `json:"Amount"` Wage string `json:"Wage"` SecurePan string `json:"SecurePan"` }
type RequestToken ¶
type RequestTokenResponse ¶
type ReverseTransaction ¶
type ReverseTransactionResponse ¶
type ReverseTransactionResponse struct { VerifyInfo VerifyInfo `json:"TransactionDetail"` ResultCode int `json:"ResultCode"` ResultDescription string `json:"ResultDescription"` Success bool `json:"Success"` }
type SamanConfig ¶
type SamanConfig struct {
TerminalId int `json:"TerminalId"`
}
func (*SamanConfig) GetTokenRequest ¶
func (config *SamanConfig) GetTokenRequest(resnum string, transaction_key int, amount int, callback_url string, payer_phone string) (*RequestTokenResponse, error)
func (*SamanConfig) ReverseTransactionRequest ¶
func (config *SamanConfig) ReverseTransactionRequest(transaction_key int, refnum string) (*ReverseTransactionResponse, error)
func (*SamanConfig) VerifyTransactionRequest ¶
func (config *SamanConfig) VerifyTransactionRequest(transaction_key int, refnum string) (*VerifyTransactionResponse, error)
type VerifyInfo ¶
type VerifyInfo struct { ReferenceNumber string `json:"RRN"` RefNum string `json:"RefNum"` MaskedPan string `json:"MaskedPan"` HashedPan string `json:"HashedPan"` TerminalId int `json:"TerminalNumber"` Amount int `json:"OrginalAmount"` AffectiveAmount int `json:"AffectiveAmount"` StraceDate string `json:"StraceDate"` TraceNo string `json:"StraceNo"` }
type VerifyTransaction ¶
type VerifyTransactionResponse ¶
type VerifyTransactionResponse struct { VerifyInfo VerifyInfo `json:"TransactionDetail"` ResultCode int `json:"ResultCode"` ResultDescription string `json:"ResultDescription"` Success bool `json:"Success"` }
Click to show internal directories.
Click to hide internal directories.