NAME

Business::CyberSource::Client - User Agent Responsible for transmitting the Response

VERSION

version 0.005000

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

Boolean 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

ignore_skipable

requests with expired credit cards are currently "skip-able" and will not be sent by default, instead you will get a response object that has filled out the most important parts of a REJECT response and mocked other required fields. If you want to send these requests always set this in the client.

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/xenoterracide/Business-CyberSource/issues

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) 2011 by Caleb Cushing.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)