Search in sources :

Example 1 with PaymentDetailsType

use of urn.ebay.apis.eBLBaseComponents.PaymentDetailsType in project structr by structr.

the class PayPalHelper method commitExpressCheckout.

public static DoExpressCheckoutPaymentResponseType commitExpressCheckout(final String notifyUrl, final CurrencyCodeType currencyCode, final int amountInCents, final String token, final String payerId) throws Throwable {
    final PaymentDetailsType paymentDetail = new PaymentDetailsType();
    paymentDetail.setNotifyURL(notifyUrl);
    paymentDetail.setOrderTotal(getAmountForCurrency(currencyCode.name(), amountInCents));
    paymentDetail.setPaymentAction(PaymentActionCodeType.SALE);
    final List<PaymentDetailsType> paymentDetails = new ArrayList<>();
    paymentDetails.add(paymentDetail);
    final DoExpressCheckoutPaymentRequestDetailsType doExpressCheckoutPaymentRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType();
    doExpressCheckoutPaymentRequestDetails.setToken(token);
    doExpressCheckoutPaymentRequestDetails.setPayerID(payerId);
    doExpressCheckoutPaymentRequestDetails.setPaymentDetails(paymentDetails);
    final DoExpressCheckoutPaymentRequestType doExpressCheckoutPaymentRequest = new DoExpressCheckoutPaymentRequestType(doExpressCheckoutPaymentRequestDetails);
    doExpressCheckoutPaymentRequest.setVersion("104.0");
    final DoExpressCheckoutPaymentReq doExpressCheckoutPaymentReq = new DoExpressCheckoutPaymentReq();
    doExpressCheckoutPaymentReq.setDoExpressCheckoutPaymentRequest(doExpressCheckoutPaymentRequest);
    final PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(getPayPalConfig());
    return service.doExpressCheckoutPayment(doExpressCheckoutPaymentReq);
}
Also used : DoExpressCheckoutPaymentRequestDetailsType(urn.ebay.apis.eBLBaseComponents.DoExpressCheckoutPaymentRequestDetailsType) PaymentDetailsType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsType) ArrayList(java.util.ArrayList) DoExpressCheckoutPaymentReq(urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentReq) PayPalAPIInterfaceServiceService(urn.ebay.api.PayPalAPI.PayPalAPIInterfaceServiceService) DoExpressCheckoutPaymentRequestType(urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentRequestType)

Example 2 with PaymentDetailsType

use of urn.ebay.apis.eBLBaseComponents.PaymentDetailsType in project shopizer by shopizer-ecommerce.

the class PayPalExpressCheckoutPayment method initPaypalTransaction.

/*	@Override
	public Transaction capture(MerchantStore store, Customer customer,
			List<ShoppingCartItem> items, BigDecimal amount, Payment payment, Transaction transaction,
			IntegrationConfiguration configuration, IntegrationModule module)
			throws IntegrationException {
		
		com.salesmanager.core.business.payments.model.PaypalPayment paypalPayment = (com.salesmanager.core.business.payments.model.PaypalPayment)payment;
		Validate.notNull(paypalPayment.getPaymentToken(), "A paypal payment token is required to process this transaction");
		
		return processTransaction(store, customer, items, amount, paypalPayment, configuration, module);
		
	}*/
