Interface VerifoneRequestResponseTransformer
-
- All Known Implementing Classes:
AbstractVerifoneRequestResponseTransformer,VerifoneAuthorizeAndCaptureRequestResponseTransformer,VerifoneAuthorizeRequestResponseTransformer,VerifoneCaptureRequestResponseTransformer,VerifoneRefundRequestResponseTransformer,VerifoneReverseAuthorizeRequestResponseTransformer
public interface VerifoneRequestResponseTransformerThe transformer is used to create the request body for the Verifone requests and populate the payment response.- Author:
- Dima Myroniuk (dmyroniuk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandle(String transactionType)Checks if this transformer can handle the specified transaction type.Map<String,Object>createVerifoneRequest(VerifonePaymentRequest verifonePaymentRequest)Creates the Verifone request body based onVerifonePaymentRequest.com.broadleafcommerce.paymentgateway.domain.PaymentResponsepopulatePaymentResponse(VerifonePaymentRequest verifonePaymentRequest, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, Map<String,Object> verifoneResponse)Populates the payment response based on the response from the Verifone API.
-
-
-
Method Detail
-
canHandle
boolean canHandle(String transactionType)
Checks if this transformer can handle the specified transaction type.- Parameters:
transactionType- the transaction type of the request- Returns:
- true if this transformer can be used for the specified request
-
createVerifoneRequest
Map<String,Object> createVerifoneRequest(VerifonePaymentRequest verifonePaymentRequest)
Creates the Verifone request body based onVerifonePaymentRequest.- Parameters:
verifonePaymentRequest- the verifone payment request- Returns:
- the Verifone request body
- Throws:
VerifoneRequestCreationException- when a problem is encountered while creating a Verifone API request based on the providedVerifonePaymentRequest
-
populatePaymentResponse
com.broadleafcommerce.paymentgateway.domain.PaymentResponse populatePaymentResponse(VerifonePaymentRequest verifonePaymentRequest, com.broadleafcommerce.paymentgateway.domain.PaymentResponse paymentResponse, Map<String,Object> verifoneResponse)
Populates the payment response based on the response from the Verifone API.- Parameters:
verifonePaymentRequest- the verifone payment requestpaymentResponse- the payment response to populateverifoneResponse- the response from Verifone API- Returns:
- the populated payment response
- Throws:
VerifoneResponseInterpretationException- when a problem is encountered while converting a Verifone API response into aPaymentResponse
-
-