Examples of DoExpressCheckoutPaymentResponseType


Examples of PayPalAPI.api.ebay.DoExpressCheckoutPaymentResponseType

   * @throws SOAPException
   */
  public static final DoExpressCheckoutPaymentResponseType doExpressCheckoutPayment(DoExpressCheckoutPaymentRequestType _request, APICredential _credentials) throws RemoteException {
    long startTime = System.currentTimeMillis();
    validateRequest(_request);
    DoExpressCheckoutPaymentResponseType response = getAPIAAInterface(_credentials).doExpressCheckoutPayment(new DoExpressCheckoutPaymentReq(_request));
    processResponse(response);
    long endTime = System.currentTimeMillis();
    logMessage(startTime, endTime, response, "API.doExpressCheckoutPayment");
    return response;
  }
View Full Code Here

Examples of PayPalAPI.api.ebay.DoExpressCheckoutPaymentResponseType

      PostMethod post = new PostMethod(getApiAAUrl().toExternalForm());
      post.addParameters(doExpressCheckoutPaymentRequest.getDoExpressCheckoutPaymentRequest().getNVPFields(getCredentials()));
      try {
        client.executeMethod(post);
        if (post.getStatusCode() == HttpStatus.SC_OK) {
          return new DoExpressCheckoutPaymentResponseType(post.getResponseBodyAsStream());
        }
        else {
          throw new RemoteException("Error processing request [" + post.getStatusCode() + ": " + post.getStatusText() + "]");
        }
      } catch (HttpException e) {
View Full Code Here

Examples of PayPalAPI.api.ebay.DoExpressCheckoutPaymentResponseType

    }
    try {
      if (LOG.isDebugEnabled()) {
        LOG.debug("Executing DoExpressCheckoutPayment API call");
      }
      DoExpressCheckoutPaymentResponseType response = API
          .doExpressCheckoutPayment(request, credentials);
      if (LOG.isDebugEnabled()) {
        LOG.debug("SetExpressCheckout API call returned ["
            + response.getAck() + "], building XML.");
      }
      writeObject(response, _response);
      if (LOG.isDebugEnabled()) {
        LOG.debug("XML written to Output Stream");
      }
View Full Code Here

Examples of com.paypal.soap.api.DoExpressCheckoutPaymentResponseType

      detail.setPaymentDetails(0, paymentDetail);
//      detail.setPaymentDetails(paymentDetail);

      request.setDoExpressCheckoutPaymentRequestDetails(detail);
     
      DoExpressCheckoutPaymentResponseType response = (DoExpressCheckoutPaymentResponseType) caller.call("DoExpressCheckoutPayment", request);
    if (!response.getAck().equals(AckCodeType.Success)) {
      throw new PaymentException(formatErrorMessage(response));
    }
   
//    authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo().getTransactionID();
    authCode = response.getDoExpressCheckoutPaymentResponseDetails().getPaymentInfo(0).getTransactionID();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.