Example #1
0
        private void batchInitialize_Click(object sender, RoutedEventArgs e)
        {
            var batchWindow = new batchUploads();

            var auth = new staunchAuthorizeNet();

            staunchAuthorizeNet.BatchResult batchResult = auth.BatchUpload(batchUsername.Text, batchPassword.Text, batchDataBox.Text);

            if (batchResult.success)
            {
                debugApproved.Text    = "Batch Success";
                debugMessage.Text     = batchResult.result;
                debugTransaction.Text = batchResult.id;
                debugAuth.Text        = batchResult.count;
            }
            else
            {
                debugApproved.Text    = "Batch Failed";
                debugMessage.Text     = batchResult.result;
                debugTransaction.Text = "";
                debugAuth.Text        = "";
            }

            batchWindow.Show();
            batchWindow.debugOutput.Text = batchResult.debug;
        }
        private void batchInitialize_Click(object sender, RoutedEventArgs e)
        {
            var batchWindow = new batchUploads();

            var auth = new staunchAuthorizeNet();
            staunchAuthorizeNet.BatchResult batchResult = auth.BatchUpload(batchUsername.Text, batchPassword.Text, batchDataBox.Text);

            if (batchResult.success)
            {
                debugApproved.Text = "Batch Success";
                debugMessage.Text = batchResult.result;
                debugTransaction.Text = batchResult.id;
                debugAuth.Text = batchResult.count;
            }
            else
            {
                debugApproved.Text = "Batch Failed";
                debugMessage.Text = batchResult.result;
                debugTransaction.Text = "";
                debugAuth.Text = "";
            }

            batchWindow.Show();
            batchWindow.debugOutput.Text = batchResult.debug;

            
        }