#adelvalle

1 messages · Page 1 of 1 (latest)

cold bluffBOT
velvet dragon
#

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

vestal rune
#

Can you elaborate? I don't understand what you're asking.

velvet dragon
#

i have several subscriptions

#

and I want to get only with default_payment_method ='sepa_debit'

vestal rune
#

So you want a list of all Subscriptions where sepa_debit was the Payment Method type used to pay?

velvet dragon
#

yes

vestal rune
#

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