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));
        }
Esempio n. 2
0
 public virtual IEnumerable <PaymentMethod> ListAutoPaging(PaymentMethodListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntitiesAutoPaging(options, requestOptions));
 }
Esempio n. 3
0
 public virtual Task <StripeList <PaymentMethod> > ListAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.ListEntitiesAsync(options, requestOptions, cancellationToken));
 }
Esempio n. 4
0
 public virtual StripeList <PaymentMethod> List(PaymentMethodListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListEntities(options, requestOptions));
 }
Esempio n. 5
0
 public virtual IAsyncEnumerable <PaymentMethod> ListAutoPagingAsync(PaymentMethodListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken));
 }