Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardDetail ¶
type CardDetail struct { CardNumber string `json:"card_number"` CardExpirationDate string `json:"card_expiration_date"` }
CardDetail represent the values of customer card
type DetailOutput ¶
type DetailOutput struct { Amount int `json:"amount"` CommerceCode string `json:"commerce_code"` BuyOrder string `json:"buy_order"` AuthorizationCode string `json:"authorization_code"` PaymentTypeCode string `json:"payment_type_code"` ResponseCode string `json:"response_code"` }
DetailOutput represent transaction details values
type InitTransaction ¶
type InitTransaction struct { Amount int `json:"amount"` SessionID string `json:"session_id"` ReturnURL string `json:"return_url"` FinalURL string `json:"final_url,omitempty"` BuyOrder string `json:"buy_order"` Stores *[]Store `json:"stores"` WPMDetail *WPMDetail `json:"wpm_detail"` }
InitTransaction represents the "initTransactionRequest" to SOAP server webpay plus normal, its the base params to use on plus services
type InitTransactionResponse ¶
InitTransactionResponse represents the "initTransactionResponse" from SOAP server
type OneCLick ¶
type OneCLick interface { InitInscription(params interface{}) FinishInscription(token string) Authorize(params interface{}) ReverseTransaction(buyorder string) RemoveUser(tbkUser string, username string) }
OneCLick WIP: define all OneCLick service methods
type OneCLickMall ¶
type OneCLickMall interface{}
OneCLickMall WIP: represents the "initTransactionRequest" to SOAP server webpay plus normal
type Store ¶
type Store struct { CommerceCode string `json:"commerce_code"` Amount int `json:"amount"` BuyOrder string `json:"buy_order"` }
Store WIP: ...
type Transaction ¶
type Transaction interface { InitTransaction(params InitTransaction) (*InitTransactionResponse, error) GetTransactionResult(token string) (*TransactionResultResponse, error) }
type TransactionResultResponse ¶
type TransactionResultResponse struct { AccountingDate string `json:"accounting_date"` BuyOrder string `json:"buy_order"` CardDetail CardDetail `json:"card_detail"` DetailOutput DetailOutput `json:"detail_output"` SessionID string `json:"session_id"` TransactionDate string `json:"transaction_date"` URLRedirection string `json:"url_redirection"` VCI string `json:"vci"` }
TransactionResultResponse represents the "getTransactionResultResponse" SOAP server response
type WPMDetail ¶
type WPMDetail struct { ServiceID string `json:"service_id"` CardHolderID string `json:"card_holder_id"` CardHolderName string `json:"card_holder_name"` CardHolderLastName1 string `json:"card_holder_last_name_1"` CardHolderLastName2 string `json:"card_holder_last_name_2"` CardHolderMail string `json:"card_holder_mail"` CellPhoneNumber string `json:"cell_phone_number"` ExpirationDate string `json:"expiration_date"` CommerceMail string `json:"commerc_mail"` UfFlag bool `json:"uf_flag"` }
WPMDetail respresent the "WPMDetail" with user's inscription data