public Transaction initPaypalTransaction(MerchantStore store, List<ShoppingCartItem> items, OrderTotalSummary summary, Payment payment, IntegrationConfiguration configuration, IntegrationModule module) throws IntegrationException {
    Validate.notNull(configuration, "Configuration must not be null");
    Validate.notNull(payment, "Payment must not be null");
    Validate.notNull(summary, "OrderTotalSummary must not be null");
    try {
        PaymentDetailsType paymentDetails = new PaymentDetailsType();
        if (configuration.getIntegrationKeys().get("transaction").equalsIgnoreCase(TransactionType.AUTHORIZECAPTURE.name())) {
            paymentDetails.setPaymentAction(urn.ebay.apis.eBLBaseComponents.PaymentActionCodeType.SALE);
        } else {
            paymentDetails.setPaymentAction(urn.ebay.apis.eBLBaseComponents.PaymentActionCodeType.AUTHORIZATION);
        }
        List<PaymentDetailsItemType> lineItems = new ArrayList<PaymentDetailsItemType>();
        for (ShoppingCartItem cartItem : items) {
            PaymentDetailsItemType item = new PaymentDetailsItemType();
            BasicAmountType amt = new BasicAmountType();
            amt.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(payment.getCurrency().getCode()));
            amt.setValue(pricingService.getStringAmount(cartItem.getFinalPrice().getFinalPrice(), store));
            // itemsTotal = itemsTotal.add(cartItem.getSubTotal());
            int itemQuantity = cartItem.getQuantity();
            item.setQuantity(itemQuantity);
            item.setName(cartItem.getProduct().getProductDescription().getName());
            item.setAmount(amt);
            // System.out.println(pricingService.getStringAmount(cartItem.getSubTotal(), store));
            lineItems.add(item);
        }
        List<OrderTotal> orderTotals = summary.getTotals();
        BigDecimal tax = null;
        for (OrderTotal total : orderTotals) {
            if (total.getModule().equals(Constants.OT_SHIPPING_MODULE_CODE)) {
                BasicAmountType shipping = new BasicAmountType();
                shipping.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(store.getCurrency().getCode()));
                shipping.setValue(pricingService.getStringAmount(total.getValue(), store));
                // System.out.println(pricingService.getStringAmount(total.getValue(), store));
                paymentDetails.setShippingTotal(shipping);
            }
            if (total.getModule().equals(Constants.OT_HANDLING_MODULE_CODE)) {
                BasicAmountType handling = new BasicAmountType();
                handling.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(store.getCurrency().getCode()));
                handling.setValue(pricingService.getStringAmount(total.getValue(), store));
                // System.out.println(pricingService.getStringAmount(total.getValue(), store));
                paymentDetails.setHandlingTotal(handling);
            }
            if (total.getModule().equals(Constants.OT_TAX_MODULE_CODE)) {
                if (tax == null) {
                    tax = new BigDecimal("0");
                }
                tax = tax.add(total.getValue());
            }
        }
        if (tax != null) {
            BasicAmountType taxAmnt = new BasicAmountType();
            taxAmnt.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(store.getCurrency().getCode()));
            taxAmnt.setValue(pricingService.getStringAmount(tax, store));
            // System.out.println(pricingService.getStringAmount(tax, store));
            paymentDetails.setTaxTotal(taxAmnt);
        }
        BasicAmountType itemTotal = new BasicAmountType();
        itemTotal.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(store.getCurrency().getCode()));
        itemTotal.setValue(pricingService.getStringAmount(summary.getSubTotal(), store));
        paymentDetails.setItemTotal(itemTotal);
        paymentDetails.setPaymentDetailsItem(lineItems);
        BasicAmountType orderTotal = new BasicAmountType();
        orderTotal.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(store.getCurrency().getCode()));
        orderTotal.setValue(pricingService.getStringAmount(summary.getTotal(), store));
        // System.out.println(pricingService.getStringAmount(itemsTotal, store));
        paymentDetails.setOrderTotal(orderTotal);
        List<PaymentDetailsType> paymentDetailsList = new ArrayList<PaymentDetailsType>();
        paymentDetailsList.add(paymentDetails);
        String baseScheme = store.getDomainName();
        String scheme = coreConfiguration.getProperty("SHOP_SCHEME");
        if (!StringUtils.isBlank(scheme)) {
            baseScheme = new StringBuilder().append(coreConfiguration.getProperty("SHOP_SCHEME", "http")).append("://").append(store.getDomainName()).toString();
        }
        StringBuilder RETURN_URL = new StringBuilder();
        RETURN_URL.append(baseScheme);
        if (!StringUtils.isBlank(baseScheme) && !baseScheme.endsWith(Constants.SLASH)) {
            RETURN_URL.append(Constants.SLASH);
        }
        RETURN_URL.append(coreConfiguration.getProperty("CONTEXT_PATH", "sm-shop"));
        SetExpressCheckoutRequestDetailsType setExpressCheckoutRequestDetails = new SetExpressCheckoutRequestDetailsType();
        String returnUrl = RETURN_URL.toString() + new StringBuilder().append(Constants.SHOP_URI).append("/paypal/checkout").append(coreConfiguration.getProperty("URL_EXTENSION", ".html")).append("/success").toString();
        String cancelUrl = RETURN_URL.toString() + new StringBuilder().append(Constants.SHOP_URI).append("/paypal/checkout").append(coreConfiguration.getProperty("URL_EXTENSION", ".html")).append("/cancel").toString();
        setExpressCheckoutRequestDetails.setReturnURL(returnUrl);
        setExpressCheckoutRequestDetails.setCancelURL(cancelUrl);
        setExpressCheckoutRequestDetails.setPaymentDetails(paymentDetailsList);
        SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(setExpressCheckoutRequestDetails);
        setExpressCheckoutRequest.setVersion("104.0");
        SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq();
        setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest);
        String mode = "sandbox";
        String env = configuration.getEnvironment();
        if (Constants.PRODUCTION_ENVIRONMENT.equals(env)) {
            mode = "production";
        }
        Map<String, String> configurationMap = new HashMap<String, String>();
        configurationMap.put("mode", mode);
        configurationMap.put("acct1.UserName", configuration.getIntegrationKeys().get("username"));
        configurationMap.put("acct1.Password", configuration.getIntegrationKeys().get("api"));
        configurationMap.put("acct1.Signature", configuration.getIntegrationKeys().get("signature"));
        PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap);
        SetExpressCheckoutResponseType setExpressCheckoutResponse = service.setExpressCheckout(setExpressCheckoutReq);
        String token = setExpressCheckoutResponse.getToken();
        String correlationID = setExpressCheckoutResponse.getCorrelationID();
        String ack = setExpressCheckoutResponse.getAck().getValue();
        if (!"Success".equals(ack)) {
            LOGGER.error("Wrong value from init transaction " + ack);
            throw new IntegrationException("Wrong paypal ack from init transaction " + ack);
        }
        Transaction transaction = new Transaction();
        transaction.setAmount(summary.getTotal());
        // transaction.setOrder(order);
        transaction.setTransactionDate(new Date());
        transaction.setTransactionType(TransactionType.INIT);
        transaction.setPaymentType(PaymentType.PAYPAL);
        transaction.getTransactionDetails().put("TOKEN", token);
        transaction.getTransactionDetails().put("CORRELATION", correlationID);
        return transaction;
    // redirect user to
    // https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-5LL13394G30048922
    } catch (Exception e) {
        e.printStackTrace();
        throw new IntegrationException(e);
    }
}
Also used : IntegrationException(com.salesmanager.core.modules.integration.IntegrationException) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) BasicAmountType(urn.ebay.apis.CoreComponentTypes.BasicAmountType) PayPalAPIInterfaceServiceService(urn.ebay.api.PayPalAPI.PayPalAPIInterfaceServiceService) BigDecimal(java.math.BigDecimal) Date(java.util.Date) ServiceException(com.salesmanager.core.business.exception.ServiceException) IntegrationException(com.salesmanager.core.modules.integration.IntegrationException) SetExpressCheckoutResponseType(urn.ebay.api.PayPalAPI.SetExpressCheckoutResponseType) Transaction(com.salesmanager.core.model.payments.Transaction) SetExpressCheckoutRequestDetailsType(urn.ebay.apis.eBLBaseComponents.SetExpressCheckoutRequestDetailsType) SetExpressCheckoutRequestType(urn.ebay.api.PayPalAPI.SetExpressCheckoutRequestType) PaymentDetailsType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsType) ShoppingCartItem(com.salesmanager.core.model.shoppingcart.ShoppingCartItem) PaymentDetailsItemType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsItemType) OrderTotal(com.salesmanager.core.model.order.OrderTotal) SetExpressCheckoutReq(urn.ebay.api.PayPalAPI.SetExpressCheckoutReq)

