#groarq_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1218152119647866940
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey
Sources are deprected and you need to migrate as soon as possible to the new Payment method API
So how should I fetch Customers Payment Methods?
In stripe API documentation there is still sources in customer object without any addnotation that's deprecated
I'm not talking now about payment itself, I just want to fetch payment methods/sources for a specific customer
In stripe API documentation there is still sources in customer object without any addnotation that's deprecated
It is check this:
https://docs.stripe.com/sources
So how should I fetch Customers Payment Methods?
The customer you are sharing, does have payment method and not source
So you need to use this API in order to get their payment methods:
https://docs.stripe.com/api/payment_methods/customer
I see, so for any new customer it won't be source anymore but "payment method", while for existing customers it's still "source" ?
because for our older customers everything works fine. I can see source in API etc.
Yes exactly.
and if customer has connected credit card and ACH as payment sources but default is card. How is it going to be represented? Because the only thing I can see that refers to payment methods in stripe customer response is under invoice settings
ACH can be accepted using PaymentMethod API too.
What you mean exactly by your latest follow up question ?
So in our app we allow our users to connect multiple payment sources. So they can have 1 card and 1 bank account added. We do not keep any details about these methods on our side, so each time we fetch this data from Stripe to show our users what payments they have configured and which one is their default.
we are doing it by using sources object from Customers response. It was all there.
But now I'm confused how to get such information
Ah I see. You can check these fields and its priority:
https://docs.stripe.com/billing/subscriptions/payment-methods-setting#payment-method-priority
In order to get all payment methods you use the API I shared with you, otherwise you use the sources at the customer level
but again, you need to migrate to the new PaymentMethod API as soon as possible
When the change that disabled sources for new customers happened? We had new client a week ago and everythign worked fine, now out of the sudden it stopped working
and I'm trying to figure out the shortest way to make it stable again, as we are pretty surprised
I think it was by the end of the last week. I'm not sure about the exact date
But the deprecation of the sources API started way much before
how long it will be working for existing customers with source attached? and I assume that for them currently we can use either source way or new payment method way?
There will be comms soon regarding this
also I've noticed that when creating customer via API we still can use source. So the change you said was released by the end of the last week was only for Stripe Dashboard for now?
but again I strongly invite you to migrate to the new Payment Methods APIs .
I understand, will do. we just can't do it in one day and we have to keep app running
Yes, you can still create sources
But it's recommended
now as it's deprecated.
is there any way to create source from stripe dashboard?
No. You need to not consider Sources any more in your integration.
right, and my last question (I promise). Are you able to estimate how much time do we have to migrate to payment sources till they are completely removed from API?
or like we won't be able to use source when creating new customer (via API)
No worries, feel free to ask whatever question you need! You're welcome!
No, you shouldn't use the Sources API at all for any new payment methods. As stated, you shoud migrate to Setup Intents/Payment Methods. Detailed here: https://docs.stripe.com/payments/payment-methods/transitioning
They're backwards compatible so you can still use existing Source objects, but you need to upgrade your integration to use the new APIs
I understand that I shouldn't use the Sources API - but at the moment I have no choice. So Im asking how long will it be possible to create customer using source
I don't know, better off asking support for details on the full deprecation dates
We wish we could help, but you need to talk to Stripe support
We can only help on Discord if all of the following are true:
- ๐งโ๐ป You must be a developer
- ๐ ๏ธ Your question must be about building a Stripe integration
- โฑ๏ธ You must be available to respond in realtime
- ๐ฅ You must be comfortable receiving help in public (this is a public server)
If any of those aren't true please contact Stripe support.
If all of those are true we may have misunderstood your question; please provide more details below.
Note that using an inappropriate button or submitting inappropriate information is a violation of our rules. You will be removed from this server if you repeatedly create invalid threads.