NAME

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

VERSION

version 0.009000

SYNOPSIS

use Business::CyberSource::Client;

my $request = 'Some Business::CyberSource::Request Object';

my $client = Business::CyberSource::Request->new({
	user => 'Merchant ID',
	pass => 'API KEY',
	test => 1,
});

my $response = $client->run_transaction( $request );

DESCRIPTION

A service object that is meant to provide a way to run the requested transactions.

WITH

MooseY::RemoteHelper::Role::Client

METHODS

submit

my $response = $client->submit( $request );

Takes a Business::CyberSource::Request subclass as a parameter and returns a Business::CyberSource::Response

run_transaction

DEPRECATED, use "submit"

ATTRIBUTES

user

CyberSource Merchant ID

pass

CyberSource API KEY

test

Boolean value when false your requests will go to the live server, when true 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

value 0

no output (default)

value 1

request/response hashref

value 2

1 plus actual HTTP and XML

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 ).

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) 2013 by Caleb Cushing <xenoterracide@gmail.com>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)