示例#1
0
        private void serviceCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ClearDebug();
                PAYNLSDK.API.Service.GetCategories.Request fixture = new PAYNLSDK.API.Service.GetCategories.Request();
                InitRequestDebug(fixture);
                DumpNvc(fixture.GetParameters());

                MyStaticPayNlClient.Client.PerformRequest(fixture);
                DebugRawResponse(fixture);
                tbMain.Text = fixture.Response.ToString();
            }
            catch (PayNlException ee)
            {
                AddDebug("~~EXCEPTION~~");
                AddDebug(ee.Message);
            }
        }
示例#2
0
        private async void ServiceCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ClearDebug();
                var fixture = new PAYNLSDK.API.Service.GetCategories.Request();
                InitRequestDebug(fixture);
                DumpNvc(fixture.GetParameters());

                await ClientService.PerformPostRequestAsync(fixture);

                DebugRawResponse(fixture);
                tbMain.Text = fixture.Response.ToString();
            }
            catch (ErrorException ee)
            {
                AddDebug("~~EXCEPTION~~");
                AddDebug(ee.Message);
            }
        }
示例#3
0
文件: Form1.cs 项目: paynl/csharp-sdk
        private void serviceCategoriesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                APISettings.InitAPI();
                ClearDebug();
                PAYNLSDK.API.Service.GetCategories.Request fixture = new PAYNLSDK.API.Service.GetCategories.Request();
                InitRequestDebug(fixture);
                DumpNvc(fixture.GetParameters());

                APISettings.Client.PerformRequest(fixture);
                DebugRawResponse(fixture);
                tbMain.Text = fixture.Response.ToString();
            }
            catch (ErrorException ee)
            {
                AddDebug("~~EXCEPTION~~");
                AddDebug(ee.Message);
            }
        }