#jamesdahlen.nwi - yearly subs
1 messages · Page 1 of 1 (latest)
Checking in to this and will get back to you
It looks like you collected their payment info but you didn't set the payment method as the default payment method for either the Customer or the Subscription
dangit- even though there is only 1, it wont use it as default?
If you set these payment methods as the invoice_settings[default_payment_method] on the Customer or as default_payment_method on the Subscription these should work
Correct, it needs to be set on one of those fields
I wonder how I should resolve this, there was maybe 300 recurring subscriptions. Could i just update each subscription/customer with their existing payment source?
Yes that should work. You can also make API calls to pay these invoices with their existing payment methods so that you don't have to wait for retries if that makes sense for you https://stripe.com/docs/api/invoices/pay#pay_invoice-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok- thank you. i will check into updating the customer and that API call.
can a default_payment_method value when creating a Subscription be a Customer ID?
I am creating a Sub with default_incomplete so I dont have their payment info yet
but I do have their Customer ID
No, but you will set the customer field when creating the subscription so they will be linked
yes- I am already linking them
You can do that without passing in any ID, just make sure to set one of the two fields that I mentioned earlier once you collect their info
ok- thanks
Hi again- as I work through updating these I am finding that my customers don't have any Sources in API responses, however i see their Payment method in Stripe Dashboard: cus_LHhgIT7smYaBtF not sure why
empty sources, default_source, etc
i am expanding sources when i retrieve the customer
You will probably want to list all of the Customer's payment methods here, https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
These cards should show up in that list
I forget about how the backwards compatibility works with Payment Methods and Sources but here you should definitely see these cards as payment methods
ah yes- i just executed that and see it. I should be able to set one of these IDs to a Customer invoice_settings[default_payment_method]?
Yes, that should work for the API call
ok thanks again