#h20-server-side-confirmation

1 messages · Page 1 of 1 (latest)

small zealot
#

You can use eg pm_card_visa here as the payment method

#

Not sure what you mean by testing a PK without the client -- the PK is meant for the client to use

cerulean sentinel
#

Ok so create with payment_method: 'pm_card_visa'. this returns a paymentIntent Object. I will use this paymentIntent.id to confirm the payment?

small zealot
#

Well that guide had you sending confirm=true in the creation request but sure you could separately confirm the returned payment intent yes

#

or use the paymentintent.client_secret to confirm via the client when you get to testing that

cerulean sentinel
#

ah confirm=true should immediatly make the paymentIntent

#

wahts the difference between .confirm and .capture then?

#

AND can i also capture later server side? should this also work with pm_card_visa?

small zealot
#

Yep, you can use deferred capture there

#

confirmation is to commit the payment as final and get authorization (approval) form the issuer/bank

#

manual capture is optional, where you have a hold for the amount you can collect up to 7 days later (or cancel)

cerulean sentinel
#

Ok but then it gives an error »This PaymentIntent could not be captured because it has a status of requires_confirmation. Only a PaymentIntent with one of the following statuses may be captured: requires_capture.«

#

And i cannot confirm it server-side, no?

small zealot
#

YOu can, that's the first guide i gave you