Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackSpectrocoin ¶
type CallbackSpectrocoin struct { MerchantID int `json:"merchantId" form:"merchantId"` ApiID int `json:"apiId" form:"apiId"` UserID string `json:"userId" form:"userId"` MerchantApiID string `json:"merchantApiId" form:"merchantApiId"` OrderID string `json:"orderId" form:"orderId"` PayCurrency string `json:"payCurrency" form:"payCurrency"` PayAmount float64 `json:"payAmount" form:"payAmount"` ReceiveCurrency string `json:"receiveCurrency" form:"receiveCurrency"` ReceiveAmount float64 `json:"receiveAmount" form:"receiveAmount"` ReceivedAmount int `json:"receivedAmount" form:"receivedAmount"` Description string `json:"description" form:"description"` OrderRequestID int `json:"orderRequestId" form:"orderRequestId"` Status int `json:"status" form:"status"` Sign string `json:"sign" form:"sign"` }
type Payment ¶
type Payment struct { PaymentSystem PaymentSystem `json:"provider"` MerchantID string `json:"merchant_id"` CartID string `json:"cart_id"` AmountTotal int `json:"amount_total"` Currency string `json:"currency"` Status Status `json:"status"` URL string `json:"url,omitempty"` Coin *Coin `json:"coin,omitempty"` }
type PaymentSystem ¶
type PaymentSystem string
const ( STRIPE PaymentSystem = "stripe" PAYPAL PaymentSystem = "paypal" SPECTROCOIN PaymentSystem = "spectrocoin" )
type Status ¶
type Status string
func StatusPayment ¶
func StatusPayment(system PaymentSystem, status string) Status
StatusPayment is ...
Click to show internal directories.
Click to hide internal directories.