Business::CyberSource::Report - Factory class for modules that retrieve CyberSource's XML reports.
Version 1.1.5
use Business::CyberSource::Report; use Business::CyberSource::Report::Test; # Generate a report factory. my $report_factory = Business::CyberSource::Report->new( merchant_id => $merchant_id, username => $username, password => $password, use_production_system => $use_production_system, ); # Use the factory to get a Business::CyberSource::Report::Test object with # the correct connection parameters. my $test_report = $report_factory->build( 'test' ); # Retrieve a list of the report modules that have been loaded in memory, # either via "use" or a require by build() my $available_reports = $report_factory->list_loaded();
Create a new Business::CyberSource::Report factory object.
my $report_factory = Business::CyberSource::Report->new( merchant_id => $merchant_id, username => $username, password => $password, use_production_system => $use_production_system, );
Parameters:
merchant_id: a merchant ID provided by CyberSource.
username/password: login access information you can create in CyberSource's production Business Center. The access will be automatically available then in the test Business Center. Don't forget to give that user reporting permissions.
use_production_system: whether queries should be sent to the production system (1) or the test system (0). Off by default.
Return a list of report modules that have been loaded, either via a "use" or dynamically when calling build().
my $loaded_report_modules = $report_factory->list_loaded();
Create a Business::CyberSource::Report::* object with the correct connection parameters.
# Use the factory to get a Business::CyberSource::Report::Test object with # the correct connection parameters. my $test_report = $report_factory->build( 'SingleTransaction' );
The submodule name, such as SingleTransaction for Business::CyberSource::Report::SingleTransaction.
Return the username to use to connect to the service.
my $username = $report_factory->get_username();
Return the password to use to connect to the service.
my $password = $report_factory->get_password();
Return the merchant ID to use to connect to the service.
my $merchant_id = $report_factory->get_merchant_id();
Return a boolean indicating whether the production system is used in queries. Otherwise, the Test Business Center is used.
my $use_production_system = $report_factory->use_production_system();
Guillaume Aubert, <aubertg at cpan.org>.
<aubertg at cpan.org>
Please report any bugs or feature requests to bug-business-cybersource-report at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=business-cybersource-report. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-business-cybersource-report at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Business::CyberSource::Report
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=business-cybersource-report
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/business-cybersource-report
CPAN Ratings
http://cpanratings.perl.org/d/business-cybersource-report
Search CPAN
http://search.cpan.org/dist/business-cybersource-report/
Thanks to ThinkGeek (http://www.thinkgeek.com/) and its corporate overlords at Geeknet (http://www.geek.net/), for footing the bill while I eat pizza and write code for them!
Copyright 2011-2012 Guillaume Aubert.
This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Business::CyberSource::Report, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CyberSource::Report
CPAN shell
perl -MCPAN -e shell install Business::CyberSource::Report
For more information on module installation, please visit the detailed CPAN module installation guide.