Business::CyberSource::Request - Abstract Request Class
version 0.004006
extends Business::CyberSource::Message
Here are the provided Request subclasses.
Authorization
AuthReversal
Capture
Follow-On Credit
Stand Alone Credit
DCC
Sale
note: You can use the Business:CyberSource::Request::Credit class but, it requires traits to be applied depending on the type of request you need, and thus does not currently work with the factory.
returns a hashref suitable for passing to XML::Compile::SOAP
DEPRECATED consider using Business::CyberSource::RequestFactory instead
( $implementation, { hashref for new } )
Create a new request object. create takes a request implementation and a hashref to pass to the implementation's new method. The implementation string accepts any implementation whose package name is prefixed by Business::CyberSource::Request::.
create
new
Business::CyberSource::Request::
my $req = $factory->create( 'Capture', { first_name => 'John', last_name => 'Smith', ... } );
Please see the following Business::CyberSource::Request:: packages for implementation and required attributes:
Reader: foreign_amount
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
Reader: comments
Type: Str
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
Additional documentation: Card Verification Numbers
Reader: total
Additional documentation: Grand total for the order. You must include either this field or item_#_unitPrice in your request
Reader: cc_exp_month
This attribute is required.
Additional documentation: Two-digit month that the credit card expires in. Format: MM.
Reader: card_type
Type: MooseX::Types::CyberSource::CardTypeCode
Additional documentation: Type of card to authorize
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
Customer's credit card number
Reader: reference_code
Type: MooseX::Types::CyberSource::_VarcharFifty
Reader: cv_indicator
Type: MooseX::Types::CyberSource::CvIndicator
Flag that indicates whether a CVN code was sent
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
Reader: exchange_rate
Reader: exchange_rate_timestamp
Reader: full_name
Type: MooseX::Types::CyberSource::_VarcharSixty
Reader: cc_exp_year
Four-digit year that the credit card expires in. Format: YYYY.
Reader: foreign_currency
Billing currency returned by the DCC service. For the possible values, see the ISO currency codes
Reader: items
Type: ArrayRef[MooseX::Types::CyberSource::Item]
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.