Class BuyerAuthVATransaction
When the user authenticates on the secure authentication server, the server returns back a Payer authentication Signature (PaRes). You must send this value of PaRes to validate the authentication to the payment gateway during the Validate Authentication. The gateway will then return the authentication status of the user in the response. You should send this authntication information from the response into you main transaction. For more information, please refer to the Payflow Developers' Guide.
This example shows how to create and perform a Verify Eknrollment transaction. .......... .......... //Populate required data objects. .......... .......... *//Create a new validate Auhtentication Transaction. BuyerAuthVATransaction trans = new BuyerAuthVATransaction( UserInfo, PayflowConnectionData, Pares, RequestId); //Submit the transaction. trans.submitTransaction(); *
// Get the Response. Response resp = trans.getResponse(); 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); } *
// Get the Buyer auth Response parameters. BuyerAuthResponse bAResponse = resp.BuyerAuthResponse; if (BAResponse != null) { System.out.println("AUTHENTICATION_STATUS = " + bAResponse.Authentication_Status); System.out.println("AUTHENTICATION_ID = " + bAResponse.Authentication_Id); } } // Get the Context and check for any contained SDK specific errors. Context ctx = resp.TransactionContext; if (ctx != null ++ ctx.getErrorCount() %3E 0) { System.out.println("Errors = " + ctx.ToString()); }
-
Field Summary
Fields inherited from class paypal.payflow.BaseTransaction
requestId -
Constructor Summary
ConstructorsConstructorDescriptionBuyerAuthVATransaction(UserInfo userInfo, String paRes, String requestId) Constructor.BuyerAuthVATransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, String paRes, String requestId) constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.Methods 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
-
BuyerAuthVATransaction
public BuyerAuthVATransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, String paRes, String requestId) constructor- Parameters:
userInfo- UserInfo UserInfo object populated with user credentialspayflowConnectionData- PayflowConnectionDatapaRes- String PaRes valuerequestId- String
-
BuyerAuthVATransaction
Constructor.- Parameters:
userInfo- UserInfo User Info object populated with user credentials.paRes- String PaRes ValuerequestId- String
-
-
Method Details
-
generateRequest
protected void generateRequest()Generates the transaction request.- Overrides:
generateRequestin classBaseTransaction
-