Example 3 with PaymentDetailsType

use of urn.ebay.apis.eBLBaseComponents.PaymentDetailsType in project shopizer by shopizer-ecommerce.

the class PayPalExpressCheckoutPayment method processTransaction.

private Transaction processTransaction(MerchantStore store, Customer customer, List<ShoppingCartItem> items, BigDecimal amount, Payment payment, IntegrationConfiguration configuration, IntegrationModule module) throws IntegrationException {
    com.salesmanager.core.model.payments.PaypalPayment paypalPayment = (com.salesmanager.core.model.payments.PaypalPayment) payment;
    try {
        String mode = "sandbox";
        String env = configuration.getEnvironment();
        if (Constants.PRODUCTION_ENVIRONMENT.equals(env)) {
            mode = "production";
        }
        // get token from url and return the user to generate a payerid
        GetExpressCheckoutDetailsRequestType getExpressCheckoutDetailsRequest = new GetExpressCheckoutDetailsRequestType(paypalPayment.getPaymentToken());
        getExpressCheckoutDetailsRequest.setVersion("104.0");
        GetExpressCheckoutDetailsReq getExpressCheckoutDetailsReq = new GetExpressCheckoutDetailsReq();
        getExpressCheckoutDetailsReq.setGetExpressCheckoutDetailsRequest(getExpressCheckoutDetailsRequest);
        Map<String, String> configurationMap = new HashMap<String, String>();
        configurationMap.put("mode", mode);
        configurationMap.put("acct1.UserName", configuration.getIntegrationKeys().get("username"));
        configurationMap.put("acct1.Password", configuration.getIntegrationKeys().get("api"));
        configurationMap.put("acct1.Signature", configuration.getIntegrationKeys().get("signature"));
        PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap);
        GetExpressCheckoutDetailsResponseType getExpressCheckoutDetailsResponse = service.getExpressCheckoutDetails(getExpressCheckoutDetailsReq);
        String token = getExpressCheckoutDetailsResponse.getGetExpressCheckoutDetailsResponseDetails().getToken();
        String correlationID = getExpressCheckoutDetailsResponse.getCorrelationID();
        String ack = getExpressCheckoutDetailsResponse.getAck().getValue();
        String payerId = getExpressCheckoutDetailsResponse.getGetExpressCheckoutDetailsResponseDetails().getPayerInfo().getPayerID();
        if (!"Success".equals(ack)) {
            LOGGER.error("Wrong value from anthorize and capture transaction " + ack);
            throw new IntegrationException("Wrong paypal ack from init transaction " + ack);
        }
        PaymentDetailsType paymentDetail = new PaymentDetailsType();
        /**
         * IPN *
         */
        // paymentDetail.setNotifyURL("http://replaceIpnUrl.com");
        BasicAmountType orderTotal = new BasicAmountType();
        orderTotal.setValue(pricingService.getStringAmount(amount, store));
        orderTotal.setCurrencyID(urn.ebay.apis.eBLBaseComponents.CurrencyCodeType.fromValue(payment.getCurrency().getCode()));
        paymentDetail.setOrderTotal(orderTotal);
        paymentDetail.setButtonSource("Shopizer_Cart_AP");
        /**
         * sale or pre-auth *
         */
        if (payment.getTransactionType().name().equals(TransactionType.AUTHORIZE.name())) {
            paymentDetail.setPaymentAction(urn.ebay.apis.eBLBaseComponents.PaymentActionCodeType.AUTHORIZATION);
        } else {
            paymentDetail.setPaymentAction(urn.ebay.apis.eBLBaseComponents.PaymentActionCodeType.SALE);
        }
        List<PaymentDetailsType> paymentDetails = new ArrayList<PaymentDetailsType>();
        paymentDetails.add(paymentDetail);
        DoExpressCheckoutPaymentRequestDetailsType doExpressCheckoutPaymentRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType();
        doExpressCheckoutPaymentRequestDetails.setToken(token);
        doExpressCheckoutPaymentRequestDetails.setPayerID(payerId);
        doExpressCheckoutPaymentRequestDetails.setPaymentDetails(paymentDetails);
        DoExpressCheckoutPaymentRequestType doExpressCheckoutPaymentRequest = new DoExpressCheckoutPaymentRequestType(doExpressCheckoutPaymentRequestDetails);
        doExpressCheckoutPaymentRequest.setVersion("104.0");
        DoExpressCheckoutPaymentReq doExpressCheckoutPaymentReq = new DoExpressCheckoutPaymentReq();
        doExpressCheckoutPaymentReq.setDoExpressCheckoutPaymentRequest(doExpressCheckoutPaymentRequest);
        DoExpressCheckoutPaymentResponseType doExpressCheckoutPaymentResponse = service.doExpressCheckoutPayment(doExpressCheckoutPaymentReq);
        String commitAck = doExpressCheckoutPaymentResponse.getAck().getValue();
        if (!"Success".equals(commitAck)) {
            LOGGER.error("Wrong value from transaction commit " + ack);
            throw new IntegrationException("Wrong paypal ack from init transaction " + ack);
        }
        List<PaymentInfoType> paymentInfoList = doExpressCheckoutPaymentResponse.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo();
        String transactionId = null;
        for (PaymentInfoType paymentInfo : paymentInfoList) {
            transactionId = paymentInfo.getTransactionID();
        }
        // TOKEN=EC-90U93956LU4997256&SUCCESSPAGEREDIRECTREQUESTED=false&TIMESTAMP=2014-02-16T15:41:03Z&CORRELATIONID=39d4ab666c1d7&ACK=Success&VERSION=104.0&BUILD=9720069&INSURANCEOPTIONSELECTED=false&SHIPPINGOPTIONISDEFAULT=false&PAYMENTINFO_0_TRANSACTIONID=4YA742984J1256935&PAYMENTINFO_0_TRANSACTIONTYPE=expresscheckout&PAYMENTINFO_0_PAYMENTTYPE=instant&PAYMENTINFO_0_ORDERTIME=2014-02-16T15:41:03Z&PAYMENTINFO_0_AMT=1.00&PAYMENTINFO_0_FEEAMT=0.33&PAYMENTINFO_0_TAXAMT=0.00&PAYMENTINFO_0_CURRENCYCODE=USD&PAYMENTINFO_0_PAYMENTSTATUS=Completed&PAYMENTINFO_0_PENDINGREASON=None&PAYMENTINFO_0_REASONCODE=None&PAYMENTINFO_0_PROTECTIONELIGIBILITY=Eligible&PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE=ItemNotReceivedEligible,UnauthorizedPaymentEligible&PAYMENTINFO_0_SECUREMERCHANTACCOUNTID=TWLK53YN7GDM6&PAYMENTINFO_0_ERRORCODE=0&PAYMENTINFO_0_ACK=Success
        Transaction transaction = new Transaction();
        transaction.setAmount(amount);
        transaction.setTransactionDate(new Date());
        transaction.setTransactionType(payment.getTransactionType());
        transaction.setPaymentType(PaymentType.PAYPAL);
        transaction.getTransactionDetails().put("TOKEN", token);
        transaction.getTransactionDetails().put("PAYERID", payerId);
        transaction.getTransactionDetails().put("TRANSACTIONID", transactionId);
        transaction.getTransactionDetails().put("CORRELATION", correlationID);
        return transaction;
    } catch (Exception e) {
        throw new IntegrationException(e);
    }
}
Also used : HashMap(java.util.HashMap) BasicAmountType(urn.ebay.apis.CoreComponentTypes.BasicAmountType) ArrayList(java.util.ArrayList) GetExpressCheckoutDetailsReq(urn.ebay.api.PayPalAPI.GetExpressCheckoutDetailsReq) GetExpressCheckoutDetailsRequestType(urn.ebay.api.PayPalAPI.GetExpressCheckoutDetailsRequestType) GetExpressCheckoutDetailsResponseType(urn.ebay.api.PayPalAPI.GetExpressCheckoutDetailsResponseType) PaymentInfoType(urn.ebay.apis.eBLBaseComponents.PaymentInfoType) IntegrationException(com.salesmanager.core.modules.integration.IntegrationException) DoExpressCheckoutPaymentResponseType(urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentResponseType) PayPalAPIInterfaceServiceService(urn.ebay.api.PayPalAPI.PayPalAPIInterfaceServiceService) Date(java.util.Date) ServiceException(com.salesmanager.core.business.exception.ServiceException) IntegrationException(com.salesmanager.core.modules.integration.IntegrationException) DoExpressCheckoutPaymentRequestDetailsType(urn.ebay.apis.eBLBaseComponents.DoExpressCheckoutPaymentRequestDetailsType) Transaction(com.salesmanager.core.model.payments.Transaction) PaymentDetailsType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsType) DoExpressCheckoutPaymentReq(urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentReq) DoExpressCheckoutPaymentRequestType(urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentRequestType)

