CCInfo is a data structure used by the online financial transaction process to define a credit card transaction. The information common to processing all credit cards is set up by a call to w3HtmleComCCInfo and then optionally customized for each specific transaction.
Unlike a FlashConnect variable like w3Exec, there is no variable called CCInfo defined by FlashConnect. Wherever a CCInfo structure is needed, a programmer must create and populate it.
The attribute offsets within the CCInfo structure are defined in the w3ccInclude file and should be used as the values for each offset may change between releases.
The default values for these variables are retrieved by the w3HtmleComCCInfo program from the cc.CCInfo, cc.ATS, and cc.ClearingHouse files.
The CCInfo structure is:
CCInfo.name |
The name on the credit card. This value is cleared by w3HtmleComCCInfo. |
CCInfo.Num |
Credit card number without spaces or hyphens "-". This value is cleared by w3HtmleComCCInfo. |
CCInfo.Month |
The credit card expiration month, range is 1-12. This value is cleared by w3HtmleComCCInfo. |
CCInfo.Year |
The four digit credit card expiration year. This value is cleared by w3HtmleComCCInfo. |
CCInfo.Type |
Type of card. This value is defined by the clearing house and is not currently used. However, this value is cleared by w3HtmleComCCInfo. |
CCInfo.AuthOnly |
Used to pre-authorize the credit card charge. The amount is reserved, but not debited from the account. This value is set by w3HtmleComCCInfo which in turn gets the value from the cc.CCInfo file. Valid values are 1 or "". |
CCInfo.PostOnly |
This value is set by w3HtmleComCCInfo which in turn gets the value from the cc.CCInfo file. Valid values are 1 or "". |
CCInfo.PreCheck |
When set to 1, the CC.Validation template is inserted in the generated form so the credit card is validated before the form is submitted. This value is set by w3HtmleComCCInfo from the cc.CCInfo file. Valid values are 1 or "". |
CCInfo.Action |
This value is set by w3HtmleComCCInfo which is set in the cc.CCInfo file. It indicates the type of transaction expected by the clearing house. |
Example
Info = "" Info<CCInfo.name> = "John Doe" Info<CCInfo.Num> = "545454545454545454" Info<CCInfo.Month>= 1 Info<CCInfo.Year> = 1957 CALL w3HTMLeComCCInfo( CHID, ATSID, "MTPayment.html", Email, Info, Price, FormName) |