Package com.bhn.payment.service
Class PaymentService
java.lang.Object
com.bhn.payment.service.PaymentService
- All Implemented Interfaces:
IPaymentService
PaymentService class.
- Version:
- $Id: $Id
- Author:
- pvela00
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorize(AuthRequest authRequest) throws PaymentException authorize.callback(CallbackRequest callbackRequest) throws PaymentException callback.cancelAuthorization(CancelAuthRequest cancelAuthRequest) throws PaymentException cancelAuth.capture(CaptureRequest captureRequest) throws PaymentException capture.checkout(CheckoutRequest checkoutRequest) throws PaymentException checkout.refund(RefundRequest refundRequest) throws PaymentException refund.voidsetPaymentHandlerFactory(PaymentHandlerFactory paymentHandlerFactory) Setter for the fieldpaymentHandlerFactory.
-
Constructor Details
-
PaymentService
public PaymentService()
-
-
Method Details
-
authorize
throws PaymentExceptionauthorize.
- Specified by:
authorizein interfaceIPaymentService- Parameters:
authRequest- aAuthRequestobject- Returns:
- a
AuthResponseobject - Throws:
PaymentException- if any.
-
capture
throws PaymentExceptioncapture.
- Specified by:
capturein interfaceIPaymentService- Parameters:
captureRequest- aCaptureRequestobject- Returns:
- a
CaptureResponseobject - Throws:
PaymentException- if any.
-
cancelAuthorization
public CancelAuthResponse cancelAuthorization(CancelAuthRequest cancelAuthRequest) throws PaymentException throws PaymentExceptioncancelAuth.
- Specified by:
cancelAuthorizationin interfaceIPaymentService- Parameters:
cancelAuthRequest- aCancelAuthRequestobject- Returns:
- a
CancelAuthResponseobject - Throws:
PaymentException- if any.
-
refund
throws PaymentExceptionrefund.
- Specified by:
refundin interfaceIPaymentService- Parameters:
refundRequest- aRefundRequestobject- Returns:
- a
RefundResponseobject - Throws:
PaymentException- if any.
-
callback
throws PaymentExceptioncallback.
- Specified by:
callbackin interfaceIPaymentService- Parameters:
callbackRequest- aCallbackRequestobject- Returns:
- a
CallbackResponseobject - Throws:
PaymentException- if any.
-
checkout
throws PaymentExceptioncheckout.
- Specified by:
checkoutin interfaceIPaymentService- Parameters:
checkoutRequest- aCheckoutRequestobject- Returns:
- a
CheckoutResponseobject - Throws:
PaymentException- if any.
-
setPaymentHandlerFactory
@Autowired public void setPaymentHandlerFactory(PaymentHandlerFactory paymentHandlerFactory) throws PaymentException Setter for the field
paymentHandlerFactory.- Parameters:
paymentHandlerFactory- a throws PaymentExceptionPaymentHandlerFactoryobject- Throws:
PaymentException- if any.
-