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