Documentation ¶
Index ¶
- Variables
- func Configure(a core.App, acquirer_token string, auth_acquirer_token string)
- func CreateBranch(session_token string) (string, error)
- func CreateOffer(branch_id, session_token string) (string, error)
- func GenMD5Hash() string
- func RequestDeeplink(branch_id, offer_id, session_token, request_id string) (string, error)
- func RequestSessionToken() (string, error)
- type DeepLinkData
- type DiyaData
- type DiyaDeepLinkRes
- type IDRequesData
- type TokenRequesData
Constants ¶
This section is empty.
Variables ¶
View Source
var ACQUIRER_TOKEN string
View Source
var AUTH_ACQUIRER_TOKEN string
View Source
var App core.App
View Source
var URL = "api2s.diia.gov.ua"
Functions ¶
func CreateBranch ¶
func CreateOffer ¶
func GenMD5Hash ¶
func GenMD5Hash() string
func RequestDeeplink ¶
func RequestSessionToken ¶
Types ¶
type DeepLinkData ¶
type DeepLinkData struct {
Deeplink string `json:"deeplink"`
}
type DiyaDeepLinkRes ¶
type IDRequesData ¶
type IDRequesData struct {
ID string `json:"_id"`
}
type TokenRequesData ¶
type TokenRequesData struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.