Class RecurringInquiryTransaction
This class is used to perform a recurring transaction with
Inquiry action.
* <p>
RecurringInquiryTransaction is used to request two different sets of information:
To view the full set of payment information for a profile, include the
PAYMENTHISTORY=Y name/value pair with the Inquiry action.
To view the status of a customer's profile, submit an Inquiry action that does
not include the PAYMENTHISTORY parameter (alternatively, submit
PAYMENTHISTORY=N).
</p>
...............
// Populate data objects
...............
* <p>
//Set the Recurring related information.
RecurringInfo recurInfo = new RecurringInfo();
recurInfo.setOrigProfileId ("RT0000001350");
* <p>
// Create a new Recurring Inquiry Transaction.
RecurringInquiryTransaction trans = new RecurringInquiryTransaction(
user, connection, recurInfo, PayflowUtility.getRequestId());
* <p>
// 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.getResult());
System.out.println("RESPMSG = " + trxnResponse.getRespMsg());
}
* <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());
System.out.println("STATUS = " + recurResponse.getStatus());
System.out.println("PROFILENAME = " + recurResponse.getProfileName());
System.out.println("START = " + recurResponse.getStart());
System.out.println("TERM = " + recurResponse.getTerm());
System.out.println("NEXTPAYMENT = " + recurResponse.getNextPayment());
System.out.println("PAYPERIOD = " + recurResponse.getPayPeriod());
System.out.println("NEXTPAYMENT = " + recurResponse.getNextPayment());
System.out.println("TENDER = " + recurResponse.getTender());
System.out.println("AMT = " + recurResponse.getAmt());
System.out.println("ACCT = " + recurResponse.getAcct());
System.out.println("EXPDATE = " + recurResponse.getExpDate());
System.out.println("AGGREGATEAMT = " + recurResponse.getAggregateAmt());
System.out.println("AGGREGATEOPTIONALAMT = " + recurResponse.getAggregateOptionalAmt());
System.out.println("MAXFAILPAYMENTS = " + recurResponse.getMaxFailPayments());
System.out.println("NUMFAILPAYMENTS = " + recurResponse.getNumFailPayments());
System.out.println("RETRYNUMDAYS = " + recurResponse.getRetryNumDays());
System.out.println("STREET = " + recurResponse.getStreet());
System.out.println("ZIP = " + recurResponse.getZip());
}
}
// Get the Context and check for any contained SDK specific errors.
Context ctx = resp.getTransactionContext();
if (ctx != null & ctx.getErrorCount() > 0)
{
System.out.println("/n" + "Errors = " + Ctx.ToString());
}
-
Field Summary
Fields inherited from class paypal.payflow.BaseTransaction
requestId -
Constructor Summary
ConstructorsConstructorDescriptionRecurringInquiryTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, String requestId) ConstructorRecurringInquiryTransaction(UserInfo userInfo, RecurringInfo recurringInfo, String requestId) Constructor -
Method Summary
Methods inherited from class paypal.payflow.RecurringTransaction
generateRequestMethods inherited from class paypal.payflow.BaseTransaction
addHeader, clearExtendData, getBuyerAuthStatus, getClientInfo, getContext, getExtData, getRequest, getRequestBuffer, getRequestId, getResponse, getTender, getTrxType, getVerbosity, RemoveTransHeader, setBuyerAuthStatus, setClientInfo, setContext, setExtData, setRequestId, setTender, setVerbosity, submitTransaction
-
Constructor Details
-
RecurringInquiryTransaction
public RecurringInquiryTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, String requestId) Constructor- Parameters:
userInfo- UserInfo - User Info object populated with user credentials.payflowConnectionData- PayflowConnectionData - Connection credentials object.recurringInfo- RecurringInfo - Recurring Info object.requestId- String - Request Id *RecurringInquiryTransaction is used to request two different sets of information: To view the full set of payment information for a profile, include the PAYMENTHISTORY=Y name/value pair with the Inquiry action. To view the status of a customer's profile, submit an Inquiry action that does not include the PAYMENTHISTORY parameter (alternatively, submit PAYMENTHISTORY=N).
............... // Populate data objects ............... *// Create a new RecurringInquiryTransaction. RecurringInquiryTransaction trans = new RecurringInquiryTransaction(user, connection, recurInfo, payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-
RecurringInquiryTransaction
public RecurringInquiryTransaction(UserInfo userInfo, RecurringInfo recurringInfo, String requestId) Constructor- Parameters:
userInfo- UserInfo - User Info object populated with user credentials.recurringInfo- RecurringInfo - Recurring Info object.requestId- String - Request Id *RecurringInquiryTransaction is used to request two different sets of information: To view the full set of payment information for a profile, include the PAYMENTHISTORY=Y name/value pair with the Inquiry action. To view the status of a customer's profile, submit an Inquiry action that does not include the PAYMENTHISTORY parameter (alternatively, submit PAYMENTHISTORY=N).
............... // Populate data objects ............... *// Create a new RecurringInquiryTransaction. RecurringInquiryTransaction trans = new RecurringInquiryTransaction(user, recurInfo, payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-