示例#1
0
        static void Main(string[] args)
        {
            Report report = new Report();

            report.Environment = "TEST";

            RapiResponse response = report.GetTransactionDetailReport(
                "100",          // 'merchantId' - REQUIRED: Merchant ID assigned by maxiPago!  //
                "merchant-key", // 'merchantKey' - REQUIRED: Merchant Key assigned by maxiPago! //
                "392734"        // 'transactionId' - REQUIRED:  Transaction ID created by maxiPago! //
                );

            if (response.Header.ErrorCode == "0")
            {
                // Success
            }
            else
            {
                // Fail
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            Report report = new Report();

            report.Environment = "TEST";

            RapiResponse response = report.GetTransactionDetailReportByOrderId(
                "100",                                // 'merchantId' - REQUIRED: Merchant ID assigned by maxiPago!  //
                "merchant-key",                       // 'merchantKey' - REQUIRED: Merchant Key assigned by maxiPago! //
                "C0A8016E:0143DF410A35:33D0:01A30706" // 'orderId' - REQUIRED:  Order ID created by maxiPago! //
                );

            if (response.Header.ErrorCode == "0")
            {
                // Success
            }
            else
            {
                // Fail
            }
        }
示例#3
0
        static void Main(string[] args)
        {
            Report report = new Report();

            report.Environment = "TEST";

            RapiResponse response = report.GetTransactionDetailReport(
                "100",          // 'merchantId' - REQUIRED: Merchant ID assigned by maxiPago!  //
                "merchant-key", // 'merchantKey' - REQUIRED: Merchant Key assigned by maxiPago! //
                "range",        // 'period' - REQUIRED: Period of search ("today", "yesterday", "range") //
                "100",          // 'pageSize' - Optional: Number of transactions per page. Max of 100 //
                "12/25/2012",   // 'startDate' - REQUIRED if period=range: Start date for filter MM/DD/YYYY //
                "12/30/2012",   // 'endDate' - REQUIRED if period=range: End date for filter MM/DD/YYYY //
                "00:00:00",     // 'startTime' - REQUIRED if period=range - Start time for filter //
                "23:59:59",     // 'endTime' - REQUIRED if period=range - End time for filter //
                null,           // 'orderByName' - Optional: Field to order transactions by ("transactionDate", "status", etc) //
                null,           // 'orderByDirection' - Optional: Direction of order ("asc" or "desc") //
                null,           // 'startRecordNumber' - Optional: '1' by default //
                null            // 'endRecordNumber' - Optional: null by default //
                );

            if (response.Header.ErrorCode == "0")
            {
                if (response.Result.RequestToken == null)
                {
                    // Success
                }
                else
                {
                    // If response.Result.RequestToken != null you must check back later with 'checkRequestStatus'
                }
            }
            else
            {
                // Fail
            }
        }