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);
}
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;
}
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;
}
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();
}
}
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);
}
Aggregations