Direct Payment Integrator V6 - Online Help
Direct Payment Integrator V6
Questions / Feedback?

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()

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 6.0.6240.0