Business::CyberSource::Request::Credit - CyberSource Credit Request Object
version 0.1.7
use Business::CyberSource::Request::Credit; my $req = Business::CyberSource::Request::Credit ->with_traits(qw{ BillingInfo CreditCardInfo }) ->new({ username => 'merchantID', password => 'transaction key', production => 0, reference_code => 'merchant reference code', first_name => 'Caleb', last_name => 'Cushing', street => 'somewhere', city => 'Houston', state => 'TX', zip => '77064', country => 'US', email => 'xenoterracide@gmail.com', total => 5.00, currency => 'USD', credit_card => '4111-1111-1111-1111', cc_exp_month => '09', cc_exp_year => '2025', }); my $res = $req->submit;
This object allows you to create a request for a credit. Their are two types of credits, a standalone credit, and a follow on credit.
For standalone credit requests requests you need to apply BillingInfo and CreditCardInfo roles. This is not necessary for follow on credits. Follow on credits require that you specify a request_id in order to work.
BillingInfo
CreditCardInfo
request_id
Instantiates a credit request object, see the attributes listed below for which ones are required and which are optional.
Actually sends the required data to CyberSource for processing and returns a Business::CyberSource::Response object.
Reader: client_env
Type: Str
This attribute is required.
Reader: currency
Reader: password
Additional documentation: your SOAP transaction key
Reader: production
Type: Bool
Additional documentation: 0: test server. 1: production server
Reader: server
Type: MooseX::Types::URI::Uri
Reader: request_id
Reader: total
Type: Num
Reader: username
Additional documentation: your merchantID
Reader: client_name
Reader: foreign_currency
Reader: reference_code
Reader: client_version
Business::CyberSource::Request
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) 2011 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.