Business::CyberSource::Response - Response Object
version v0.3.8
Every time you call submit on a request object it returns a response object. This response can be used to determine the success of a transaction, as well as receive a follow up request_id in case you need to do further actions with this. A response will always have decision, reason_code, reason_text, request_token, and request_id attributes. You should always use either introspection or check the decision to determine which attributes will be defined, as what is returned by CyberSource varies depending on what the decision is and what was sent in the request itself.
submit
request_id
decision
reason_code
reason_text
request_token
All of the responses contain the attributes here, however if the response is ACCEPT you will want to read the documentation for the Accept Role
ACCEPT
Reader: reason_text
Type: Str
This attribute is required.
Additional documentation: official description of returned reason code. warning: reason codes are returned by CyberSource and occasionally do not reflect the real reason for the error please inspect the trace request/response for issues
Reader: request_id
Type: MooseX::Types::Varchar::Varchar[29]
Reader: decision
Type: MooseX::Types::CyberSource::Decision
Additional documentation: Summarizes the result of the overall request
Reader: reason_code
Type: Int
Additional documentation: Numeric value corresponding to the result of the credit card authorization request
Reader: request_token
Type: MooseX::Types::Varchar::Varchar[256]
Additional documentation: Request token data created by CyberSource for each reply. The field is an encoded string that contains no confidential information, such as an account or card verification number. The string can contain up to 256 characters.
Reader: accepted
Type: Bool
Additional documentation: boolean way of determining whether the transaction was accepted
Type: Num
Condition: ACCEPT
Amount that was approved.
Type: MooseX::Types::Locale::Currency
Currency code which was used to make the request
Type: MooseX::Types::DateTime::W3C::DateTimeW3C
Request timestamp (will probably become a DateTime object at some point)
Type: MooseX::Types::Varchar::Varchar[50]
The merchant reference code originally sent
Every successful request also has a reason code specific to its request type, e.g. for capture this is the ccCaptureReply_reasonCode.
Type: MooseX::Types::Varchar::Varchar[10]
Condition: ACCEPT and be either an Authorization or Authorization Reversal
Condition: ACCEPT and be either a Credit or Capture
Type: MooseX::Types::Varchar::Varchar[1]
Condition: ACCEPT and Authorization
Type: MooseX::Types::Varchar::Varchar[7]
Condition: ACCEPT, Authorization, and cv_code actually returned
you can use predicate has_cv_code to check if attribute is defined
Condition: ACCEPT, Authorization, and cv_code_raw actually returned
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.