【问题标题】:Get someone else's transaction history on authorize.net在 authorize.net 上获取其他人的交易历史
【发布时间】:2015-07-02 23:07:06
【问题描述】:

我需要创建系统来聚合来自 authorize.net 的一些信息。交易历史,更准确地说。但我需要不是从我的帐户接收交易历史记录。 PayPal 具有“第三方权限”功能,非常适合我的需求。在 authorize.net 中呢?我怎样才能看到其他账户的交易历史(如果需要,在他的许可下)?原则上可以吗?

【问题讨论】:

    标签: authorize.net


    【解决方案1】:

    您在此处使用交易详情 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 需要在商家账户上授权:

    1. https://account.authorize.net登录商户界面
    2. 单击主工具栏中的帐户
    3. 单击常规安全设置部分中的事务详细信息 API
    4. 在提供的字段中输入您对秘密问题的秘密答案
    5. 点击启用交易详情 API

    【讨论】:

    • 谢谢,但我应该获取其他人的凭据并将其保存在我的服务器中。它不安全。我想要不传输凭据的解决方案。
    • 您需要凭据才能告诉 Authorize.NET 的服务器您有权使用 API。如果您没有凭据,他们向您发送任何东西都是不安全的。
    • @JenR 是正确的。您可能想在产品创意论坛上发布建议以添加对第三方或 OAuth 类型解决方案的支持:community.developer.authorize.net/t5/Ideas/idb-p/ideas
    猜你喜欢
    • 2021-12-28
    • 1970-01-01
    • 2012-04-26
    • 2011-08-30
    • 1970-01-01
    • 2018-11-08
    • 1970-01-01
    • 2013-07-01
    • 2023-03-14
    相关资源
    最近更新 更多