Business::CyberSource::Request::Authorization - CyberSource Authorization Request object
version 0.004005
use Business::CyberSource::Request::Authorization; my $req = Business::CyberSource::Request::Authorization->new({ username => 'merchantID', password => 'transaction key', production => 0, 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', }); my $response = $req->submit; # or if you want to use items instead of just giving a total my $oreq = Business::CyberSource::Request::Authorization->new({ username => 'merchantID', password => 'transaction key', production => 0, 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', }); my $oresponse = $oreq->submit;
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.
Reader: foreign_amount
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
Reader: ignore_cv_result
Type: Bool
Reader: comments
Type: Str
Reader: state
Type: __ANON__
Additional documentation: State or province of the billing address. Use the two-character codes. alias: province
province
Reader: trace
Writer: _trace
Type: XML::Compile::SOAP::Trace
Reader: email
Type: MooseX::Types::Email::EmailAddress
This attribute is required.
Additional documentation: Customer's email address, including the full domain name
Reader: password
Type: MooseX::Types::Common::String::NonEmptyStr
Reader: postal_code
Type: MooseX::Types::CyberSource::_VarcharTen
Additional documentation: Postal code for the billing address. The postal code must consist of 5 to 9 digits. Required if country is "US" or "CA"alias: postal_code
country
postal_code
Reader: ignore_export_result
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
Additional documentation: Card Verification Numbers
Reader: phone_number
Type: MooseX::Types::CyberSource::_VarcharTwenty
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
Additional documentation: Two-digit month that the credit card expires in. Format: MM.
Reader: username
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
Additional documentation: Customer's credit card number
Reader: card_type
Type: MooseX::Types::CyberSource::CardTypeCode
Additional documentation: Type of card to authorize
Reader: street2
Type: MooseX::Types::CyberSource::_VarcharSixty
Additional documentation: Second line of the billing street address.
Reader: reference_code
Type: MooseX::Types::CyberSource::_VarcharFifty
Reader: street3
Additional documentation: Third line of the billing street address.
Type: MooseX::Types::Common::String::NumericCode
Reader: ignore_avs_result
Reader: last_name
Additional documentation: Customer's last name. The value should be the same as the one that is on the card.
Reader: cv_indicator
Type: MooseX::Types::CyberSource::CvIndicator
Additional documentation: Flag that indicates whether a CVN code was sent
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
Reader: city
Additional documentation: City of the billing address.
Reader: production
Reader: street4
Additional documentation: Fourth line of the billing street address.
Reader: ip_address
Type: MooseX::Types::NetAddr::IP::NetAddrIPv4
Additional documentation: Customer's IP address. alias: ip_address
ip_address
Reader: country
Type: MooseX::Types::CyberSource::CountryCode
Additional documentation: ISO 2 character country code (as it would apply to a credit card billing statement)
Reader: exchange_rate
Reader: exchange_rate_timestamp
Reader: ignore_validate_result
Reader: street1
Additional documentation: First line of the billing street address as it appears on the credit card issuer's records. alias: street1
street1
Reader: full_name
Reader: cc_exp_year
Additional documentation: Four-digit year that the credit card expires in. Format: YYYY.
Reader: dcc_indicator
Type: MooseX::Types::CyberSource::DCCIndicator
Reader: foreign_currency
Additional documentation: Billing currency returned by the DCC service. For the possible values, see the ISO currency codes
Reader: ignore_dav_result
Type: ArrayRef[MooseX::Types::CyberSource::AVSResult]
Reader: first_name
Additional documentation: Customer's first name.The value should be the same as the one that is on the card.
Reader: items
Type: ArrayRef[MooseX::Types::CyberSource::Item]
Instantiates a 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.
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.