#eran-galperin_terminal-capture-methods

1 messages ยท Page 1 of 1 (latest)

latent hawkBOT
#

๐Ÿ‘‹ 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/1379125048455204965

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

random stone
#

Hi ๐Ÿ‘‹

I"m taking a look at the request you shared and the related Payment Intent.

#

Okay the "new flow" you are referring to is happening because your PHP code is excplicitly telling the Stripe API not to automatically capture the funds.

You can see in this request: https://dashboard.stripe.com/logs/req_77izUbJgIm3cAp, you are passing

capture_method: "manual",

This tells our API to wait until you use the capture API to capture the funds.

#

If you want to automatically capture funds once they are confirmed, I recommend you remove this parameter from your Payment Intent creation API request.

solemn oasis
#

This is very helpful - it looks like the capture API link goes to an internal documentation website - can you tell me what is the best value to use there for an immediate capture? is it "auto"?

random stone
#

That link is for Stripe's PUBLIC API reference documentation. It is our canonical reference for all the the API endpoints and parameters we expose.

#

Currently, we default to automatic_async to improve latency of API responses. You can also use automatic to make a synchronous API call that will only return after the payment is successfully captured.

solemn oasis
#

This is what I get when I click on that link -

#

But thanks for that! We'll use automatic_async and monitor how it goes

random stone
#

Oh, I'm sorry. SOmethng got appended to that link. Let me correct both

#

Okay I updated both of them and you should be able to see them now

#

I want you be to able to find the descriptions of each and have that for your own reference

#

automatic

Stripe automatically captures funds when the customer authorizes the payment.

automatic_async

Stripe asynchronously captures funds when the customer authorizes the payment. Recommended over capture_method=automatic due to improved latency. Read the integration guide for more information.

solemn oasis
#

Yep, I see it now - thank you!

random stone
#

Great ๐ŸŽ‰ Happy to help ๐Ÿ™‚