/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> public static PAYNLSDK.API.PaymentMethod.Get.Response Get(int paymentMethodId) { PaymentMethodGet request = new PaymentMethodGet(); request.PaymentMethodId = paymentMethodId; Client c = new Client("", ""); c.PerformRequest(request); return request.Response; }
/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> static public PAYNLSDK.API.PaymentMethod.Get.Response Get(int paymentMethodId) { PaymentMethodGet request = new PaymentMethodGet(); request.PaymentMethodId = paymentMethodId; Client c = new Client("", ""); c.PerformRequest(request); return(request.Response); }
/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> public PAYNLSDK.API.PaymentMethod.Get.Response Get(Enums.PaymentMethodId paymentMethodId) { var request = new PaymentMethodGet { PaymentMethodId = paymentMethodId }; _webClient.PerformRequest(request); return(request.Response); }
/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> public async Task <API.PaymentMethod.Get.Response> GetAsync(int paymentMethodId) { var request = new PaymentMethodGet { PaymentMethodId = paymentMethodId }; await ClientService.PerformPostRequestAsync(request); return(request.Response); }
/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> static public API.PaymentMethod.Get.Response Get(IClient client, int paymentMethodId) { var request = new PaymentMethodGet() { PaymentMethodId = paymentMethodId }; client.PerformRequest(request); return(request.Response); }
/// <summary> /// Get information for the requested payment method. /// </summary> /// <param name="paymentMethodId">Payment Method ID</param> /// <returns>Response containing the payment method data</returns> static public PAYNLSDK.API.PaymentMethod.Get.Response Get(int paymentMethodId, string apiToken = null, string serviceId = null) { PaymentMethodGet request = new PaymentMethodGet(); request.SetApiToken(apiToken); request.SetServiceId(serviceId); request.PaymentMethodId = paymentMethodId; Client c = new Client("", ""); c.PerformRequest(request); return(request.Response); }