Esempio n. 1
0
 private void refundtransactionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //APISettings.InitAPI();
     ClearDebug();
     PAYNLSDK.API.Refund.Transaction.Request fixture = RefundTransaction.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");
 }
Esempio n. 2
0
        private void refundtransactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearDebug();
            PAYNLSDK.API.Refund.Transaction.Request fixture = RefundTransaction.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");
        }
Esempio n. 3
0
        private void RefundtransactionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ClearDebug();
            var fixture = RefundTransaction.GetFixtureNoProductLines();

            AddDebug("Fixture loaded.");
            AddDebug("JSON:");
            AddDebug(fixture.ToString());
            AddDebug("PARAMS:");
            var qs = fixture.ToQueryString();

            AddDebug(qs);
            var nvc  = HttpUtility.ParseQueryString(qs);
            var json = JsonConvert.SerializeObject(NvcToDictionary(nvc, true));

            AddDebug("-----");
            AddDebug("PARAMS AS JSON");
            AddDebug(json);
            DumpNvc(nvc);
            AddDebug("-----");
            AddDebug("DONE");
        }