ResponseCommercialCard Property
Indicates whether the credit card charged is a corporate commercial card.
Syntax
fdmsomaharestaurant.getResponseCommercialCard([callback])
Possible Values
0 (octNotCommercial), 1 (octReviseTax), 2 (octReviseCode), 3 (octReviseTaxCode), 4 (octCommercial)
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 getResponseCommercialCard([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 setResponseCommercialCard([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
Indicates whether the credit card charged is a corporate commercial card. In some cases, additional data is required to be sent for the transaction to be processed as a commercial card.
The available values are:
Value | Description |
octNotCommercial (0) | Not a Commercial Card |
octReviseTax (1) | Commercial Card, Sales Tax required for Settlement, Revised transaction required. |
octReviseCode (2) | Commercial Card, Customer Code required for Settlement, Revised transaction required. |
octReviseTaxCode (3) | Commercial Card, Sales Tax and Customer Code Required for Settlement, Revised transaction required. |
octCommercial (4) | Commercial Card, Sales Tax and Customer Code Present, edit not required. |
Note when a octReviseTax, octReviseCode, or octReviseTaxCode response is received, the transaction must be revised specifying the requested information (either Sales Tax, Customer Code, or both) to qualify as a Level 2 transaction. Revising a transaction is accomplished via the FDMSOmahaDetailRecord component and setting the TransactionType to ottRevise.
This property is read-only.
Data Type
Integer