Exemplo n.º 1
0
 /// <summary>
 /// Get payment profile information for all your available profiles for the specified service category
 /// </summary>
 /// <param name="categoryId">The ID of the category of the service the payment options are used for</param>
 /// <param name="programId">ID of the program for which the payment options are used. (Only available if the program option is enabled!)</param>
 /// <param name="paymentMethodId">Payment Method ID</param>
 /// <param name="showNotAllowedOnRegistration">Indicator wether to show profiles that are initially not allowed on registration. </param>
 /// <returns>Response containing the list of payment profile information</returns>
 public static PAYNLSDK.API.PaymentProfile.GetAvailable.Response GetAvailable(int categoryId, int? programId, int? paymentMethodId, bool? showNotAllowedOnRegistration)
 {
     PaymentProfileGetAvailable request = new PaymentProfileGetAvailable();
     request.CategoryId = categoryId;
     request.ProgramId = programId;
     request.PaymentMethodId = paymentMethodId;
     request.ShowNotAllowedOnRegistration = showNotAllowedOnRegistration;
     Client c = new Client("", "");
     c.PerformRequest(request);
     return request.Response;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Get payment profile information for all your available profiles for the specified service category
        /// </summary>
        /// <param name="categoryId">The ID of the category of the service the payment options are used for</param>
        /// <param name="programId">ID of the program for which the payment options are used. (Only available if the program option is enabled!)</param>
        /// <param name="paymentMethodId">Payment Method ID</param>
        /// <param name="showNotAllowedOnRegistration">Indicator wether to show profiles that are initially not allowed on registration. </param>
        /// <returns>Response containing the list of payment profile information</returns>
        public PAYNLSDK.API.PaymentProfile.GetAvailable.Response GetAvailable(int categoryId, int?programId = null, int?paymentMethodId = null, bool?showNotAllowedOnRegistration = null)
        {
            var request = new PaymentProfileGetAvailable
            {
                CategoryId      = categoryId,
                ProgramId       = programId,
                PaymentMethodId = paymentMethodId,
                ShowNotAllowedOnRegistration = showNotAllowedOnRegistration
            };

            _webClient.PerformRequest(request);
            return(request.Response);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Get payment profile information for all your available profiles for the specified service category
        /// </summary>
        /// <param name="categoryId">The ID of the category of the service the payment options are used for</param>
        /// <param name="programId">ID of the program for which the payment options are used. (Only available if the program option is enabled!)</param>
        /// <param name="paymentMethodId">Payment Method ID</param>
        /// <param name="showNotAllowedOnRegistration">Indicator wether to show profiles that are initially not allowed on registration. </param>
        /// <returns>Response containing the list of payment profile information</returns>
        static public PAYNLSDK.API.PaymentProfile.GetAvailable.Response GetAvailable(int categoryId, int?programId, int?paymentMethodId, bool?showNotAllowedOnRegistration)
        {
            PaymentProfileGetAvailable request = new PaymentProfileGetAvailable();

            request.CategoryId      = categoryId;
            request.ProgramId       = programId;
            request.PaymentMethodId = paymentMethodId;
            request.ShowNotAllowedOnRegistration = showNotAllowedOnRegistration;
            Client c = new Client("", "");

            c.PerformRequest(request);
            return(request.Response);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Get payment profile information for all your available profiles for the specified service category
        /// </summary>
        /// <param name="categoryId">The ID of the category of the service the payment options are used for</param>
        /// <param name="programId">ID of the program for which the payment options are used. (Only available if the program option is enabled!)</param>
        /// <param name="paymentMethodId">Payment Method ID</param>
        /// <param name="showNotAllowedOnRegistration">Indicator wether to show profiles that are initially not allowed on registration. </param>
        /// <returns>Response containing the list of payment profile information</returns>
        public async Task <API.PaymentProfile.GetAvailable.Response> GetAvailableAsync(int categoryId, int?programId, int?paymentMethodId, bool?showNotAllowedOnRegistration)
        {
            var request = new PaymentProfileGetAvailable
            {
                CategoryId      = categoryId,
                ProgramId       = programId,
                PaymentMethodId = paymentMethodId,
                ShowNotAllowedOnRegistration = showNotAllowedOnRegistration
            };

            await ClientService.PerformPostRequestAsync(request);

            return(request.Response);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Get payment profile information for all your available profiles for the specified service category
        /// </summary>
        /// <param name="categoryId">The ID of the category of the service the payment options are used for</param>
        /// <param name="programId">ID of the program for which the payment options are used. (Only available if the program option is enabled!)</param>
        /// <param name="paymentMethodId">Payment Method ID</param>
        /// <param name="showNotAllowedOnRegistration">Indicator wether to show profiles that are initially not allowed on registration. </param>
        /// <returns>Response containing the list of payment profile information</returns>
        static public API.PaymentProfile.GetAvailable.Response GetAvailable(IClient client, int categoryId, int?programId, int?paymentMethodId, bool?showNotAllowedOnRegistration)
        {
            var request = new PaymentProfileGetAvailable()
            {
                CategoryId      = categoryId,
                ProgramId       = programId,
                PaymentMethodId = paymentMethodId,
                ShowNotAllowedOnRegistration = showNotAllowedOnRegistration
            };

            client.PerformRequest(request);

            return(request.Response);
        }