Business::CyberSource::Request::StandAloneCredit - CyberSource Credit Request Object
version v0.3.6
use Business::CyberSource::Request::StandAloneCredit; my $req = Business::CyberSource::Request::StandAloneCredit->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 standalone credit.
Reader: street
Type: MooseX::Types::Varchar::Varchar[60]
This attribute is required.
Additional documentation: First line of the billing street address as it appears on the credit card issuer's records. alias: street1
street1
Reader: client_env
Type: Str
Additional documentation: provided by the library
Reader: cybs_wsdl
Type: MooseX::Types::Path::Class::File
Reader: state
Type: MooseX::Types::Varchar::Varchar[2]
Additional documentation: State or province of the billing address. Use the two-character codes. alias: province
province
Reader: email
Type: MooseX::Types::Email::EmailAddress
Additional documentation: Customer's email address, including the full domain name
Reader: trace
Writer: trace
Type: XML::Compile::SOAP::Trace
Reader: password
Type: MooseX::Types::Common::String::NonEmptyStr
Additional documentation: your SOAP transaction key
Reader: cybs_api_version
Reader: cvn
Type: MooseX::Types::CreditCard::CardSecurityCode
Additional documentation: Card Verification Numbers
Reader: cc_exp_month
Additional documentation: Two-digit month that the credit card expires in. Format: MM.
Reader: total
Type: MooseX::Types::Common::Numeric::PositiveOrZeroNum
Additional documentation: Grand total for the order. You must include either this field or item_#_unitPrice in your request
Reader: username
Type: MooseX::Types::Varchar::Varchar[30]
Additional documentation: Your CyberSource merchant ID. Use the same merchantID for evaluation, testing, and production
Reader: card_type
Type: MooseX::Types::CyberSource::CardTypeCode
Additional documentation: Type of card to authorize
Reader: credit_card
Type: MooseX::Types::CreditCard::CreditCard
Additional documentation: Customer's credit card number
Reader: zip
Type: MooseX::Types::Varchar::Varchar[10]
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: street2
Additional documentation: Second line of the billing street address.
Reader: reference_code
Type: MooseX::Types::Varchar::Varchar[50]
Reader: street3
Additional documentation: Third line of the billing street address.
Reader: ip
Type: MooseX::Types::NetAddr::IP::NetAddrIPv4
Additional documentation: Customer's IP address. alias: ip_address
ip_address
Reader: cv_indicator
Type: MooseX::Types::CyberSource::CvIndicator
Additional documentation: Flag that indicates whether a CVN code was sent
Reader: last_name
Additional documentation: Customer's last name. The value should be the same as the one that is on the card.
Reader: currency
Type: MooseX::Types::Locale::Currency::CurrencyCode
Reader: city
Additional documentation: City of the billing address.
Reader: production
Type: Bool
Additional documentation: 0: test server. 1: production server
Reader: street4
Additional documentation: Fourth line of the billing street 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: cc_exp_year
Type: MooseX::Types::Varchar::Varchar[4]
Additional documentation: Four-digit year that the credit card expires in. Format: YYYY.
Reader: cybs_xsd
Reader: client_name
Reader: client_version
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 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.
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.