NAME

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

VERSION

version 0.004007

SYNOPSIS

        use Business::CyberSource::Request::Authorization;

        my $req = Business::CyberSource::Request::Authorization->new({
                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',
        });

        # or if you want to use items instead of just giving a total

        my $oreq = Business::CyberSource::Request::Authorization->new({
                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',
                currency       => 'USD',
                items          => [
                        {
                                unit_price => 1000.00,
                                quantity   => 2,
                        },
                        {
                                unit_price => 1000.00,
                                quantity   => 1,
                        },
                ],
                credit_card    => '4111111111111111',
                cc_exp_month   => '09',
                cc_exp_year    => '2025',
        });

DESCRIPTION

Offline authorization means that when you submit an order using a credit card, you will not know if the funds are available until you capture the order and receive confirmation of payment. You typically will not ship the goods until you receive this payment confirmation. For offline credit cards, it will take typically five days longer to receive payment confirmation than for online cards.

inherits

Business::CyberSource::Request

composes

Business::CyberSource::Request::Role::BillingInfo
Business::CyberSource::Request::Role::PurchaseInfo
Business::CyberSource::Request::Role::CreditCardInfo
Business::CyberSource::Request::Role::BusinessRules
Business::CyberSource::Request::Role::DCC

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)