Class RecurringModifyTransaction
This class is used to perform a recurring transaction with
modify action.
RecurringModifyTransaction is used to modify any profile value by
sending any subset of the profile parameters, including an Optional Transaction.
The Modify action is useful, for example, when an inactive customer wishes to
restart payments using a new valid credit card. The Modify action changes a
profiles STATUS to active but does not change the START date.
...............
// Populate data objects
...............
//Set the Recurring related information.
RecurringInfo recurInfo = new RecurringInfo();
recurInfo.setOrigProfileId ("RT0000001350");
recurInfo.setProfileName ("PayPal Inc.");
////////////////////////////////////
// Create a new Recurring modify Transaction.
RecurringModifyTransaction trans = new RecurringModifyTransaction(
user, connection, recurInfo, PayflowUtility.getRequestId());
// Submit the transaction.
Response resp = trans.submitTransaction();
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());
}
// Get the Recurring Response parameters.
RecurringResponse recurResponse = resp.getRecurringResponse();
if (recurResponse != null)
{
System.out.println("RPREF = " + recurResponse.getRPRef());
System.out.println("PROFILEID = " + recurResponse.getProfileId());
}
}
// 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
ConstructorsConstructorDescriptionRecurringModifyTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, String requestId) ConstructorRecurringModifyTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, String requestId) ConstructorRecurringModifyTransaction(UserInfo userInfo, RecurringInfo recurringInfo, String requestId) ConstructorRecurringModifyTransaction(UserInfo userInfo, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, 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
-
RecurringModifyTransaction
public RecurringModifyTransaction(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 *RecurringModifyTransaction is used to modify any profile value by sending any subset of the profile parameters, including an Optional Transaction. The Modify action is useful, for example, when an inactive customer wishes to restart payments using a new valid credit card. The Modify action changes a profile's STATUS to active but does not change the START date.
............... // Populate data objects ............... *// Create a new RecurringModifyTransaction. RecurringModifyTransaction trans = new RecurringModifyTransaction(user, connection, recurInfo, payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-
RecurringModifyTransaction
Constructor- Parameters:
userInfo- UserInfo - User Info object populated with user credentials.recurringInfo- RecurringInfo - Recurring Info object.requestId- String - Request Id *RecurringModifyTransaction is used to modify any profile value by sending any subset of the profile parameters, including an Optional Transaction. The Modify action is useful, for example, when an inactive customer wishes to restart payments using a new valid credit card. The Modify action changes a profile's STATUS to active but does not change the START date.
............... // Populate data objects ............... *// Create a new RecurringModifyTransaction. RecurringModifyTransaction trans = new RecurringModifyTransaction(user, recurInfo, payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-
RecurringModifyTransaction
public RecurringModifyTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, String requestId) Constructor- Parameters:
userInfo- UserInfo - User Info object populated with user credentials.payflowConnectionData- PayflowConnectionData - Connection credentials object.recurringInfo- RecurringInfo - Recurring Info object.invoice- Invoice - Invoice object.tender- Tender - Tender object such as Card Tender.requestId- String - Request Id *RecurringModifyTransaction is used to modify any profile value by sending any subset of the profile parameters, including an Optional Transaction. The Modify action is useful, for example, when an inactive customer wishes to restart payments using a new valid credit card. The Modify action changes a profile's STATUS to active but does not change the START date.
............... // Populate data objects ............... *// Create a new RecurringModifyTransaction. RecurringModifyTransaction trans = new RecurringModifyTransaction(user, connection, recurInfo, inv, tender payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-
RecurringModifyTransaction
public RecurringModifyTransaction(UserInfo userInfo, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, String requestId) Constructor- Parameters:
userInfo- UserInfo - User Info object populated with user credentials.recurringInfo- RecurringInfo - Recurring Info object.invoice- Invoice - Invoice object.tender- Tender - Tender object such as Card Tender.requestId- String - Request Id *RecurringModifyTransaction is used to modify any profile value by sending any subset of the profile parameters, including an Optional Transaction. The Modify action is useful, for example, when an inactive customer wishes to restart payments using a new valid credit card. The Modify action changes a profile's STATUS to active but does not change the START date.
............... // Populate data objects ............... *// Create a new RecurringModifyTransaction. RecurringModifyTransaction trans = new RecurringModifyTransaction(user, recurInfo, inv, tender payflowUtility.getRequestId ()); *
// Submit the transaction. Response resp = trans.submitTransaction();
-