Sale Method
Sends a Sale transaction to the host.
Syntax
public void sale();
Remarks
A basic EBT sale transaction is similar to a Debit transaction, in that a CardPIN and CardKSN are required in addition to swiped or manually entered Card data. A Sale transaction removes funds from the EBT cardholder's account for the TransactionAmount indicated. This transaction is automatically added to the current open batch, and will be settled after the current batch is released with the PTechHostSettle bean.
The EBT card is specified by the Card property. Both swiped and manual-entry are supported.
The Code and Text fields indicate whether this transaction was successful. For example:
Manually-keyed Cash Benefits transaction with cash back:
bean.Card = new CCCard("9999999800002773", 12, 2009) bean.CardPIN = "623F36B53CC18393" bean.CardKSN = "000000008F000021" bean.BenefitType = btCashBenefits bean.TransactionAmount = "25.00" '$20 purchase with $5 cash back bean.CashBack = "5.00" bean.Sale()
Swiped Food Stamp transaction:
bean.Card = new CCCard("9999999800002773=09121015432112345678", dsTrack2) bean.CardPIN = "623F36B53CC18393" bean.CardKSN = "000000008F000021" bean.BenefitType = btFoodStamps bean.TransactionAmount = "25.00" 'Cash back not supported for food stamps! bean.Sale()