Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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 }");
            }
        }