From d84e5b070e3fc98c3954e3ddf6a7a8c8c998bcad Mon Sep 17 00:00:00 2001 From: Jared Hemmings Date: Fri, 19 Dec 2025 15:16:09 +0000 Subject: [PATCH] Add merchant url and descriptor config properties for v1 worldpay connectors --- connectorconfig/worldpay.go | 2 ++ utils/generate.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/connectorconfig/worldpay.go b/connectorconfig/worldpay.go index 998a491..fb7cc4a 100644 --- a/connectorconfig/worldpay.go +++ b/connectorconfig/worldpay.go @@ -24,6 +24,8 @@ type WorldpayCredentials struct { Username *string `json:"username" yaml:"username" validate:"required,gt=0"` Password *string `json:"password" yaml:"password" validate:"required,gt=0"` MerchantID string `json:"merchantID" yaml:"merchantID" validate:"gte=1,lte=50"` + MerchantURL string `json:"merchantURL" yaml:"merchantURL" validate:"-"` + MerchantDescriptor string `json:"merchantDescriptor" yaml:"merchantDescriptor" validate:"-"` ReportGroup string `json:"reportGroup" yaml:"reportGroup" validate:"gte=1,lte=25"` Environment WorldpayEnvironment `json:"environment" yaml:"environment" validate:"oneof=sandbox postlive transactpostlive production productiontransact prelive transactprelive"` CardinalApiIdentifier *string `json:"cardinalApiIdentifier" yaml:"cardinalApiIdentifier" validate:"required"` diff --git a/utils/generate.go b/utils/generate.go index 31363a8..c834f1d 100644 --- a/utils/generate.go +++ b/utils/generate.go @@ -226,6 +226,8 @@ func buildSpec(conf Template) (object.Specification, error) { Username: &chg, Password: &chg, MerchantID: chg, + MerchantURL: chg, + MerchantDescriptor: chg, ReportGroup: chg, Environment: "sandbox", CardinalApiIdentifier: &chg,