#marimuthu_api

1 messages ¡ Page 1 of 1 (latest)

dim inletBOT
#

👋 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.

ebon frigate
#

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

Learn how PaymentIntents work within the payment flow.

golden leaf
#

@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

ebon frigate
#

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 the capture_method to manual, the status will transit into requires_capture if confirm is set to true

#

I'd recommend giving a try in test mode

golden leaf
#

Yes perfect

#

it works

#

So if the capture_method to automatic and confirm is true then only it will capture the payment immendiately right?

ebon frigate
#

Yes, that's right

golden leaf
#

Got it @ebon frigate Thank you