Update Payment VA
This commit is contained in:
@@ -35,6 +35,7 @@ type Config struct {
|
||||
Discovery Discovery `mapstructure:"discovery"`
|
||||
Order Order `mapstructure:"order"`
|
||||
FeatureToggle FeatureToggle `mapstructure:"feature_toggle"`
|
||||
LinkQu LinkQu `mapstructure:"linkqu"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package config
|
||||
|
||||
type LinkQu struct {
|
||||
BaseURL string `mapstructure:"base_url"`
|
||||
ClientID string `mapstructure:"client_id"`
|
||||
ClientSecret string `mapstructure:"client_secret"`
|
||||
SignatureKey string `mapstructure:"signature_key"`
|
||||
Username string `mapstructure:"username"`
|
||||
PIN string `mapstructure:"pin"`
|
||||
CallbackURL string `mapstructure:"callback_url"`
|
||||
}
|
||||
|
||||
type LinkQuConfig interface {
|
||||
LinkQuBaseURL() string
|
||||
LinkQuClientID() string
|
||||
LinkQuClientSecret() string
|
||||
LinkQuSignatureKey() string
|
||||
LinkQuUsername() string
|
||||
LinkQuPIN() string
|
||||
LinkQuCallbackURL() string
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuBaseURL() string {
|
||||
return c.BaseURL
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuClientID() string {
|
||||
return c.ClientID
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuClientSecret() string {
|
||||
return c.ClientSecret
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuSignatureKey() string {
|
||||
return c.SignatureKey
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuUsername() string {
|
||||
return c.Username
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuPIN() string {
|
||||
return c.PIN
|
||||
}
|
||||
|
||||
func (c *LinkQu) LinkQuCallbackURL() string {
|
||||
return c.CallbackURL
|
||||
}
|
||||
Reference in New Issue
Block a user