#RGRTHAT - Confirm Payment

1 messages · Page 1 of 1 (latest)

leaden island
#

HI 👋

placid rose
#

howdy

#

Im doing stripe.create.paymentIntent and i pass payment method to it

#

i get the paymentIntent id from the creation

#

i want to capture the payment straight away

leaden island
placid rose
#

serverside

#

nope

leaden island
placid rose
#

yeh

#

but say if i want to not capture it straight away

#

do use .capture method?

#

or .confirm

#

I tried .confirm straight after creation of paymentIntent but then it said "no such paymentIntent", even though its brand new

leaden island
#

You can do it all in 1 API call if you set the right parameters

#

You only need the use the Capture method if you are using an Authorize & Hold approach.

placid rose
#

@leaden island It worked to use the "confirm" parameter

#

thats great if i want to capture the paymentintent straight away

#

Im on the fence if I should capture it straight away, or wait say a few days

#

If I run another api call and fetch the paymentintent later, do I use ```js
stripe.paymentIntents.capture or stripe.paymentIntents.confirm

leaden island
#

A whole lot

placid rose
#

@leaden island I already have the payment method from setupIntent

leaden island
#

Please read the docs thoroughly as we include information about how to place holds and capture payments after a waiting period

placid rose
#

ok so i just add the ```js
capture_method: 'manual',

#

at the link u sent, they dont specify any payment_method, but i suppose i can just add that payment_method i have

#

and the paymentintent will already be authorized

hushed eagle
#

Hi there, stepping in as snufkin needs to step away. Catching up now

#

It looks like the question is resolved, let me know if that is not the case.