Search in sources :

Example 6 with PaypalManager

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();
    }
}
Also used : PaypalManager(org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager)

Aggregations

PaypalManager (org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager)6 PSPTransaction (org.olat.resource.accesscontrol.model.PSPTransaction)2 PaypalTransaction (org.olat.resource.accesscontrol.provider.paypal.model.PaypalTransaction)2 PaypalTransactionDetailsController (org.olat.resource.accesscontrol.provider.paypal.ui.PaypalTransactionDetailsController)2