Submits a credit transaction.
public void Credit();
Public Sub Credit()
This method credits funds to the card. This is not based on a previous transaction. This may be used to return funds to a card if a previous transaction has already been settled. To void or cancel a transaction before it has been settled call Reverse instead.
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 Credit 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.fhitEcommerce; healthcare.STAN = "112"; healthcare.TransactionNumber = "1234"; healthcare.OrderNumber = "123"; healthcare.ReferenceNumber = "123"; fdmsrchealthcare.MerchantURL = "4dpayments"; fdmsrchealthcare.Card.Number = "4264280001234559"; fdmsrchealthcare.Card.ExpMonth = 4; fdmsrchealthcare.Card.ExpYear = 2020; fdmsrchealthcare.Card.EntryDataSource = EntryDataSources.edsManualEntryNoCardReader; healthcare.TransactionAmount = "2000"; fdmsrchealthcare.ClinicAmount = "2000"; fdmsrchealthcare.DentalAmount = "2000"; fdmsrchealthcare.PrescriptionAmount = "2000"; fdmsrchealthcare.TotalMedicalAmount = "2000"; fdmsrchealthcare.Credit();;
.NET Standard Notes
To call this method in an asynchronous manner call CreditAsync instead. When the method completes (or an error is encountered) the CreditCompleted event will fire.