Search in sources :

Example 1 with PaypalManager

use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project OpenOLAT by OpenOLAT.

the class PaypalAccessHandler method createTransactionDetailsController.

@Override
public FormController createTransactionDetailsController(UserRequest ureq, WindowControl wControl, Order order, OrderPart part, AccessMethod method, Form form) {
    PaypalManager paypalManager = CoreSpringFactory.getImpl(PaypalManager.class);
    PaypalTransaction transaction = paypalManager.loadTransaction(order, part);
    return new PaypalTransactionDetailsController(ureq, wControl, transaction, form);
}
Also used : PaypalManager(org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager) PaypalTransaction(org.olat.resource.accesscontrol.provider.paypal.model.PaypalTransaction) PaypalTransactionDetailsController(org.olat.resource.accesscontrol.provider.paypal.ui.PaypalTransactionDetailsController)

Example 2 with PaypalManager

use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project openolat by klemens.

the class PaypalAccessHandler method getPSPTransactions.

@Override
public List<PSPTransaction> getPSPTransactions(List<Order> orders) {
    PaypalManager paypalManager = CoreSpringFactory.getImpl(PaypalManager.class);
    List<PSPTransaction> transactions = paypalManager.loadTransactions(orders);
    return transactions;
}
Also used : PaypalManager(org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager) PSPTransaction(org.olat.resource.accesscontrol.model.PSPTransaction)

Example 3 with PaypalManager

use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project OpenOLAT by OpenOLAT.

the class PaypalAccessHandler method getPSPTransactions.

@Override
public List<PSPTransaction> getPSPTransactions(List<Order> orders) {
    PaypalManager paypalManager = CoreSpringFactory.getImpl(PaypalManager.class);
    List<PSPTransaction> transactions = paypalManager.loadTransactions(orders);
    return transactions;
}
Also used : PaypalManager(org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager) PSPTransaction(org.olat.resource.accesscontrol.model.PSPTransaction)

Example 4 with PaypalManager

use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project OpenOLAT by OpenOLAT.

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)

Example 5 with PaypalManager

use of org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager in project openolat by klemens.

the class PaypalAccessHandler method createTransactionDetailsController.

@Override
public FormController createTransactionDetailsController(UserRequest ureq, WindowControl wControl, Order order, OrderPart part, AccessMethod method, Form form) {
    PaypalManager paypalManager = CoreSpringFactory.getImpl(PaypalManager.class);
    PaypalTransaction transaction = paypalManager.loadTransaction(order, part);
    return new PaypalTransactionDetailsController(ureq, wControl, transaction, form);
}
Also used : PaypalManager(org.olat.resource.accesscontrol.provider.paypal.manager.PaypalManager) PaypalTransaction(org.olat.resource.accesscontrol.provider.paypal.model.PaypalTransaction) PaypalTransactionDetailsController(org.olat.resource.accesscontrol.provider.paypal.ui.PaypalTransactionDetailsController)

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