Hello,
I am a newbie here so please forgive me if I make any mistakes in adhering to the rules of this forum.
The issue i am facing is :
"Error processing request: E00007 - User authentication failed due to invalid authentication values"
I am using a proper value of API Login Id and Transaction key.
But I get this auth error.
Code sample provided below:
**************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AuthorizeNet;
namespace SampleReporting
{
class Program
{
static void Main(string[] args)
{
var gate = new ReportingGateway("MY API ", "MY Transaction Key");
//Get all the batches settled
var batches = gate.GetSettledBatchList(); //<--- The code fails here
Console.WriteLine("All Batches in the last 30 days");
foreach (var item in batches)
{
Console.WriteLine("Batch ID: {0}, Settled On : {1}", item.ID, item.SettledOn.ToShortDateString());
}
Console.WriteLine("*****************************************************");
Console.WriteLine();
var transactions = gate.GetTransactionList();
foreach (var item in transactions)
{
Console.WriteLine("Transaction {0}: Card: {1} for {2} on {3}", item.TransactionID, item.CardNumber, item.SettleAmount.ToString("C"), item.DateSubmitted.ToShortDateString());
}
Console.Read();
}
}
}
*******************************************************
I am using Visula Studio and creating a console application in C# for the above code.
I have also referenced the AuthorizeNet.dll in my solution.
Any help will be highly appreciated.
Thanks in Advance!!!