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