示例#1
0
 /// <summary>
 /// Get details for all payment profiles
 /// </summary>
 /// <returns>List of payment profile info</returns>
 public static PAYNLSDK.API.PaymentProfile.GetAll.Response GetAll()
 {
     PaymentProfileGetAll request = new PaymentProfileGetAll();
     Client c = new Client("", "");
     c.PerformRequest(request);
     return request.Response;
 }
示例#2
0
        /// <summary>
        /// Get details for all payment profiles
        /// </summary>
        /// <returns>List of payment profile info</returns>
        public PAYNLSDK.API.PaymentProfile.GetAll.Response GetAll()
        {
            PaymentProfileGetAll request = new PaymentProfileGetAll();

            _webClient.PerformRequest(request);
            return(request.Response);
        }
示例#3
0
        /// <summary>
        /// Get details for all payment profiles
        /// </summary>
        /// <returns>List of payment profile info</returns>
        public async Task <API.PaymentProfile.GetAll.Response> GetAllAsync()
        {
            var request = new PaymentProfileGetAll();
            await ClientService.PerformPostRequestAsync(request);

            return(request.Response);
        }
示例#4
0
        /// <summary>
        /// Get details for all payment profiles
        /// </summary>
        /// <returns>List of payment profile info</returns>
        static public PAYNLSDK.API.PaymentProfile.GetAll.Response GetAll()
        {
            PaymentProfileGetAll request = new PaymentProfileGetAll();
            Client c = new Client("", "");

            c.PerformRequest(request);
            return(request.Response);
        }
示例#5
0
        /// <summary>
        /// Get details for all payment profiles
        /// </summary>
        /// <returns>List of payment profile info</returns>
        static public API.PaymentProfile.GetAll.Response GetAll(IClient client)
        {
            var request = new PaymentProfileGetAll();

            client.PerformRequest(request);

            return(request.Response);
        }
示例#6
0
        /// <summary>
        /// Get details for all payment profiles
        /// </summary>
        /// <returns>List of payment profile info</returns>
        static public PAYNLSDK.API.PaymentProfile.GetAll.Response GetAll(string apiToken = null, string serviceId = null)
        {
            PaymentProfileGetAll request = new PaymentProfileGetAll();

            request.SetApiToken(apiToken);
            request.SetServiceId(serviceId);
            Client c = new Client("", "");

            c.PerformRequest(request);
            return(request.Response);
        }
示例#7
0
        private void paymentProfilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ClearDebug();
                PAYNLSDK.API.PaymentProfile.GetAll.Request fixture = new PAYNLSDK.API.PaymentProfile.GetAll.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);
            }
        }
示例#8
0
        private async void PaymentProfilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                ClearDebug();
                var fixture = new PAYNLSDK.API.PaymentProfile.GetAll.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);
            }
        }
示例#9
0
文件: Form1.cs 项目: paynl/csharp-sdk
        private void paymentProfilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                APISettings.InitAPI();
                ClearDebug();
                PAYNLSDK.API.PaymentProfile.GetAll.Request fixture = new PAYNLSDK.API.PaymentProfile.GetAll.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);
            }
        }