Package paypal.payflow
Class Response
java.lang.Object
paypal.payflow.BaseResponseDataObject
paypal.payflow.Response
Container class for response messages.
This class enclosed response data objects specific to
following:
<ol>
<li>Transaction response
-- Response messages common to all transactions.</li>
<li>Fraud response
-- Fraud Filters response messages.</li>
<li>Recurring response
-- Recurring transaction response messages.</li>
<li>Buyerauth response
-- Buyer auth response messages. (Not supported.)</li>
</ol>
<p>Additionally the Response class also contains the
transaction context, full request response string values.</p>
{@link FraudResponse}
{@link TransactionResponse}
{@link RecurringResponse}
{@link BuyerAuthResponse}
{@link Context}
Following example shows, how to obtain response
of a transaction and how to use it.
..........
// Trans is the transaction object.
* ...................
// Submit the transaction.
Response resp = trans.SubmitTransaction();
* <p>
if (resp != null)
{
// Get the Transaction Response parameters.
TransactionResponse trxnResponse = resp.getTransactionResponse();
if (trxnResponse!= null)
{
System.out.println("RESULT = " + trxnResponse.Result);
System.out.println("RESPMSG = " + trxnResponse.RespMsg);
}
* <p>
// Get the Recurring Response parameters.
RecurringResponse recurResponse = resp.getRecurringResponse();
if (recurResponse != null)
{
System.out.println("RPREF = " + recurResponse.getRPRef());
System.out.println("PROFILEID = " + recurResponse.getProfileId());
}
}
* <p>
// Get the Context and check for any contained SDK specific errors.
Context ctx = resp.getTransactionContext();
if (ctx != null & ctx.getErrorCount() > 0)
{
System.out.println( "Errors = " + ctx());
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the container object for all the buyer auth related response messages.Gets the transaction context populated with errors, if any.Gets the container object for all the express checkout related response messages for DO.Gets the container object for all the express checkout related response messages for GET.Gets the container object for all the express checkout related response messages for SET.Gets the container object for all the express checkout related response messages for SET.Gets the The arraylist containing the extend data objects populated with the response messages..Gets the container object for all the fraud filters related response messages.Gets the container object for all the recurring transaction related response messages.Gets the request id sent to the gateway.Gets the request string sent to the gateway.Gets the response string.Gets the container object for response messages common to all the transactions.protected voidprotected voidsetRequestString(String RequestString) Methods inherited from class paypal.payflow.BaseResponseDataObject
setParams
-
Constructor Details
-
Response
public Response()Constructor -
Response
Constructor- Parameters:
RequestId- StringTrxContext- String
-
-
Method Details
-
getFraudResponse
Gets the container object for all the fraud filters related response messages.FraudResponse- Returns:
- - FraudResponse
-
getEcGetResponse
Gets the container object for all the express checkout related response messages for GET.ECGetResponse- Returns:
- - ECGetResponse
-
getEcSetResponse
Gets the container object for all the express checkout related response messages for SET.ExpressCheckoutResponse- Returns:
- - ExpressCheckoutResponse
-
getEcUpdateResponse
Gets the container object for all the express checkout related response messages for SET.ExpressCheckoutResponse- Returns:
- - ExpressCheckoutResponse
-
getBuyerAuthResponse
Gets the container object for all the buyer auth related response messages.BuyerAuthResponse- Returns:
- - BuyerAuthResponse
-
getRecurringResponse
Gets the container object for all the recurring transaction related response messages.RecurringResponse- Returns:
- - RecurringResponse
-
getEcDoResponse
Gets the container object for all the express checkout related response messages for DO.ECDoResponse- Returns:
- - ECDoResponse
-
getTransactionResponse
Gets the container object for response messages common to all the transactions.TransactionResponse- Returns:
- - TransactionResponse
-
getContext
Gets the transaction context populated with errors, if any.Context- Returns:
- - Context
-
getExtDataList
Gets the The arraylist containing the extend data objects populated with the response messages..ExtendData- Returns:
- - ArrayList
-
getRequestString
Gets the request string sent to the gateway.- Returns:
- - String
-
getResponseString
Gets the response string.- Returns:
- - String
-
getRequestId
Gets the request id sent to the gateway.- Returns:
- - String
-
setRequestString
-
setParams
- Overrides:
setParamsin classBaseResponseDataObject- Parameters:
Response- String
-