Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ANetEmvDesktopSdk.Sample/MainController.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
Expand Down Expand Up @@ -210,7 +212,7 @@ private createTransactionRequest getRequest()
{
transactionRequest = transaction
};
Debug.Write("Session Token" + this.sessionToken);
Debug.Write("Session Token");
request.merchantAuthentication = new merchantAuthenticationType()
{

Expand Down
3 changes: 1 addition & 2 deletions ANetEmvDesktopSdk.Sample/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down