#adelvalle
1 messages · Page 1 of 1 (latest)
Hi,
Map<String, Object> params = new HashMap<>();
params.put("default_payment_method", SEPA_DEBIT);
params.put("status", "active");
SubscriptionCollection suList= Subscription.list(params);
this is not possible
Can you elaborate? I don't understand what you're asking.
i have several subscriptions
and I want to get only with default_payment_method ='sepa_debit'
So you want a list of all Subscriptions where sepa_debit was the Payment Method type used to pay?
yes
You would want to list all subscriptions using the List Subscriptions API: https://stripe.com/docs/api/subscriptions/list and expand the default_payment_method hash in order to filter on default_payment_method.data.type=sepa_debit
You'd have to iterate through those objects and cache them yourself once you get all subscriptions back
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.