ccvs_return

string ccvs_return(string session, string invoice) 

Transfers funds from the merchant to the customer.

Returns:

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

Description:

ccvs_return() executes a transaction that has been set up to move funds from the merchant to the customer, as in the case of the customer returning a previously purchased product. session must be a valid session ID as returned by ccvs_init().

Use ccvs_sale() to move funds in the other direction; that is, from the customer to the merchant.

Version:

PHP 4 since 4.0.2

Example:

Transfer funds from the merchant to the customer
 echo "Performing a return transaction:\n"; $ret = ccvs_return($session, 'foo'); echo "Returned: ...

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.