Captures a previously authorized transaction.
public void Capture();
Public Sub Capture()
After this method returns check the value of Code to determine if the transaction was successful.
Vendors/Gateways, who systematically send all Capture transactions during their end of day processing or at a specific time for their entire chain, must configure/program their systems to send the Capture transactions for all locations or merchants varying times of day based on the MerchantId or MerchantTerminalNumber (whichever provides a more random value).
To assist with implementing this logic, FDMS Rapid Connect recommends sending the Capture transactions based on the MerchantTerminalNumber in each location. For example If the last digit of the MerchantTerminalNumber is 0, set the time for the Capture transactions to be sent as xx:00 (xx=hh:00=mm). The time for the MerchantTerminalNumber ending with 1 would be xx:05. The time for the MerchantTerminalNumber ending with 2 would be xx:10. All remaining MerchantTerminalNumbers would follow this same logic. This logic would be applied across the entire chain or merchant base, to ensure that all Captures for all merchants are not systematically sent to First Data at the same time. FDMS recommends that the software calculate the offset of time based on the MerchantId or MerchantTerminalNumber, and not rely on a user to specify the time as noted above.
Important Note: You must ping your list of service provider URLs and update the URL property to the service provider with the shortest response time every 100 transactions, as well as when your application initially starts. This is not a normal ICMP ping - to determine the fastest transaction URL you must use the special Ping method inside the FDMSRegister component. (You may update your list of service provider URLs with the FDMSRegister component's ServiceDiscovery method).
Note: AuthOnly and Capture are allowed only for EBT eWIC transactions.
EBT AuthOnly and Capture Example
benefit.TPPID = "AAA000"; benefit.MerchantTerminalNumber = "00000001"; benefit.MerchantId = "RCTST0000012345"; benefit.GroupId = "20001"; benefit.DatawireId = "00011122233344455566"; benefit.URL = "https://stg.dw.us.fdcnet.biz/rc"; benefit.ApplicationId = "RAPIDCONNECTSRS"; benefit.IndustryType = FdmsrcbenefitIndustryTypes.fritretail; benefit.STAN = "112"; benefit.TransactionNumber = "1234"; benefit.OrderNumber = "123"; benefit.ReferenceNumber = "123"; benefit.TransactionAmount = "1200"; benefit.Card.MagneticStripe = "4788250000028291=21121015432112345678"; benefit.Card.EntryDataSource = EntryDataSources.edsTrack2; benefit.EncryptedPIN = "7BD8948B328B21E5"; benefit.KSN = "876543210F008400029"; benefit.BenefitType = FdmsrcbenefitBenefitTypes.ebtEWIC; benefit.AuthOnly(); string aggregate = benefit.GetDetailAggregate(); //Capture benefit = new Fdmsrcbenefit(); benefit.TPPID = "AAA000"; benefit.MerchantTerminalNumber = "00000001"; benefit.MerchantId = "RCTST0000012345"; benefit.GroupId = "20001"; benefit.DatawireId = "00011122233344455566"; benefit.URL = "https://stg.dw.us.fdcnet.biz/rc"; benefit.ApplicationId = "RAPIDCONNECTSRS"; benefit.STAN = "113"; benefit.TransactionNumber = "1235"; benefit.ReferenceNumber = "123457"; //The TransactionAmount is populated when SetDetailAggregate is called. benefit.SetDetailAggregate(aggregate); //Determine the eWIC benefit/food items authorized. benefit.EWICDetails.Add(new FDMSRcEWICDetail()); benefit.EWICDetails.UpcPluIndicator = FDMSRcBenefitEWICIndicatorTypes.freitUPC; benefit.EWICDetails.UpcPluData = "011110610485"; benefit.EWICDetails.UpcItemPrice = "1200"; benefit.EWICDetails.UpcQuantity = "100"; //Indicates 1 unit benefit.Capture();
.NET Standard Notes
To call this method in an asynchronous manner call CaptureAsync instead. When the method completes (or an error is encountered) the CaptureCompleted event will fire.