Example 4 with PaymentDetailsType

use of urn.ebay.apis.eBLBaseComponents.PaymentDetailsType in project structr by structr.

the class PayPalPaymentProvider method beginCheckout.

@Override
public BeginCheckoutResponse beginCheckout(final Payment payment, final String successUrl, final String cancelUrl) throws FrameworkException {
    final List<PaymentDetailsType> paymentDetailList = new LinkedList<>();
    final List<PaymentDetailsItemType> lineItems = new LinkedList<>();
    final PaymentDetailsType paymentDetails = new PaymentDetailsType();
    for (final PaymentItem item : payment.getItems()) {
        // create payment item
        final PaymentDetailsItemType paymentDetailsItem = new PaymentDetailsItemType();
        paymentDetailsItem.setAmount(PayPalHelper.getAmountForCurrency(payment.getCurrencyCode(), item.getAmount()));
        paymentDetailsItem.setQuantity(item.getQuantity());
        final String name = item.getName();
        if (name != null) {
            paymentDetailsItem.setName(name);
        }
        final String description = item.getDescription();
        if (description != null) {
            paymentDetailsItem.setDescription(description);
        }
        final String itemUrl = item.getItemUrl();
        if (itemUrl != null) {
            paymentDetailsItem.setItemURL(itemUrl);
        }
        final String itemNumber = item.getItemNumber();
        if (itemNumber != null) {
            paymentDetailsItem.setNumber(itemNumber);
        }
        lineItems.add(paymentDetailsItem);
    }
    paymentDetails.setPaymentAction(PaymentActionCodeType.SALE);
    paymentDetails.setPaymentDetailsItem(lineItems);
    paymentDetails.setOrderTotal(PayPalHelper.getAmountForCurrency(payment.getCurrencyCode(), payment.getTotal()));
    paymentDetailList.add(paymentDetails);
    try {
        final SetExpressCheckoutResponseType response = PayPalHelper.getExpressCheckoutToken(paymentDetailList, successUrl, cancelUrl);
        if (AckCodeType.SUCCESS.equals(response.getAck())) {
            payment.setToken(response.getToken());
            payment.setPaymentState(PaymentState.open);
            return new PayPalBeginCheckoutResponse(response, response.getToken());
        }
    } catch (Throwable t) {
        throw new FrameworkException(422, t.getMessage());
    }
    throw new FrameworkException(422, "Unknown error.");
}
Also used : SetExpressCheckoutResponseType(urn.ebay.api.PayPalAPI.SetExpressCheckoutResponseType) FrameworkException(org.structr.common.error.FrameworkException) PaymentDetailsType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsType) PaymentDetailsItemType(urn.ebay.apis.eBLBaseComponents.PaymentDetailsItemType) PaymentItem(org.structr.payment.api.PaymentItem) LinkedList(java.util.LinkedList)

