#mindsetinmeta
1 messages · Page 1 of 1 (latest)
Hey!
Could you please provide more details ?
Is there a specific use case you're trying to account for?
i'm using pre-auth and capture
If I would like to cancel the pre-auth, I can call API to cancel the PI. On the other hand, I can wait for the Pre-auth to expire in 7 days. what's the difference?
The cancel action is triggered manually and explicitly by your integration. While the expiration, is automatically done (up to 7 days for card payments)
Hola.. quería saber porque cuando voy a pagar mi factura de pgsharp no me deja con mi tarjeta de crédito? Me dice que intente varias veces y tengo que esperar 24hs
theoretically, I do not have to cancel the PI then. I can wait for it to expire itself. Is that correct?
Yes you can
thanks
on the PI's mannual
under cancelling the PI
it says
and I quote
You cannot cancel the PaymentIntent for a Checkout Session. Expire the Checkout Session instead
what does that mean?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
How are you creating PaymentIntent ? using the PaymentIntent create API or using Stripe Checkout Sessions ?
CS
You need then to expire the Checkout Session using this API:
https://stripe.com/docs/api/checkout/sessions/expire
If I create a CS and I get the id of the PI in response, I still cannot cancel the underlying PI?
I tried cancelling the PI and amount_capturable of PI has changed.
Could you please share the PaymentIntent Id ?
pi_3M0jgnDaKMqxBxi40C9AXEtx
This PaymentIntent is in succeededstatus, that means it has been already processed. you can't cancel it.
I created a CS and this PI is the one embeded.
I then cancelled this pre-auth by cancelling the PI
and you can see PI."amount_capturable": 0
then why the manual says "You cannot cancel the PaymentIntent for a Checkout Session. Expire the Checkout Session instead"
I'm confused, what's the actual ask here? This (pi_3M0jgnDaKMqxBxi40C9AXEtx) PI was complete, and then refunded. You can't cancel it