Performs a sale transaction.
public void Sale();
Public Sub Sale()
This method performs a sale transaction. Once a sale is performed no further action is needed, the funds will automatically be captured by FDMS.
After this method returns check the value of Code to determine if the transaction was successful.
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).
Healthcare Sale Example
healthcare.TPPID = "AAA000"; healthcare.MerchantTerminalNumber = "00000001"; healthcare.MerchantId = "1234"; healthcare.GroupId = "20001"; healthcare.DatawireId = "00011122233344455566"; healthcare.URL = "https://stg.dw.us.fdcnet.biz/rc"; healthcare.ApplicationId = "RAPIDCONNECTSRS"; healthcare.IndustryType = FdmsrchealthcareIndustryTypes.fhitRetail; healthcare.STAN = "112"; healthcare.TransactionNumber = "1234"; healthcare.OrderNumber = "123"; healthcare.ReferenceNumber = "123"; healthcare.Card.MagneticStripe = "B4012000033330026^FDCS TEST CARD /VISA^210410054321000000000000000 150 A"; healthcare.Card.EntryDataSource = EntryDataSources.edsTrack1; healthcare.TransactionAmount = "1200"; healthcare.TotalMedicalAmount = "1200"; healthcare.VisionAmount = "1200"; healthcare.Sale();
.NET Standard Notes
To call this method in an asynchronous manner call SaleAsync instead. When the method completes (or an error is encountered) the SaleCompleted event will fire.