Sale Method
Sends a Sale transaction to the host.
Syntax
public void sale();
Remarks
A basic sale transaction. This transaction decrements the cardholder's open-to-buy funds for the sale amount. This transaction is automatically added to the current open batch, and will be settled after the current batch is released with the PTechHostSettle bean. Sample transactions follow.
E-Commerce Sale transaction:
bean.IndustryType = itECommerce bean.GoodsIndicator = giPhysicalGoods bean.Card = new CCCard("4444333322221111", 1, 2010) bean.CustomerAddress = "123 Nowhere Ln." ' optional AVS data bean.CustomerZip = "90210" ' optional AVS data bean.TransactionAmount = "1.00" bean.Sale()
Retail Sale transaction:
bean.IndustryType = itRetail bean.Card = new CCCard("B4788250000028291^PAYMENTECH^05121015432112345678", dsTrack1) bean.TransactionAmount = "1.00" bean.Sale()
Retail manually keyed Sale transaction:
bean.IndustryType = itRetail bean.Card = new CCCard("4444333322221111", 1, 2010) bean.TransactionAmount = "1.00" bean.Sale()