I was looking over this documentation on processing a payment and looking over the "capture" and "authType" bindings. I'm trying to set up the request so it will both auth and capture, then send a response that indicates whether it authed and captured. I'm not concerned with partial captures, so can I do the following?
Set "capture" to true and "authType" to "AUTOCAPTURE" in the request bindings
If the response says the transaction was successful, assume that the customer was charged for the amount in the "authorizedAmount" binding of the response
If the response says the transaciton was unsuccessful, assume that the customer was not charged
I would prefer not to have to send a second request to the "capture" endpoint in cases where I want to capture immediately, since this workflow would be simpler. However, I want to make sure I can safely assume that the customer was charged the "authorized" amount in successful cases and not charged at all in unsuccesful cases.
I am using the v2 APIs and they seem to be working for the most part when I test them in a sandbox environment. I am wondering specifically about whether I can send a single "process payment" request and be guaranteed that a "success" response means that the customer was charged the full amount authorized, or whether "success" exclusively refers to the authorization and I need to send a second response either to A) capture the payment or B) verify that the capture from the first request succeeded. Apologies if this is already covered in the documentation of the response bindinngs, but I was unable to find an answer to this question when I read the documentation.