OriginalTransactionType Property
Indicates whether the original transaction was an auth-only or a sale.
Syntax
ptechreversal.getOriginalTransactionType([callback]) ptechreversal.setOriginalTransactionType( originalTransactionType, [callback])
Possible Values
0 (ottSale), 1 (ottAuthOnly), 2 (ottCaptureForce), 3 (ottCredit), 4 (ottDebitSale), 5 (ottDebitSaleCashback), 6 (ottDebitCredit), 7 (ottGiftCardAddValue), 8 (ottGiftCardActivateCard), 9 (ottGiftCardRedeemCard), 10 (ottGiftCardDeactivateCard), 11 (ottGiftCardReactivateCard)
Default Value
0
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 getOriginalTransactionType([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 setOriginalTransactionType([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
When reversing a transaction you must indicate whether the original transaction was an Auth-only transaction, a Sale transaction, a Capture/Force (Voice Authorization) transaction, or a Credit (Refund) transaction.
If reversing a Debit transaction, you must specify whether the original transaction was a DebitSale, DebitSaleCashback (a Debit Sale transaction in which a Cashback amount was specified), or a DebitCredit (Credit transaction using a Debit card).
If reversing a Gift Card transaction, you must specify whether the original transaction was a AddValue, ActivateCard, RedeemCard, DeactivateCard or a ReactivateCard.
This is so the host can match the reversal to the original authorization.
Data Type
Integer