ccvs_sale

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:

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

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.