#joshandrews43
1 messages ยท Page 1 of 1 (latest)
Yeah you can set it on the subscription to whichever PM you like via the api: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_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.
Is there a way to avoid the ACH credit transfer issue all together?
Or on the webhook when they pay i just update the subscription -- thatll work
How are you creating the ACH credit transfer payment method? Can you send me a sample ID where this happened?
cus_MIFMM2xahassDQ
pi_3LzPsrC7t6MTuEUX11jOWMiQ
the first payment always fails since ACH credit transfer is the default payment method
but i never created that, it was automaticly generated
I spoke with support and they said i have to manually swap the default payment method to the credit card entered, but that can't be the best option
Ah ok. So what happened is the ach credit transfer was the first source created for the customer so it's assigned to: https://stripe.com/docs/api/customers/object#customer_object-default_source. The default payment method for a subscription can be pulled from a couple different places (we mention this here: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method). The default payment method on the subscription (link above) is what takes priority. We recommend setting that for subscriptions.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is there a way to just never create the ACH credit transfer
We've never used it and never will
then the first payment method they add will be the default
It's your code that's creating the ach credit transfer source, so you can control that. For the customer above, it was this request: https://dashboard.stripe.com/logs/req_cNXbhdW9pQzSiV. Coming from your server-side ruby code
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
No log found with that ID
We also dont have a ruby server
Is that my log?
Maybe its too old
Hm it shouldn't it was created in live mode in august. It's a 15 month retention
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Oh
I see what's wrong
One sec
Does it say ruby? We dont have a ruby server at all
I was looking at it wrong. It was generated by Stripe automatically. I'm not that familiar with the ACH credit transfer payment method, so let me rope in a colleague who can help
No problem. It just seems backwards to me that stripe wouldn't handle that automatically
E.g customer starts paying for subscription, i shouldnt have to code or manually do anything to have them continue paying
It was auto created as a result of setting ach credit transfer as a supported payment method when creating the subscription from the dashboard
I see
I will ask a colleague why this is done, but either way you'll need to set the default payment method
On the subcription
sounds good, thank you!
Hello ๐
Taking over as codename_duchess needs to step away
So it looks like the source becomes the default if the customer doesn't have any sources already.
This won't affect customers that already have sources but I don't think this can be configured away unfortunately.
An alternative is that you can listen to customer.updated webhook events and blank out the default_source if it gets set like this.
The source needs to be generated for the Invoice to have it as a supported payment method type and to also be supported on the Hosted Invoice Page (there has to be details of where to push funds to)