Exemplo n.º 1
0
 private void transActionStartToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ClearDebug();
     PAYNLSDK.API.Transaction.Start.Request fixture = TransactionStart.GetFixture();
     AddDebug("Fixture loaded.");
     AddDebug("JSON:");
     AddDebug(fixture.ToString());
     //AddDebug("PARAMS:");
     //AddDebug(fixture.ToQueryString());
     AddDebug("-----");
     AddDebug("DONE");
 }
Exemplo n.º 2
0
 private void transactionStartproductsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ClearDebug();
     PAYNLSDK.API.Transaction.Start.Request fixture = TransactionStart.GetFixtureNoProductLines();
     AddDebug("Fixture loaded.");
     AddDebug("JSON:");
     AddDebug(fixture.ToString());
     //AddDebug("PARAMS:");
     //string qs = fixture.ToQueryString();
     //AddDebug(qs);
     //NameValueCollection nvc = HttpUtility.ParseQueryString(qs);
     //string json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));
     AddDebug("-----");
     //DumpNvc(nvc);
     AddDebug("-----");
     AddDebug("DONE");
 }
Exemplo n.º 3
0
        private void transactionStartproductsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearDebug();
            PAYNLSDK.API.Transaction.Start.Request fixture = TransactionStart.GetFixtureNoProductLines();
            AddDebug("Fixture loaded.");
            AddDebug("JSON:");
            AddDebug(fixture.ToString());
            AddDebug("PARAMS:");
            string qs = fixture.ToQueryString(APISettings.ServiceID);

            AddDebug(qs);
            var parameters = HttpUtility.ParseQueryString(qs);

            // string json = JsonConvert.SerializeObject(parametersToDictionary(parameters, true));
            AddDebug("-----");
            //AddDebug("PARAMS AS JSON");
            //AddDebug(json);
            Dumpparameters(parameters);
            AddDebug("-----");
            AddDebug("DONE");
        }