NAME
Business::CyberSource::Client - User Agent Responsible for transmitting the Response
VERSION
version 0.007008
SYNOPSIS
use Business::CyberSource::Client;
my $request = 'Some Business::CyberSource::Request Object';
my $client = Business::CyberSource::Request->new({
username => 'Merchant ID',
password => 'API KEY',
production => 0,
});
my $response = $client->run_transaction( $request );
DESCRIPTION
A service object that is meant to provide a way to run the requested transactions.
METHODS
run_transaction
my $response = $client->run_transaction( $request );
Takes a Business::CyberSource::Request subclass as a parameter and returns a Business::CyberSource::Response
ATTRIBUTES
username
CyberSource Merchant ID
password
CyberSource API KEY
production
Boolean value when true your requests will go to the production server, when false they will go to the testing server
debug
Integer value that causes the HTTP request/response to be output to STDOUT when a transaction is run. defaults to value of the environment variable PERL_BUSINESS_CYBERSOURCE_DEBUG
.
rules
ArrayRef of Rule Names. Rules names are modules prefixed by Business::CyberSource::Rule. By default both Business::CyberSource::Rule::ExpiredCard and Business::CyberSource::Rule::RequestIDisZero are included. If you decide to add more rules remember to add qw( ExpiredCard RequestIDisZero )
to the new ArrayRef ( if you want them ).
dumper_package
Package name for dumping the request hash if doing a debug. Package must have a Dumper
function.
name
Client Name defaults to Business::CyberSource
version
Client Version defaults to the version of this library
env
defaults to specific parts of perl's config hash
cybs_wsdl
A Path::Class::File to the WSDL definition file
cybs_xsd
A Path::Class::File to the XSD definition file
cybs_api_version
CyberSource API version, currently 1.71
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/hostgator/business-cybersource/issues or by email to development@hostgator.com.
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Caleb Cushing <xenoterracide@gmail.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by HostGator.com.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
2 POD Errors
The following errors were encountered while parsing the POD:
- Around line 370:
Expected text after =item, not a number
- Around line 374:
Expected text after =item, not a number