FS::cust_pay_batch - Object methods for batch cards
use FS::cust_pay_batch;
$record = new FS::cust_pay_batch \%hash; $record = new FS::cust_pay_batch { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::cust_pay_batch object represents a credit card transaction ready to be batched (sent to a processor). FS::cust_pay_batch inherits from FS::Record. Typically called by the collect method of an FS::cust_main object. The following fields are currently supported:
Creates a new record. To add the record to the database, see insert.
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Delete this record from the database. If there is an error, returns the error, otherwise returns false.
#inactive # #Replaces the OLD_RECORD with this one in the database. If there is an error, #returns the error, otherwise returns false.
Checks all fields to make sure this is a valid transaction. If there is an error, returns the error, otherwise returns false. Called by the insert and repalce methods.
$Id: cust_pay_batch.html,v 1.2 2000-03-03 18:22:43 ivan Exp $
There should probably be a configuration file with a list of allowed credit card types.