예제 #1
0
  @Override
  public SetExpressCheckoutDTO setExpressCheckout(OrderFullDTO order, ProfilePayPalDTO profile)
      throws PayPalException, PayPalFailureException, OthalaException {
    // TODO Auto-generated method stub

    // inserisco l'ordine
    order = orderService.insertOrder(order);

    // costruisco la busta per PayPal
    OrderPayPalDTO ordPayPal = valueOf(profile, order);

    SetExpressCheckoutDTO chechDTO = getWrapper(profile).setExpressCheckout(ordPayPal);
    return chechDTO;
  }