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

NAME

Business::CyberSource::Request::Sale - Sale Request Object

VERSION

version 0.010008

SYNOPSIS

        use Business::CyberSource::Request::Sale;

        my $req
                = Business::CyberSource::Request::Sale->new({
                        reference_code => 't601',
                        bill_to => {
                                first_name  => 'Caleb',
                                last_name   => 'Cushing',
                                street      => 'somewhere',
                                city        => 'Houston',
                                state       => 'TX',
                                postal_code => '77064',
                                country     => 'US',
                                email       => 'xenoterracide@gmail.com',
                        },
                        purchase_totals => {
                                total    => 3000.00,
                                discount => 50.00, # optional
                                duty     => 10.00, # optional
                                currency => 'USD',
                        },
                        card => {
                                account_number => '4111-1111-1111-1111',
                                expiration     => {
                                        month => 9,
                                        year  => 2025,
                                },
                        },
                });

DESCRIPTION

A sale is a bundled authorization and capture. You can use a sale instead of a separate authorization and capture if there is no delay between taking a customer's order and shipping the goods. A sale is typically used for electronic goods and for services that you can turn on immediately.

EXTENDS

Business::CyberSource::Request::Authorization

ATTRIBUTES

capture_service

Sale does both authorization and capture and so needs another service attribute. It is built for you and cannot be modified.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/hostgator/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) 2017 by Caleb Cushing <xenoterracide@gmail.com>.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)