Business::CyberSource::Request::Sale - Sale Request Object
version 0.006006
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, currency => 'USD', }, card => { account_number => '4111-1111-1111-1111', expiration => { month => 9, year => 2025, }, }, });
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.
Sale does both authorization and capture and so needs another service attribute. It is built for you and cannot be modified.
Business::CyberSource::Request::Authorization
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) 2012 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.