% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::payment_gateway - Object methods for payment_gateway records
use FS::payment_gateway;
$record = new FS::payment_gateway \%hash;
$record = new FS::payment_gateway { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::payment_gateway object represents an payment gateway. FS::payment_gateway inherits from FS::Record. The following fields are currently supported:
Creates a new payment gateway. To add the payment gateway 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.
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 payment gateway. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns any agent overrides for this payment gateway.
Disables this payment gateway: deletes all associated agent_payment_gateway overrides and sets the disabled field to "Y".
Returns a semi-friendly label for the gateway.
returns a friendly name for the namespace
For BatchPayment gateways only. Returns a Business::BatchPayment::Processor object to communicate with the gateway.
OPTIONS will be passed to the constructor, along with any gateway options in the database for this FS::payment_gateway. Useful things to include there may include 'input' and 'output' (to direct transport to files), 'debug', and 'test_mode'.
If the global 'business-batchpayment-test_transaction' flag is set, 'test_mode' will be forced on, and gateways that don't support test mode will be disabled.
Loads the module for the processor and returns an instance of it.
FS::Record, schema.html from the base documentation.