September 2001
Intermediate to advanced
768 pages
32h 45m
English
string ccvs_void(string session, string invoice)
Voids a completed transaction.
Returns:
OK on success; on error, bad invoice, duplicate invoice, invalid request, uninitialized, or unknown
Description:
ccvs_void() voids a transaction that was already processed with ccvs_sale() or ccvs_return(). session must be a valid session ID as returned by ccvs_init().
To reverse a transaction that has been authorized but not yet processed by ccvs_sale() or ccvs_return(), use ccvs_reverse() instead.
Version:
PHP 4 since 4.0.2
Example:
if (($ret = ccvs_void($session, 'foo')) !== 'OK') {
echo "Failed ($ret): " . ccvs_textvalue($session) . "\n";
}
|
Read now
Unlock full access