Skip to content

Signature invalid #143

@Soundman32

Description

@Soundman32

I'm trying to call the PaymentsApi.CreatePayment, but I'm getting a response of:

{"response":{"rmsg":"Authentication Failed"}}

Previous calls to CustomerApi and MicroformIntegrationApi with the same Configuration dictionary succeed.

Our Cybersource representative has investigated the logs, and says that the signature is invalid. Obviously, we don't generate the signature, that's handled by the nuget package.

Any idea how to fix?

I've tried the latest versions of the nuget packages, but it's the same result.

           var merchantDictionary = new Dictionary<string, string>
           {
                   // Per company settings
                   { "merchantID", "<THE ID> },
                   { "merchantsecretKey", "<THE SECRET>" },
                   { "merchantKeyId", "<THE KEY ID>" },
                   { "runEnvironment", "apitest.cybersource.com" },
                   //{ "keyAlias", "" },
                   //{ "keyPass", "" },
                   //{ "keyFilename", "" },

                   // Global settings
                   { "authenticationType", "HTTP_SIGNATURE"},
                   { "keysDirectory", "" },
                   { "enableLog", "true" },
                   { "logDirectory", Path.GetFullPath(".") },
                   { "logFileName", "cybersource.log" },
                   { "logFileMaxSize", "5242880"},
                   //{ "timeout", "60000" },
                   //{ "proxyAddress", "" },
                   //{ "proxyPort", "" },
           };
           var cybersourceConfig = new Configuration(merchConfigDictObj: merchantDictionary);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions