Search in sources :

Example 6 with PaymentRequestDTO

use of org.broadleafcommerce.common.payment.dto.PaymentRequestDTO in project BroadleafCommerce by BroadleafCommerce.

the class DefaultCurrentOrderPaymentRequestService method getPaymentRequestFromCurrentOrder.

@Override
public PaymentRequestDTO getPaymentRequestFromCurrentOrder() {
    Order currentCart = CartState.getCart();
    PaymentRequestDTO request = paymentRequestDTOService.translateOrder(currentCart);
    return request;
}
Also used : Order(org.broadleafcommerce.core.order.domain.Order) PaymentRequestDTO(org.broadleafcommerce.common.payment.dto.PaymentRequestDTO)

Aggregations

PaymentRequestDTO (org.broadleafcommerce.common.payment.dto.PaymentRequestDTO)6 Order (org.broadleafcommerce.core.order.domain.Order)3 HashMap (java.util.HashMap)2 PaymentResponseDTO (org.broadleafcommerce.common.payment.dto.PaymentResponseDTO)2 PaymentGatewayConfigurationService (org.broadleafcommerce.common.payment.service.PaymentGatewayConfigurationService)2 PaymentException (org.broadleafcommerce.common.vendor.service.exception.PaymentException)2 OrderPayment (org.broadleafcommerce.core.payment.domain.OrderPayment)2 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 Map (java.util.Map)1 BroadleafCurrency (org.broadleafcommerce.common.currency.domain.BroadleafCurrency)1 CheckoutException (org.broadleafcommerce.core.checkout.service.exception.CheckoutException)1 PaymentTransaction (org.broadleafcommerce.core.payment.domain.PaymentTransaction)1 PricingException (org.broadleafcommerce.core.pricing.service.exception.PricingException)1 RollbackFailureException (org.broadleafcommerce.core.workflow.state.RollbackFailureException)1 BroadleafTemplateElement (org.broadleafcommerce.presentation.model.BroadleafTemplateElement)1 BroadleafTemplateModel (org.broadleafcommerce.presentation.model.BroadleafTemplateModel)1 BroadleafTemplateModelModifierDTO (org.broadleafcommerce.presentation.model.BroadleafTemplateModelModifierDTO)1