#chip
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Are you implementing Separate Charges and Transfers flow?
Yes.
Ah okay, this portion of the docs goes over availability of funds and all
https://stripe.com/docs/connect/charges-transfers#transfer-availability
Would recommend giving it a read ๐
Happy to answer any follow up questions you might have
Ah, okey, nice. Failed to read that section last time ๐
Btw, I read a bit about paymentIntents and that the recommendation was to only create one paymentIntent per order. As of right now, we create a new paymentIntent each time the customer goes to our checkout page. Since there aren't any expiry on a paymentIntent, as far as I can see, only a way to cancel them, is the current way of handling it a optimal way? From what I see it just ends up in a lot of incomplete payments lol
Although we store the paymentIntent id and clientSecret in our db with related product data, and a isActive column to "handle" expiry. Just trying to understand if there's any other best practices except what you recommended from paymentIntent api docs
You could create the PaymentIntent when the customer is about to checkout instead. Until then keep the product info in your cart (localStorage or similar) & when they click checkout, that's when you create the PaymentIntent for the cart total
Yes, that's exactly what happens now ๐ I meant checkout page as the actual checkout ๐
but we should probably find a way to cancel those intents after a period of time imo
Is there any specific reason to why there is no expiry date on these intents?
The intents are supposed to be reused, even in case of declines ๐ Some of the declines occur after ~days for delayed notification payment methods
incomplete payment intents are not going to affect your integration as such really.
However, you can create a script to list and cancel the PaymentIntents that were created some time ago
https://stripe.com/docs/api/payment_intents/list
https://stripe.com/docs/api/payment_intents/cancel
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yeah, alright! Thanks, this gives me some more clarification on how to handle certain things ๐