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

TransactionType Property

Indicates transaction type for this detail record.

Syntax

 ptechdetailrecord.getTransactionType([callback])
 ptechdetailrecord.setTransactionType( transactionType, [callback])

Possible Values

  1 (dttSale), 
  3 (dttCapture), 
  4 (dttHotelNoShow), 
  6 (dttCredit)

Default Value

1


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getTransactionType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setTransactionType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This property indicates the type of transaction that is being settled.

Note that only credit card transactions are supported here. EBT, Stored Value, Debit, and Canadian Debit cards must be processed with the Host Capture System, and cannot be manually settled.

dttSale (1)If the original transaction was a Sale (and not an Auth-only), the TransactionType will be set to dttSale after calling ParseAggregate. You should not then modify this value.
dttCapture (3)If the original transaction was an Auth-Only, the TransactionType will be set to dttCapture after calling ParseAggregate. This value may also be used to process voice authorization (Force) transactions. Simply fill out all of the detail record properties manually, and set the ApprovalCode property with the authorization code you received from the call center.
dttHotelNoShow (4)This is used only for the Hotel IndustryType, when a customer fails to show for his reservation.
dttCredit (6)This is a purely off-line TransactionType. It is used to credit a transaction from a previously settled batch. In this case the ApprovalCode is irrelevant, and all of the detail record properties must be filled manually. The SettlementAmount indicates the amount to be returned to the cardholder.

Note that transactions Voided with the PTechCharge class must be removed from the batch. Voided transactions must not be settled.

Data Type

Integer

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