The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version v0.1.8

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

This attribute is required.

Additional documentation: Street address on credit card billing statement

ip

Reader: ip

Type: Str

Additional documentation: IP address that customer submitted transaction from

client_env

Reader: client_env

Type: Str

This attribute is required.

last_name

Reader: last_name

Type: Str

This attribute is required.

Additional documentation: Card Holder's last name

state

Reader: state

Type: Str

This attribute is required.

Additional documentation: State on credit card billing statement

email

Reader: email

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

This attribute is required.

currency

Reader: currency

Type: Str

This attribute is required.

city

Reader: city

Type: Str

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

This attribute is required.

Additional documentation: your merchantID

credit_card

Reader: credit_card

Type: MooseX::Types::CreditCard::CreditCard

This attribute is required.

zip

Reader: zip

Type: Str

This attribute is required.

Additional documentation: postal code on credit card billing statement

foreign_currency

Reader: foreign_currency

Type: Str

reference_code

Reader: reference_code

Type: Str

This attribute is required.

client_name

Reader: client_name

Type: Str

This attribute is required.

client_version

Reader: client_version

Type: Str

This attribute is required.

first_name

Reader: first_name

Type: Str

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)