ccvs_reverse

string ccvs_reverse(string session, string invoice) 

Reverses an authorized transaction.

Returns:

OK on success; on error, bad invoice, duplicate invoice, invalid request, uninitialized, or unknown

Description:

cvs_reverse() reverses a transaction that was previously authorized using ccvs_auth(). session must be a valid session ID as returned by ccvs_init().

Version:

PHP 4 since 4.0.2

Example:

Reverse an authorized transaction
echo "Attempting to reverse the transaction:\n"; 
$ret = ccvs_reverse($session, 'foo'); 
echo "Returned: '$ret'; Return type: " . gettype($ret) . "\n"; 
echo "Textvalue: " . ccvs_textvalue($session) . "\n\n"; 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.