#Pain-default-pm
1 messages ยท Page 1 of 1 (latest)
I see, is this the correct endpoint to update the default source? https://stripe.com/docs/api/customers/update?lang=node#update_customer-default_source
yes the endpoint is correct but if you are using PaymentMethods API then update the invoice_settings.default_payment_method parameter.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What's the difference?
Oh I see
Well, my plan is to set the first card ever saved as the default payment method, if more get saved later they can adjust it accordingly.
I plan to wait for a successful payment to go through with a saved card, once it's saved I will get the customers payments and if it's only one card I will set it to default
At least that's the only flow I could come up with
Gotcha. makes sense.
Alright, I will use that approach then; appreciate it.