diff --git a/ANetEmvDesktopSdk.Sample/MainController.xaml.cs b/ANetEmvDesktopSdk.Sample/MainController.xaml.cs index db4ae7e..e79e906 100644 --- a/ANetEmvDesktopSdk.Sample/MainController.xaml.cs +++ b/ANetEmvDesktopSdk.Sample/MainController.xaml.cs @@ -58,12 +58,14 @@ public MainController(AuthorizeNet.Environment iEnvironment, this.sessionToken = iSessionToken; this.deviceID = iDeviceID; - Debug.Write("Session Token in Constructor" + iSessionToken); + Debug.Write("Session Token in Constructor"); Random random = new Random(); this.amount.Text = (random.Next(1, 1000)).ToString(); this.launcher = new SdkLauncher(iEnvironment, iCurrencyCode, iTerminalID, iSkipSignature, iShowReceipt); this.launcher.setMerchantInfo(merchantName, merchantID); +#if DEBUG this.launcher.enableLogging(); +#endif } private void OnApplicationExit(object sender, EventArgs e) @@ -177,7 +179,7 @@ private void close(object sender, RoutedEventArgs e) private createTransactionRequest getRequest() { - Debug.Write("Session Token" + this.sessionToken); + Debug.Write("Session Token"); Random random = new Random(); ApiOperationBase.MerchantAuthentication = new merchantAuthenticationType() @@ -210,7 +212,7 @@ private createTransactionRequest getRequest() { transactionRequest = transaction }; - Debug.Write("Session Token" + this.sessionToken); + Debug.Write("Session Token"); request.merchantAuthentication = new merchantAuthenticationType() { diff --git a/ANetEmvDesktopSdk.Sample/MainWindow.xaml.cs b/ANetEmvDesktopSdk.Sample/MainWindow.xaml.cs index 08f6a09..1bfc5ce 100644 --- a/ANetEmvDesktopSdk.Sample/MainWindow.xaml.cs +++ b/ANetEmvDesktopSdk.Sample/MainWindow.xaml.cs @@ -66,7 +66,6 @@ private void OnPayClicked(object context, RoutedEventArgs state) Debug.WriteLine(">"); break; case XmlNodeType.Text: //Display the text in each element. - Debug.WriteLine(reader.Value); string node = stack.Pop(); keyValue[node] = reader.Value; break; @@ -169,7 +168,7 @@ private void backgroundWorkerLogin_GetAuthenticationTokenCompleted(object sender if (!object.ReferenceEquals(response, null) && !object.ReferenceEquals(response.sessionToken, null)) { this.response = response; - Debug.WriteLine("RunnerBackground completed" + response.sessionToken); + Debug.WriteLine("RunnerBackground completed"); //this.Hide(); try