use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project openolat by klemens.
the class PaypalIPNFilter method doFilter.
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) {
try {
PaypalManager paypalManager = CoreSpringFactory.getImpl(PaypalManager.class);
verify(request, paypalManager);
DBFactory.getInstance().commitAndCloseSession();
} catch (Throwable t) {
// we must log all errors, it's critical for this part of the payment
log.error("Paypal IPN unexpected error", t);
} finally {
DBFactory.getInstance().closeSession();
}
}
Aggregations