Validates the credit card for the current invoice.

Syntax:

o.validatecreditcard(lcStoreType, lcStoreName, lcPassword, lcVarParm, llCredit)
Return: .T. or .F. (sets the ccResult (APPROVED, DECLINED, FRAUD, FAILED) and ccResultx (Server Response) fields of the invoice
Parameters: lcStoreType
ACCESSPOINT, VERISIGIN or CLEARCOMMERCE

lcStoreName
Name of the Store (AccessPoint)
Username (Verisign Payflow)

lcPassword
Password (AccessPoint)

lcVarParm
Certificate File (For ClearCommerce only)

llCredit
if .t. issue a credit for the invoice amount (supported only by PayFlow)

Remarks: Requires that Credit card processing is enabled and set up.

See also:

Class cinvoice

Updated: 06/01/03 | Send topic feedback