#mastergates_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/1333546976121458759
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
As far as i know, you don't need to migrate these separately as such because you can pass it in to a payment_method parameter as is - https://docs.stripe.com/payments/payment-methods/transitioning#compatibility
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
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 ?
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?
Yup
ah, I'll try that out. And since I don't really need the setupIntent it's fine to just cancel it?
You'd need to confirm it to generate a payment method ID
You can pass confirm: true when you create the SetupIntent - https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm
thanks for the help, I'll give it a shot later