Beispiel #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(APISettings.ServiceID));
     AddDebug("-----");
     AddDebug("DONE");
 }
Beispiel #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(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");
        }
Beispiel #3
0
        private void transactionStartproductsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            APISettings.InitAPI();
            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("-----");
            //AddDebug("PARAMS AS JSON");
            //AddDebug(json);
            DumpNvc(nvc);
            AddDebug("-----");
            AddDebug("DONE");
        }