#falejand
1 messages · Page 1 of 1 (latest)
https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/model/Customer.java#L488 it's called listPaymentMethods() based on the code
following with the same, I tried that already, there is not customer.listPaymentMethods().retrieve(pmId);
I guess I can do a simple find with the collection from the listPaymentMethods()
just wanted to confirm the api was available or not to avoid using 2 apis and use one instead
What you want to achieve here? list Payement methods or retrieve one payment method?
make sure that a customer has a payment method id
as a validation rule
my input is a customerId and a paymentMethodID
I want to implement just basic validation that in fact the customerId is associated with the paymentMethodID I receive from my internal APIs
https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/model/Customer.java#L562 then you should use this API.
oh awesome, it does the same description as the other one, I'll use that one instead, thx for the help 🙂
It looks like the API reference is not up-to-date, thanks for flagging this out, I'd escalate and let the relevant team to fix it.