#mastergates_api

1 messages ¡ Page 1 of 1 (latest)

gaunt questBOT
#

👋 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/1333546976121458759

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

nocturne lintel
fair jewel
#

I did see that and may end up using that approach. We have two backends and the newer one natively uses the paymentMethods/setupIntents/paymentIntents APIs, so I was looking for a way to "convert" the source tokens so we wouldn't have to make logic changes to the new backend to make varying api request payloads or store the tokens so it needed to know it wasn't a native paymentMethod token.

#

I saw the stripe article about the migration tool for other Source types (SEPA direct, etc.) to PaymentMethods on the same platform account here and was sad it doesn't work for Card Sources

nocturne lintel
#

Yeah I don't believe there's a way to "exchange" card_xxx objects for pm_xxx object as such in this case..

#

Actually

#

have you tried creating a SetupIntent and confirming that while passing card_xxx as payment_method ?

fair jewel
#

I only tried that with PaymentIntent, not SetupIntent

#

would it allow me to do something else, like extract the payment method (id) from the setupIntent response?

nocturne lintel
#

Yup

fair jewel
#

ah, I'll try that out. And since I don't really need the setupIntent it's fine to just cancel it?

nocturne lintel
#

You'd need to confirm it to generate a payment method ID

fair jewel
#

thanks for the help, I'll give it a shot later