Workflow of auto-capture

rbrandenburg
Helper

Workflow of auto-capture

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?

 

  1. Set "capture" to true and "authType" to "AUTOCAPTURE" in the request bindings
  2. If the response says the transaction was successful, assume that the customer was charged for the amount in the "authorizedAmount" binding of the response
  3. 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.

3 REPLIES 3
API_Products
Visa Developer Support Specialist

Re: Workflow of auto-capture

Hi @rbrandenburg,

 

If you are using CyberSource v1 APIs, this version was recently deprecated. You will need to move to v2 CyberSource APIs going forward. I have provided the link to the v2 Cybersource APIs below.

 

Cybersource Payments REST API

https://developer.visa.com/capabilities/cybersource/reference#cybersource__cybs_payments_v2




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

rbrandenburg
Helper

Re: Workflow of auto-capture

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.

API_Products
Visa Developer Support Specialist

Re: Workflow of auto-capture

Hi @rbrandenburg,                             

 

We have an expert team that manages questions specific to CyberSource. Please reach out to the CyberSource team directly.

 

CyberSource Support
800-709-7779

 

CyberSource Sales
888-330-2300


CyberSource

http://cybersource.com/esupport

 

For availability:

http://www.cybersource.com/products/global_map/

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.