E-Payment Integrator 2016 Node.js Edition
E-Payment Integrator 2016 Node.js Edition
Questions / Feedback?

CardType Property

Type of credit card being used in this transaction.

Syntax

 icharge.getCardType([callback])
 icharge.setCardType( cardType, [callback])

Possible Values

  0 (ctUnknown), 
  1 (ctVisa), 
  2 (ctMasterCard), 
  3 (ctAMEX), 
  4 (ctDiscover), 
  5 (ctDiners), 
  6 (ctJCB), 
  7 (ctVisaElectron), 
  8 (ctMaestro), 
  10 (ctLaser)

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 getCardType([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 setCardType([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

Type of credit card being used in this transaction. This property contains the customer's credit card type. This is automatically computed after the CardNumber is set, but it can also be changed manually. A list of valid card types is included below.

ctUnknown (0) Invalid or unknown prefix, card type not known.
ctVisa (1) Visa or Delta Card.
ctMasterCard (2) MasterCard.
ctAMEX (3) American Express Card.
ctDiscover (4) Discover Card.
ctDiners (5) Diners Club or Carte Blanche Card.
ctJCB (6) JCB Card.
ctVisaElectron (7) Visa Electron Card (runs as a Visa for most gateways)
ctMaestro (8) Maestro Card
ctLaser (10) Laser Card (Ireland)

This property is not available at design time.

Data Type

Integer

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
E-Payment Integrator 2016 Node.js Edition - Version 16.0 [Build 7240]