Package PayPalAPI.api.ebay

Examples of PayPalAPI.api.ebay.RefundTransactionResponseType


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


  public static final RefundTransactionResponseType refundTransaction(RefundTransactionRequestType _request, APICredential _credentials) throws RemoteException {
    long startTime = System.currentTimeMillis();
    validateRequest(_request);
    RefundTransactionReq req = new RefundTransactionReq();
    req.setRefundTransactionRequest(_request);
    RefundTransactionResponseType response = getAPIInterface(_credentials).refundTransaction(req);
    processResponse(response);
    long endTime = System.currentTimeMillis();
    logMessage(startTime, endTime, response, "API.refundTransaction");
    return response;
  }
View Full Code Here

TOP

Related Classes of PayPalAPI.api.ebay.RefundTransactionResponseType

Copyright © 2018 www.massapicom. 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.