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

IsCommercialCard Method

Indicates whether or not the CardNumber is for a commercial/purchasing card.

Syntax

globalcardvalidator.isCommercialCard([callback])

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 this 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.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

This method queries the Global Payments servers as to whether or not the credit card number specified by CardNumber is a commercial card. The Global Payments server compares the card prefix against the latest BIN ranges to determine this. However, please note that due to the dynamic nature of card BIN ranges, not all Commercial/Purchasing cards can be determined by this method. Developers should keep this in mind when designing applications.

The CardNumber is the only property required for this method. If the CardNumber does fall within a Commercial or Purchasing card BIN range, the IsCommercialCard method will return True. If it is not - or if the transaction fails, this method will return False.

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