Technical References - [validcard]

Checks legitimacy of credit card

numero = 293
interpreted = N
texte = Putting [validcard] into a template displays "T" or "F", depending on the value of the number in accountNum. If the accountNum is a legitimate credit card number for the specified card type (according to the algorithm used to create such numbers), then "T" indicates it is good. Conversely, "F" indicates it is bad. This does not call the bank to verify funds on the card -- it merely does a simple numeric checksum to verify the number is consistent with a credit card number, and not a randomly punched in string of numbers. You would use this tag to validate the credit card field on your order form BEFORE writing it to the shopping cart order file. If it evaluates to F, you can display an alert and ask the customer to please double-check the credit card before continuing. Example:
[validcard accountNum=cardNumber&card=VISA+MC]
ParameterDescription
accountNum(Required) The credit card number. Any extra spaces or non-numeric characters will be ignored.
card (Optional) Set card to the names of the credit cards that are allowed, separated by space or +. Possible values are ALL, IGNORE, VISA, MC, AMEX, DISC, JCB, DINER. If not specified, then ALL cards are allowed. IGNORE tells it to always pass the card regardless of its checksum.
Putting [validcard] into a template displays "T" or "F", depending on the value of the number in accountNum. If the accountNum is a legitimate credit card number for the specified card type (according to the algorithm used to create such numbers), then "T" indicates it is good. Conversely, "F" indicates it is bad. This does not call the bank to verify funds on the card -- it merely does a simple numeric checksum to verify the number is consistent with a credit card number, and not a randomly punched in string of numbers. You would use this tag to validate the credit card field on your order form BEFORE writing it to the shopping cart order file. If it evaluates to F, you can display an alert and ask the customer to please double-check the credit card before continuing.

Example:

[validcard accountNum=cardNumber&card=VISA+MC]


ParameterDescription
accountNum(Required) The credit card number. Any extra spaces or non-numeric characters will be ignored.
card (Optional) Set card to the names of the credit cards that are allowed, separated by space or +. Possible values are ALL, IGNORE, VISA, MC, AMEX, DISC, JCB, DINER. If not specified, then ALL cards are allowed. IGNORE tells it to always pass the card regardless of its checksum.

DOWNLOAD WEBDNA NOW!

Top Articles:

F.A.Q

A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Modules

A list of the currently available modules...

Tips and Tricks

A list of user-submitted tips ...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

[!]

Hides text...

[random]

will display a random number...

[writefile]

[writefile] functions allows you to perform a wide variety of tasks...

[object]

Embeds the results of an external function...

[search]

Use the [Search] context with [founditems] to easily retrieve records from your databases...

[encrypt]

[encrypt] and [decrypt] allow you to store sensitive data in your databases without risk of exposing it to prying eyes...