我需要创建系统来汇总来自authorize.net的一些信息。交易历史,更准确。但我需要接收不是来自我帐户的交易记录。 PayPal拥有"第三方权限"功能,非常适合我的需求。在authorize.net中怎么样?如何查看其他帐户的交易记录(如果需要,可以获得他的许可)?它原则上可能吗?
答案 0 :(得分:0)
您可以在此处使用交易详情API:http://developer.authorize.net/api/transaction_details/(此处更多信息:http://www.authorize.net/support/ReportingGuide_XML.pdf)
C#示例:
//open a call to the Gateway
var gate = new ReportingGateway("YOUR_API_LOGIN", "YOUR_TRANSACTION_KEY");
//Get all the batches settled
var batches = gate.GetSettledBatchList();
Console.WriteLine("All Batches in the last 30 days");
//Loop each batch returned
foreach (var item in batches) {
Console.WriteLine("Batch ID: {0}, Settled On : {1}", item.ID,
item.SettledOn.ToShortDateString());
}
Console.WriteLine("*****************************************************");
Console.WriteLine();
//get all Transactions for the last 30 days
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());
}
要使用它,需要在商家帐户上授权TransactionDetails API: