예제 #1
0
        public async Task <StripeList <PaymentMethod> > GetPaymentMethodsAsync(string customerId)
        {
            var options = new Stripe.PaymentMethodListOptions
            {
                Customer = customerId,
                Type     = "card",
            };

            var service = new Stripe.PaymentMethodService();

            return(await service.ListAsync(options));
        }
예제 #2
0
 public virtual IEnumerable <PaymentMethod> ListAutoPaging(PaymentMethodListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntitiesAutoPaging(options, requestOptions));
 }
예제 #3
0
 public virtual Task <StripeList <PaymentMethod> > ListAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.ListEntitiesAsync(options, requestOptions, cancellationToken));
 }
예제 #4
0
 public virtual StripeList <PaymentMethod> List(PaymentMethodListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntities(options, requestOptions));
 }
예제 #5
0
 public virtual IAsyncEnumerable <PaymentMethod> ListAutoPagingAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken));
 }