<payment:storeCreditCard>

Stores a credit card number to a bank-provided, CISP-compliant storage mechanism.

The output of the tag is the bank-provided unique token that may be used later to initiate payments with the <payment:payment> tag (see <payment:creditCardGUID>).

<payment:useProcessor> must be called before using this tag.

The credit card details are provided through a set of tags nested within this tag. The specific tags required may be processor-specific, but the minimum set of nested tags will generally be:

The complete list of possible nested tags:

? indicates zero or one use allowed
! indicates exactly one use required

Tag Information

Tag Class: com.newmediaworks.taglib.payment.StoreCreditCardTag
TagExtraInfo Class: None
Body Content: JSP
Display Name: None

Attributes

Name Required Evaluation Type Description
cardNumber No Runtime String

Provides the card number.

Any non-numeric characters will be ignored.

A nested <payment:cardNumber> tag will override this value.

expirationMonth No Runtime byte

Provides the expiration month.

Must be in the range 1 to 12.

A nested <payment:expirationMonth> tag will override this value.

expirationYear No Runtime short

Provides the expiration year.

May be either a two-digit or four-digit year. If a two-digit year (or any number between 0 and 99), will be assumed to be in the current century.

A nested <payment:expirationYear> tag will override this value.

expirationDate No Runtime String

Provides the expiration month and year.

Must be in the format MM/YY or MM/YYYY.

Month must be in the range 1 to 12.

Year may be either a two-digit or four-digit year. If a two-digit year (or any number between 0 and 99), will be assumed to be in the current century.

A nested <payment:expirationDate> tag will override this value.

cardCode No Runtime String

Provides the CVV2 card security code (three or four digits).

A nested <payment:cardCode> tag will override this value.

firstName No Runtime String

Provides a first/given name.

A nested <payment:firstName> tag will override this value.

lastName No Runtime String

Provides a last/family name.

A nested <payment:lastName> tag will override this value.

companyName No Runtime String

Provides a company name.

A nested <payment:companyName> tag will override this value.

email No Runtime String

Provides the email address.

A nested <payment:email> tag will override this value.

phone No Runtime String

Provides the phone number of the customer.

A nested <payment:phone> tag will override this value.

fax No Runtime String

Provides the fax number of the customer.

A nested <payment:fax> tag will override this value.

customerId No Runtime String

Provides an application-specific customer identifier.

A nested <payment:customerId> tag will override this value.

customerTaxId No Runtime String

Provides the Social Security Number (SSN) or Employer Identification Number (EIN) of the customer.

A nested <payment:customerTaxId> tag will override this value.

streetAddress1 No Runtime String

Provides the street address (line 1).

A nested <payment:streetAddress1> tag will override this value.

streetAddress2 No Runtime String

Provides the street address (line 2).

A nested <payment:streetAddress2> tag will override this value.

city No Runtime String

Provides the city.

A nested <payment:city> tag will override this value.

state No Runtime String

Provides the state/province/prefecture.

A nested <payment:state> tag will override this value.

postalCode No Runtime String

Provides the ZIP/postal code.

A nested <payment:postalCode> tag will override this value.

countryCode No Runtime String

Provides a two-digit ISO 3166-1 alpha-2 country code.

A nested <payment:countryCode> tag will override this value.

comment No Runtime String

Provides the comment.

A nested <payment:comment> tag will override this value.

Variables

No Variables Defined.