Versions in this module Expand all Collapse all v0 v0.0.1 Jun 13, 2021 Changes in this version + func CreateSignatureHeaders(apiKey string, secretKey string) string + func Sha1(s string) string + func Stringify(m interface{}) string + type Address struct + Address string + City string + CountryCode string + FirstName string + LastName string + Phone string + PostalCode string + type Client struct + APIEnvType Env + APIKey string + LogLevel int + Logger *log.Logger + SecretKey string + func NewClient() Client + func (c *Client) DoRequest(method, path string, body interface{}, v interface{}) error + type CoreGateway struct + Client Client + func (gateway *CoreGateway) CheckStatus(req *RequestCheckStatus) (ResponseCheckStatus, error) + func (gateway *CoreGateway) CheckoutPayment(req *RequestCheckoutPayment) (ResponseCheckoutPayment, error) + func (gateway *CoreGateway) GetInstallment(req *RequestGetInstallment) (ResponseGetInstallment, error) + type CustomerDetail struct + Email string + FirstName string + LastName string + Phone string + type Env int8 + const Production + const Sandbox + func (e Env) String() string + type Error struct + Kind string + Message interface{} + type Item struct + Category string + ID string + ImageURL string + Name string + ParentID string + ParentType string + Price float64 + Quantity int64 + Type string + Url string + type Logger struct + Host string + Method string + Path string + RequestBody interface{} + ResponseBody interface{} + TimeLength int + type Payment struct + Amount float64 + DiscountedMonthlyInstallment float64 + DownPayment float64 + ID string + InstallmentAmount float64 + MerchantDiscountRate float64 + MonthlyInstallment float64 + PaymentType string + Provision float64 + Rate float64 + Tenure int + type RequestCheckStatus struct + MerchantOrderId string + type RequestCheckoutPayment struct + ApprovedNotificationURL string + BackToStoreURL string + BillingAddress *Address + CancellationRedirectURL string + CustomerDetail CustomerDetail + ExpirationAt string + PaymentType string + Seller []Seller + ShippingAddress *Address + TransactionDetail TransactionDetail + type RequestGetInstallment struct + Amount float64 + Items []Item + type RequestNotification struct + Amount float64 + MerchantOrderId string + PaymentType string + TransactionID string + TransactionStatus string + TransactionTime string + type ResponseCheckStatus struct + Amount float64 + EntityID string + FraudStatus string + LegalName string + MerchantOrderID string + Message string + PaymentType string + Status string + TransactionID string + TransactionStatus string + TransactionTime string + type ResponseCheckoutPayment struct + Error Error + RedirectURL string + Status string + TransactionID string + type ResponseGetInstallment struct + Error Error + Payment []Payment + Status string + type Seller struct + Address *Address + Email string + ID string + Name string + SellerIDNumber string + URL string + type TransactionDetail struct + Amount float64 + Items []Item + MerchantOrderId string