NAME
Business::CyberSource::Request::Authorization - CyberSource Authorization Request object
VERSION
version v0.2.2
SYNOPSIS
use Business::CyberSource::Request::Authorization;
my $req = Business::CyberSource::Request::Authorization->new({
username => 'merchantID',
password => 'transaction key',
production => 0,
reference_code => '42',
first_name => 'Caleb',
last_name => 'Cushing',
street => '100 somewhere st',
city => 'Houston',
state => 'TX',
zip => '77064',
country => 'US',
email => 'xenoterracide@gmail.com',
total => 5.00,
currency => 'USD',
credit_card => '4111111111111111',
cc_exp_month => '09',
cc_exp_year => '2025',
});
my $response = $req->submit;
DESCRIPTION
This allows you to create an authorization request.
METHODS
new
Instantiates a request object, see the attributes listed below for which ones are required and which are optional.
submit
Actually sends the required data to CyberSource for processing and returns a Business::CyberSource::Response object.
ATTRIBUTES
street
Reader: street
Type: MooseX::Types::Varchar::Varchar[60]
This attribute is required.
Additional documentation: Street address on credit card billing statement
ip
Reader: ip
Type: MooseX::Types::Varchar::Varchar[15]
Additional documentation: IP address that customer submitted transaction from
client_env
Reader: client_env
Type: Str
cybs_wsdl
Reader: cybs_wsdl
Type: MooseX::Types::Path::Class::File
cv_indicator
Reader: cv_indicator
Type: MooseX::Types::Varchar::Varchar[1]
Additional documentation: Flag that indicates whether a CVN code was sent
last_name
Reader: last_name
Type: MooseX::Types::Varchar::Varchar[60]
This attribute is required.
Additional documentation: Card Holder's last name
state
Reader: state
Type: MooseX::Types::Varchar::Varchar[2]
This attribute is required.
Additional documentation: State on credit card billing statement
Reader: email
Type: MooseX::Types::Email::EmailAddress
This attribute is required.
Additional documentation: Customer's email address, including the full domain name
currency
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
This attribute is required.
trace
Reader: trace
Writer: trace
Type: XML::Compile::SOAP::Trace
city
Reader: city
Type: MooseX::Types::Varchar::Varchar[50]
This attribute is required.
Additional documentation: City on credit card billing statement
password
Reader: password
Type: MooseX::Types::Common::String::NonEmptyStr
This attribute is required.
Additional documentation: your SOAP transaction key
production
Reader: production
Type: Bool
This attribute is required.
Additional documentation: 0: test server. 1: production server
country
Reader: country
Type: MooseX::Types::Locale::Country::Alpha2Country
This attribute is required.
Additional documentation: ISO 2 character country code (as it would apply to a credit card billing statement)
cybs_api_version
Reader: cybs_api_version
Type: Str
cvn
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
cc_exp_month
Reader: cc_exp_month
Type: Int
This attribute is required.
total
Reader: total
Type: Num
cc_exp_year
Reader: cc_exp_year
Type: Int
This attribute is required.
username
Reader: username
Type: MooseX::Types::Varchar::Varchar[30]
This attribute is required.
Additional documentation: Your CyberSource merchant ID. Use the same merchantID for evaluation, testing, and production
credit_card
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
This attribute is required.
card_type
Reader: card_type
Type: MooseX::Types::Varchar::Varchar[3]
zip
Reader: zip
Type: MooseX::Types::Varchar::Varchar[10]
This attribute is required.
Additional documentation: postal code on credit card billing statement
cybs_xsd
Reader: cybs_xsd
Type: MooseX::Types::Path::Class::File
street2
Reader: street2
Type: MooseX::Types::Varchar::Varchar[60]
Additional documentation: Second line of the billing street address.
foreign_currency
Reader: foreign_currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
reference_code
Reader: reference_code
Type: MooseX::Types::Varchar::Varchar[50]
This attribute is required.
client_name
Reader: client_name
Type: Str
client_version
Reader: client_version
Type: Str
first_name
Reader: first_name
Type: MooseX::Types::Varchar::Varchar[60]
This attribute is required.
Additional documentation: Card Holder's first name
SEE ALSO
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)