#jry_j-alipay
1 messages · Page 1 of 1 (latest)
Hello! I believe it's the alipay source that expires after 6 hours, but let. me just find some docs to confirm
ok
That's for the source integration though
PaymentIntent/PaymentMethod don't do this anymore
The reason is that before you first created a Source, then you "completed the Source", for example by doing 3D Secure, or here redirecting to Alipay and getting it "approved" and then you had to use the Source to move the funds by charging it
Since the funds were "held" on Alipay (or iDEAL and such) we needed to quickly expire if you didn't charge that Source.
With PaymentIntent the flow is entirely different, the redirect to Alipay is a "next action". When you complete it, we automatically move the funds/succeed the PaymentIntent so there's no expiration in that world
Can I go over my checkout workflow with you ? just to confirm my logic is ok?
Yup, go ahead!
I'm on React Native; we offer PaymentSheet and Alipay as payment methods at the moment, and we use PaymentIntent for both since it looks like it's a one stop shop for most methods.
Customer submits purchase -> PaymentIntent is created with capture_method: 'manual' -> Later (could be immediately or could be a few days) when merchant sees order, they confirm or reject the order -> if confirm, then capture PaymentIntent; else cancel PaymentIntent
we used to use source, so we had to capture alipay immediately to avoid expiry and refund later if rejected; but now I think the above can work?
Can you clarify - why are you using source? Was it just because you didn't know about the recommended Payment Method flow?
Also something I just want to call out - I don't think you can use capture_method: manual with alipay Payment Intents
I think it was because of tipsi-stripe, we had limitations due to it I believe
but now we migrated over, it's much easier to use the APIs
oh right darn it
Gotcha, that makes sense. Would definitely recommend using the Payment Methods flow now that you know about it (https://stripe.com/docs/payments/alipay/accept-a-payment?platform=react-native)
yea
so paymentIntent doesn't expire at all? I remember cards used to have 7 days
Aside from Alipay, which I have to capture immediately; if the user chose card, then I should automatically cancel the payment if the order is not actioned by the merchant and is past it's due date?
"so paymentIntent doesn't expire at all? I remember cards used to have 7 days" -> To clarify, a plain old Payment Intent doesn't expire like that. What expires is the hold on the card, which will expire after 7 days and automatically transition the Payment Intent to cancelled if the funds haven't been captured. Stripe will automatically cancel the payment if it hasn't been actioned, but you can also cancel it yourself if you want
gotcha