Aggregations

PaymentDetailsType (urn.ebay.apis.eBLBaseComponents.PaymentDetailsType)4 ArrayList (java.util.ArrayList)3 PayPalAPIInterfaceServiceService (urn.ebay.api.PayPalAPI.PayPalAPIInterfaceServiceService)3 ServiceException (com.salesmanager.core.business.exception.ServiceException)2 Transaction (com.salesmanager.core.model.payments.Transaction)2 IntegrationException (com.salesmanager.core.modules.integration.IntegrationException)2 Date (java.util.Date)2 HashMap (java.util.HashMap)2 DoExpressCheckoutPaymentReq (urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentReq)2 DoExpressCheckoutPaymentRequestType (urn.ebay.api.PayPalAPI.DoExpressCheckoutPaymentRequestType)2 SetExpressCheckoutResponseType (urn.ebay.api.PayPalAPI.SetExpressCheckoutResponseType)2 BasicAmountType (urn.ebay.apis.CoreComponentTypes.BasicAmountType)2 DoExpressCheckoutPaymentRequestDetailsType (urn.ebay.apis.eBLBaseComponents.DoExpressCheckoutPaymentRequestDetailsType)2 PaymentDetailsItemType (urn.ebay.apis.eBLBaseComponents.PaymentDetailsItemType)2 OrderTotal (com.salesmanager.core.model.order.OrderTotal)1 ShoppingCartItem (com.salesmanager.core.model.shoppingcart.ShoppingCartItem)1 BigDecimal (java.math.BigDecimal)1 LinkedList (java.util.LinkedList)1 FrameworkException (org.structr.common.error.FrameworkException)1 PaymentItem (org.structr.payment.api.PaymentItem)1