Caleb Cushing

NAME

Business::CyberSource::Request::Authorization - CyberSource Authorization Request object

VERSION

version v0.1.9

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

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

currency

Reader: currency

Type: MooseX::Types::Varchar::Varchar[5]

This attribute is required.

email

Reader: email

Type: MooseX::Types::Email::EmailAddress

This attribute is required.

Additional documentation: Customer's email address, including the full domain name

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: Str

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

server

Reader: server

Type: MooseX::Types::URI::Uri

This attribute is required.

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)

cvn

Reader: cvn

Type: Int

total

Reader: total

Type: Num

cc_exp_month

Reader: cc_exp_month

Type: Int

This attribute is required.

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

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::Varchar::Varchar[5]

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)