public interface PaymentGatewayWebResponseService extends PaymentGatewayTypeAware
The purpose of this class, is to provide an API that will translate a web response returned from a Payment Gateway into a PaymentResponse
Some payment gateways provide the ability that ensures that the transaction data is passed back to your application when a transaction is completed. Most of the gateways issue an HTML Post to return data to your server for both approved and declined transactions. This occurs even if a customer closes the browser before returning to your site, or if the payment response is somehow severed.
Many gateways will continue calling your exposed API Webhook for a certain period until a 200 Response is received. Others will forward to an error page configured through the gateway.
This is usually invoked by a gateway endpoint controller that extends PaymentGatewayAbstractController
Modifier and Type | Method and Description |
---|---|
default PaymentResponse |
translateWebResponse(javax.servlet.http.HttpServletRequest request) |
getGatewayType
default PaymentResponse translateWebResponse(javax.servlet.http.HttpServletRequest request) throws PaymentException
PaymentException
Copyright © 2021. All rights reserved.