cancel
Showing results for 
Search instead for 
Did you mean: 

cybersource-rest-samples-csharp CapturePayment calls SimpleAuthorizationInternet

I have already obtained the TOKEN for this customer, and I just need to Capture the Order Amount. 
SimpleAuthorizationInternet requires passing the CC info, which I do not have.

I do not understand what data is required by: PtsV2PaymentsCapturesPost201Response result = apiInstance.CapturePayment(requestObj, id); Can I pass some ID ( in the id parameter? Like Token ID, Instrument Identifier?

Looking for a simple solution.

jeromeb
Member
1 REPLY 1

For capture request you can use the script in the link below. 

https://github.com/CyberSource/cybersource-rest-samples-csharp/blob/master/Source/Samples/Payments/C...

For Capture request Cybersource do not need card data or token as we are trying to capture an existing Authorization. So the ID below is the Cybersource RID that you have received in your API response for your Authorization request. 

PtsV2PaymentsCapturesPost201Response result = apiInstance.CapturePayment(requestObj, id);

iorakli
Moderator Moderator
Moderator