#kallola_best-practices
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/1240211464984199249
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi
the guide you were sharing is a good start!
This one is also a good one for migrating Sources to PaymentMethods:
https://docs.stripe.com/payments/payment-methods/transitioning
In particular you can check this part for compatibility of old objects with the new API:
https://docs.stripe.com/payments/payment-methods/transitioning#compatibility
Hi @tacit mauve ,
Thank you for the link. Is there a way we can simply convert the customers with source to payment method? By sharing the existing customer ID or token?
That's exactly the second link I shared with you.
For collecting new PaymentMethods you need to follow the first link in order to migrate your integration
Unfortunately we do not store any card details rather fetch them based on the merchant selected.
From where you fetch them ? using what Stripe API ?
additionally we don't have access to the merchant stripe accounts except the keys. Yes, we use the SDK integration and fetch using the source API
OK as you are migrating now, there is the old sources and the new sources that your integration will collect:
- For the old sources, you can use the payment_intent API using the source Id following this part https://docs.stripe.com/payments/payment-methods/transitioning#compatibility par example:
const paymentIntent = await stripe.paymentIntents.create({
payment_method_types: ['card'],
amount: 1099,
currency: 'eur',
customer: '{{CUSTOMER_ID}}',
payment_method: '{{CARD_ID}}',
});
- For the new/upcoming payments, you need to use the new integration flow/APIs
Happy to help!