Documentation ¶
Index ¶
- Constants
- func GenerateHashHMACSHA256(randomKey, uriPath, requestBody, secretKey string) string
- func JsonEncode(jsonObject map[string]interface{}) (string, error)
- func NewJsonBuilder() *jsonBuilder
- func NewRequestStringBuilder() *requestStringBuilder
- func RandString(n int) string
- type RequestConvertible
Constants ¶
View Source
const ( PHYSICAL = "PHYSICAL" VIRTUAL = "VIRTUAL" )
Basket item types
View Source
const ( TL = "TRY" EUR = "EUR" USD = "USD" GBP = "GBP" IRR = "IRR" NOK = "NOK" RUB = "RUB" CHF = "CHF" )
Currency
View Source
const ( TR = "tr" EN = "en" )
Locale
View Source
const ( MOBILE = "MOBILE" WEB = "WEB" MOBILE_WEB = "MOBILE_WEB" MOBILE_IOS = "MOBILE_IOS" MOBILE_ANDROID = "MOBILE_ANDROID" MOBILE_WINDOWS = "MOBILE_WINDOWS" MOBILE_TABLET = "MOBILE_TABLET" MOBILE_PHONE = "MOBILE_PHONE" )
Payment channels
View Source
const ( PRODUCT = "PRODUCT" LISTING = "LISTING" SUBSCRIPTION = "SUBSCRIPTION" )
Payment groups
View Source
const SINGLE_INSTALLMENT = "1"
Variables ¶
This section is empty.
Functions ¶
func GenerateHashHMACSHA256 ¶
func JsonEncode ¶
func NewJsonBuilder ¶
func NewJsonBuilder() *jsonBuilder
func NewRequestStringBuilder ¶
func NewRequestStringBuilder() *requestStringBuilder
func RandString ¶
Types ¶
type RequestConvertible ¶
Click to show internal directories.
Click to hide internal directories.