Sale Method
Sends a Sale transaction to the host.
Syntax
ptechchargecontrol.SaleRemarks
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 control. Sample transactions follow.
E-Commerce Sale transaction:
control.IndustryType = itECommerce control.GoodsIndicator = giPhysicalGoods control.CardEntryDataSource = dsManuallyEntered control.CardNumber = "4444333322221111" control.CardExpMonth = 1 control.CardExpYear = 2010 control.CustomerAddress = "123 Nowhere Ln." ' optional AVS data control.CustomerZip = "90210" ' optional AVS data control.TransactionAmount = "1.00" control.Sale()
Retail Sale transaction:
control.IndustryType = itRetail control.CardEntryDataSource = dsTrack1 control.CardMagneticStripe = "B4788250000028291^PAYMENTECH^05121015432112345678" control.TransactionAmount = "1.00" control.Sale()
Retail manually keyed Sale transaction:
control.IndustryType = itRetail control.CardEntryDataSource = dsManuallyEntered control.CardNumber = "4444333322221111" control.CardExpMonth = 1 control.CardExpYear = 2010 control.TransactionAmount = "1.00" control.Sale()