Skip to content

Commit

Permalink
Adyen: Add inlineUpdateKey to credential config (#234)
Browse files Browse the repository at this point in the history
* Adyen: Add inlineUpdateKey to credential config

* update config generator
  • Loading branch information
fobilow authored Jan 20, 2025
1 parent eab8073 commit 2f4fb89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connectorconfig/adyen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type AdyenCredentials struct {
ApiKey *string `json:"apiKey" yaml:"apiKey" validate:"required"`
ApiPrefix string `json:"apiPrefix" yaml:"apiPrefix" validate:"required"`
HMACKey *string `json:"hmacKey" yaml:"hmacKey" validate:"required"`
InlineUpdateKey *string `json:"inlineUpdateKey" yaml:"inlineUpdateKey" validate:"required"`
GooglePay *GooglePayCredentials `json:"googlePay,omitempty" yaml:"googlePay,omitempty"`
ApplePay *ApplePayCredentials `json:"applePay,omitempty" yaml:"applePay,omitempty"`
}
Expand All @@ -39,7 +40,7 @@ func (c *AdyenCredentials) GetSupportedTypes() []LibraryType {
}

func (c *AdyenCredentials) GetSecureFields() []*string {
return []*string{c.ApiKey}
return []*string{c.ApiKey, c.InlineUpdateKey}
}

func (c *AdyenCredentials) Validate() error {
Expand Down
1 change: 1 addition & 0 deletions utils/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func buildSpec(conf Template) (object.Specification, error) {
ApiKey: &chg,
ApiPrefix: chg,
HMACKey: &chg,
InlineUpdateKey: &chg,
})
return connector.Connector{Library: string(connectorconfig.LibraryAdyen), Configuration: j}, nil
case confConnAuthorize:
Expand Down

0 comments on commit 2f4fb89

Please sign in to comment.