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));
 }