#h20-server-side-confirmation
1 messages · Page 1 of 1 (latest)
By using test payment methods that don't require 3ds, you can confirm the payment intent server side and optionally mark it off session:
https://stripe.com/docs/payments/accept-a-payment-synchronously#create-payment-intent
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
Ok so create with payment_method: 'pm_card_visa'. this returns a paymentIntent Object. I will use this paymentIntent.id to confirm the payment?
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
ah confirm=true should immediatly make the paymentIntent
wahts the difference between .confirm and .capture then?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
AND can i also capture later server side? should this also work with pm_card_visa?
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)
THese are the docs for that: https://stripe.com/docs/payments/capture-later#authorize-only
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?
YOu can, that's the first guide i gave you