public async Task CanRetrievePaymentMethodList() { // When: Retrieve payment list with default settings ListResponse <PaymentMethodResponse> response = await PaymentMethodClient.GetPaymentMethodListAsync(); // Then: Make sure it can be retrieved Assert.IsNotNull(response); Assert.IsNotNull(response.Items); }
static void OutputPaymentMethods(PaymentMethodClient paymentMethodClient) { Console.WriteLine("Ouputting all payment methods"); ListResponse <PaymentMethodResponse> paymentMethodList = paymentMethodClient.GetPaymentMethodListAsync(0, 100).Result; foreach (PaymentMethodResponse paymentMethodResponse in paymentMethodList.Data) { Console.WriteLine($"Payment method description: { paymentMethodResponse.Description }"); } }