Business::CyberSource::Request::Authorization - CyberSource Authorization Request object
version v0.2.1
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;
This allows you to create an authorization request.
Instantiates a request object, see the attributes listed below for which ones are required and which are optional.
Actually sends the required data to CyberSource for processing and returns a Business::CyberSource::Response object.
Reader: street
Type: MooseX::Types::Varchar::Varchar[60]
This attribute is required.
Additional documentation: Street address on credit card billing statement
Reader: ip
Type: MooseX::Types::Varchar::Varchar[15]
Additional documentation: IP address that customer submitted transaction from
Reader: client_env
Type: Str
Reader: cybs_wsdl
Type: MooseX::Types::Path::Class::File
Reader: cv_indicator
Type: MooseX::Types::Varchar::Varchar[1]
Additional documentation: Flag that indicates whether a CVN code was sent
Reader: last_name
Additional documentation: Card Holder's last name
Reader: state
Type: MooseX::Types::Varchar::Varchar[2]
Additional documentation: State on credit card billing statement
Reader: email
Type: MooseX::Types::Email::EmailAddress
Additional documentation: Customer's email address, including the full domain name
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
Reader: trace
Writer: trace
Type: XML::Compile::SOAP::Trace
Reader: city
Type: MooseX::Types::Varchar::Varchar[50]
Additional documentation: City on credit card billing statement
Reader: password
Type: MooseX::Types::Common::String::NonEmptyStr
Additional documentation: your SOAP transaction key
Reader: production
Type: Bool
Additional documentation: 0: test server. 1: production server
Reader: country
Type: MooseX::Types::Locale::Country::Alpha2Country
Additional documentation: ISO 2 character country code (as it would apply to a credit card billing statement)
Reader: cybs_api_version
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
Reader: cc_exp_month
Type: Int
Reader: total
Type: Num
Reader: cc_exp_year
Reader: username
Type: MooseX::Types::Varchar::Varchar[30]
Additional documentation: Your CyberSource merchant ID. Use the same merchantID for evaluation, testing, and production
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
Reader: card_type
Type: MooseX::Types::Varchar::Varchar[3]
Reader: zip
Type: MooseX::Types::Varchar::Varchar[10]
Additional documentation: postal code on credit card billing statement
Reader: cybs_xsd
Reader: street2
Additional documentation: Second line of the billing street address.
Reader: foreign_currency
Reader: reference_code
Reader: client_name
Reader: client_version
Reader: first_name
Additional documentation: Card Holder's first name
Business::CyberSource::Request
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.
Caleb Cushing <xenoterracide@gmail.com>
This software is Copyright (c) 2011 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Business::CyberSource, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CyberSource
CPAN shell
perl -MCPAN -e shell install Business::CyberSource
For more information on module installation, please visit the detailed CPAN module installation guide.