September 2001
Intermediate to advanced
768 pages
32h 45m
English
string ccvs_sale(string session, string invoice)
Transfers funds from the customer to the merchant.
Returns:
OK on success; on error, bad invoice, duplicate invoice, invalid request, uninitialized, or unknown
Description:
ccvs_sale() takes a transaction, which must already have been approved with ccvs_auth(), and performs the actual fund transfer from the customer to the merchant. session must be a valid session ID as returned by ccvs_init().
Use ccvs_return() to move funds in the other direction; that is, from the merchant to the customer.
Version:
PHP 4 since 4.0.2
Example:
echo "Performing a sale transaction:\n"; $ret = ccvs_sale($session, 'foo'); echo "Returned: '$ret'; Return ... |
Read now
Unlock full access