From 51984ac3d3da3006809c6866fdecd4ad83610731 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Jul 2001 07:36:04 +0000 Subject: templates!!! --- httemplate/docs/man/FS/cust_pay_batch.html | 132 +++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 httemplate/docs/man/FS/cust_pay_batch.html (limited to 'httemplate/docs/man/FS/cust_pay_batch.html') diff --git a/httemplate/docs/man/FS/cust_pay_batch.html b/httemplate/docs/man/FS/cust_pay_batch.html new file mode 100644 index 000000000..c1c73c301 --- /dev/null +++ b/httemplate/docs/man/FS/cust_pay_batch.html @@ -0,0 +1,132 @@ + + +FS::cust_pay_batch - Object methods for batch cards + + + + + + + + + + + +
+

+

NAME

+

FS::cust_pay_batch - Object methods for batch cards

+

+


+

SYNOPSIS

+
+  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;
+

+


+

DESCRIPTION

+

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:

+
+
trancode - 77 for charges
+
+
cardnum
+
+
exp - card expiration
+
+
amount
+
+
invnum - invoice
+
+
custnum - customer
+
+
payname - name on card
+
+
first - name
+
+
last - name
+
+
address1
+
+
address2
+
+
city
+
+
state
+
+
zip
+
+
country
+
+
+

+


+

METHODS

+
+
new HASHREF
+
+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.

+

+
insert
+
+Adds this record to the database. If there is an error, returns the error, +otherwise returns false. +

+
delete
+
+Delete this record from the database. If there is an error, returns the error, +otherwise returns false. +

+
replace OLD_RECORD
+
+#inactive +# +#Replaces the OLD_RECORD with this one in the database. If there is an error, +#returns the error, otherwise returns false. +

+
check
+
+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. +

+

+


+

VERSION

+

$Id: cust_pay_batch.html,v 1.1 2001-07-30 07:36:03 ivan Exp $

+

+


+

BUGS

+

There should probably be a configuration file with a list of allowed credit +card types.

+

+


+

SEE ALSO

+

the FS::cust_main manpage, the FS::Record manpage

+ + + + -- cgit v1.2.1