-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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
Labels
No labels