Caleb Cushing

NAME

Business::CyberSource::Response - Response Object

VERSION

version v0.2.3

DESCRIPTION

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, 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.

ATTRIBUTES

request_id

Reader: request_id

Type: MooseX::Types::Varchar::Varchar[29]

This attribute is required.

reason_text

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

decision

Reader: decision

Type: MooseX::Types::CyberSource::Decision

This attribute is required.

Additional documentation: Summarizes the result of the overall request

reason_code

Reader: reason_code

Type: Int

This attribute is required.

Additional documentation: Numeric value corresponding to the result of the credit card authorization request

TRAITS

Accept

This trait is applied if the decision is ACCEPT.

amount

Type: Num

Amount that was approved.

datetime

Type: MooseX::Types::DateTime::W3C::DateTimeW3C

A response timestamp (will probably become a DateTime object at some point)

reference_code

Type: MooseX::Types::Varchar::Varchar[50]

The merchant reference code originally sent

Reject

This trait is applied if the decision is Reject

request_token

The field is an encoded string that contains no confidential information, such as an account number or card verification number. The string can contain up to 256 characters.

BUGS

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.

AUTHOR

Caleb Cushing <xenoterracide@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Caleb Cushing.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)