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

Sale Method

Sends a Sale transaction to the host.

Syntax

void __fastcall 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 component.

The EBT card may be specified by either a CardMagneticStripe returned by a card reader, (Track2 only), or manually entered through the CardNumber. CardExpMonth, and CardExpYear.

The ResponseCode and ResponseText properties indicate whether this transaction was successful. For example:

Manually-keyed Cash Benefits transaction with cash back:

component.CardEntryDataSource = dsManuallyEntered
component.CardNumber = "9999999800002773"
component.CardExpMonth = 12
component.CardExpYear = 2009
component.CardPIN = "623F36B53CC18393"
component.CardKSN = "000000008F000021"
component.BenefitType = btCashBenefits
component.TransactionAmount = "25.00" '$20 purchase with $5 cash back  
component.CashBack = "5.00"
component.Sale()

Swiped Food Stamp transaction:

component.CardEntryDataSource = dsTrack2
component.CardMagneticStripe = "9999999800002773=09121015432112345678"   
component.CardPIN = "623F36B53CC18393"
component.CardKSN = "000000008F000021"
component.BenefitType = btFoodStamps
component.TransactionAmount = "25.00"  'Cash back not supported for food stamps!
component.Sale()

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