September 2001
Intermediate to advanced
768 pages
32h 45m
English
string ccvs_delete(string session, string invoice)
Deletes a transaction from a session.
Returns:
OK on success; on error, bad invoice, uninitialized, or unknown
ccvs_delete() attempts to delete the transaction with the invoice name given by invoice . You should always delete transactions when you’re done with them, to free the system resources they occupy and to allow you to reuse the invoice names.
Transactions can’t be deleted if they have a status of auth or ready. session must be a valid session ID as returned by ccvs_init().
Version:
PHP 4 since 4.0.2
Example:
echo "Deleting the invoice from the session:\n"; $ret = ccvs_delete($session, 'foo'); echo "Returned: '$ret'; Return type: " . gettype($ret) . ... |
Read now
Unlock full access