コード例 #1
0
        public void getLists()
        {
            string url = "https://sandbox-api.payhub.com/api/v2/";
            string oauth = "2a5d6a73-d294-4fba-bfba-957a4948d4a3";

            Merchant merchant = new Merchant();
            merchant.organization_id = 10074;
            merchant.terminal_id = 134;

            TransactionManager transaction = new TransactionManager(url, oauth, merchant);
            // debug and see the result list for each transaction
            var sales = transaction.getAllSalesInformation();
            var auths = transaction.getAllAuthOnlyInformation();
            var caps = transaction.getAllCaptureInformation(0,100);
            var voids = transaction.getAllVoidResponseInformation(0,100);
            var refunds = transaction.getAllRefundInformation(0,100);

            var a = transaction.getAllBillForSaleInformation(0,100);
            var b = transaction.getAllBillForRecurringBillInformation(0,100);
            var c = transaction.getAllCardDataInformation(0,100);
            var d = transaction.getAllCustomerForRecurringBillInformation(0,100);
            var e = transaction.getAllCustomerForSalesInformation(0,100);
            var f = transaction.getAllMerchantInformation(0,100);
        }