#marimuthu_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/1288376016611442779
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Here's the lifecycle of a Payment Intent: https://docs.stripe.com/payments/paymentintents/lifecycle
The status will transit in the order:
requires_payment_method > requires_confirmation > requires_action (if needed) > requires_capture (if manual capture is used) > succeeded
In pi_3Q2nvIGRhgpj4WEi1NpmTM69, the Payment Intent wasn't confirmed in https://dashboard.stripe.com/test/logs/req_yT830oaV5jr1up. You can set confirm=true if payment_method is set.
In pi_3Q2ng1GRhgpj4WEi1QFHZDuE, the payment method was confirmed using stripe.confirmPayment() in https://dashboard.stripe.com/test/logs/req_w155jNGAlDgCt1
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
@ebon frigate We dint use stripe.confirmPayment(), I think stripe is automatically doing this.
If I set "confirm=true" in payment intent api it will automatically charge the customer and payment intent status will be succeeded
I dont want that
pi_3Q2nvIGRhgpj4WEi1NpmTM69 = Status = Incomplete and no charge data
pi_3Q2ng1GRhgpj4WEi1QFHZDuE = Status = Uncaptured with charge data
I want to achieve as "pi_3Q2ng1GRhgpj4WEi1QFHZDuE" using API
If I set "confirm=true" in payment intent api it will automatically charge the customer and payment intent status will be succeeded
No, It won't. Since your request set thecapture_methodtomanual, the status will transit intorequires_captureifconfirmis set totrue
I'd recommend giving a try in test mode
Yes perfect
it works
So if the capture_method to automatic and confirm is true then only it will capture the payment immendiately right?
Yes, that's right
Got it @ebon frigate Thank you