#bouyyaaa_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/1227604975203647488
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I'm checking to see if we have any docs for this
Ah I don't think it's possible to convert src_ objects into pm_ objects using the API. I was thinking you could call the PaymentMethods API and pass the src_ to card parameter. However, it only works for card tokens.
But it seems that calling a GET payment_methods with a sepa_debit src_ works too
It is backwards compatible where you can use PaymentMethods API to retrieve sources but you can't exchange the object with a pm_ object
https://docs.stripe.com/payments/payment-methods/transitioning#compatibility
Oh... Okay thanks for the precision. It is not foreseen to delete the compability with src_ tokens right ?
Correct. I'm checking with a colleague to see if there's a workaround.
What sort of source objects do you currently have? Cards?
Mostly sepa_debit sources, bank sources at most
Gotcha. So I've checked with a colleague and it looks like we're deprecating Sources API soon.
https://support.stripe.com/topics/shutdown-of-the-legacy-sources-api-for-non-card-payment-methods
The good news is that we're planning to provide a dashboard based tool that let's you migrate re-usable sources to payment methods
yup, i've seen that you're deprecating Stripe sources, but, if we call the Payment Methods, with a src token, it won't be a problem right ?
Checking into that..
As it seems that calling a src token with the payment method API returns a Payment method object, but still with the src prefix
Hmm, I'm not sure if the shutdown of the sources API would affect the PaymentMethods API as well. I've checked with a colleague and they're not sure either.
At this time, the PaymentMethod API should work fine with src prefix. However, we’re working on tooling & documentation to help you migrate from Sources to PM more easily.
Ok thank you very much !
NP! 🙂 Happy to help